{"action":"created","issue":{"url":"https://api.github.com/repos/alcap-org/AlcapDAQ/issues/272","labels_url":"https://api.github.com/repos/alcap-org/AlcapDAQ/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/alcap-org/AlcapDAQ/issues/272/comments","events_url":"https://api.github.com/repos/alcap-org/AlcapDAQ/issues/272/events","html_url":"https://github.com/alcap-org/AlcapDAQ/issues/272","id":99744455,"number":272,"title":"Picture book compilation errors","user":{"login":"dmalexan","id":5910796,"avatar_url":"https://avatars.githubusercontent.com/u/5910796?v=3","gravatar_id":"","url":"https://api.github.com/users/dmalexan","html_url":"https://github.com/dmalexan","followers_url":"https://api.github.com/users/dmalexan/followers","following_url":"https://api.github.com/users/dmalexan/following{/other_user}","gists_url":"https://api.github.com/users/dmalexan/gists{/gist_id}","starred_url":"https://api.github.com/users/dmalexan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmalexan/subscriptions","organizations_url":"https://api.github.com/users/dmalexan/orgs","repos_url":"https://api.github.com/users/dmalexan/repos","events_url":"https://api.github.com/users/dmalexan/events{/privacy}","received_events_url":"https://api.github.com/users/dmalexan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-07T23:01:46Z","updated_at":"2015-08-07T23:34:31Z","closed_at":"2015-08-07T23:34:31Z","body":"I am having two types of problems with the picture books, and could use some help.\r\n\r\n1.   Several of the section and subsection headings are coming out incorrect.\r\n~~a)  The subsections for the first section (section[0]) are being written as section headings.\r\nUnder CreateSections() \r\n```C++\r\n  section_headings[0].section_name = \"\\\\section{Digitizer-specific Issues}\\n\\n\";\r\n  (section_headings[0]).subsection_names[0] = \"\\\\section{Digitizer Overflows}\\n\\n\";\r\n  (section_headings[0]).subsection_names[1] = \"\\\\section{Digitizer Errors}\\n\\n\";\r\n```\r\nUnder GetListOfLines()\r\n```C++\r\n\t  std::string plotname = plotname_cstr; // convert to std::string so I can use find()\r\n\r\n\t  // Work out which section and subsection this plot is for\r\n\t  int section = -1;\r\n\t  int subsection = -1;\r\n\r\n\t  \r\n\t  if (plotname.find(\"Digitizer\") != std::string::npos) {\r\n\t    section = 0;\r\n\r\n\t    //Check for subsection\r\n\t    if (plotname.find(\"Overflow\") != std::string::npos){\r\n\t      subsection = 0;\r\n\t    }\r\n\t    else if (plotname.find(\"Error\") != std::string::npos){\r\n\t      subsection = 1;\r\n\t    }\r\n\r\n\t  }\r\n.\r\n.\r\n.\r\n\t  // If the section was found...\r\n\t  if (section >= 0) {\r\n\t    // ...add the section heading if it hasn't been started yet\r\n\t    if (section_headings[section].section_started == false) {\r\n\t      plot_names.push_back(section_headings[section].section_name);\r\n\t      section_headings[section].section_started = true;\r\n\t    }\r\n\t  }\r\n\r\n\t  // If the subsection was found...\r\n\t  if (subsection >= 0 && section >= 0) {\r\n\t    // ...add the subsection heading if it hasn't been started yet\r\n\t    if (section_headings[section].subsection_started[subsection] == false &&\r\n\t\tsection_headings[section].subsection_names[subsection] != \"\" ) {\r\n\r\n\t      plot_names.push_back(section_headings[section].subsection_names[subsection]);\r\n\t      section_headings[section].subsection_started[subsection] = true;\r\n\t    }\r\n\t  }\r\n```\r\nIn the Tex file however, it generates\r\n```LaTeX\r\n\\section{Digitizer-specific Issues}\r\n\r\n\\section{Digitizer Errors}\r\n\r\n\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hDQ_Digitizer_DT5720Errors.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hDQ_Digitizer_DT5730Errors.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\clearpage \r\n\r\n\\section{Digitizer Overflows}\r\n\r\n\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hDQ_DigitizerOverflow_FractionByEvent.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hDQ_DigitizerOverflow_Fraction.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\clearpage \r\n```\r\nI'm guessing this has something to do with the use of 0 for saying the section exists.~~\r\n\r\nb)\r\nSimilarly, I have a subsection that gets mislabeled\r\n```C++\r\n  section_headings[1].section_name = \"\\\\section{TPulseIsland-specific data quality issues}\\n\\n\";\r\n  (section_headings[1]).subsection_names[0] = \"\\\\subsection{Total number of TPulseIslands}\\n\\n\";\r\n  (section_headings[1]).subsection_names[1] = \"\\\\subsection{Length of TPulseIslands}\\n\\n\";\r\n  (section_headings[1]).subsection_names[2] = \"\\\\subsection{Rate of TPulseIslands}\\n\\n\";\r\n  (section_headings[1]).subsection_names[3] = \"\\\\subsection{Timestamps of TPulseIslands}\\n\\n\";\r\n  (section_headings[1]).subsection_names[4] = \"\\\\subsection{Amplitudes of TPulseIslands}\\n\\n\";\r\n\r\n  section_headings[2].section_name = \"\\\\section{Pulse Details}\\n\\n\";\r\n  (section_headings[2]).subsection_names[0] = \"\\\\subsection{Pulse Shape Persistancy Plot}\\n\\n\";\r\n  (section_headings[1]).subsection_names[1] = \"\\\\subsection{Neutron Gamma Separation plot}\\n\\n\";\r\n.\r\n.\r\n.\r\n\t  else if (plotname.find(\"Island\") != std::string::npos) {\r\n\t    section = 1;\r\n\r\n\t    // Check for subsection\r\n\t    if (plotname.find(\"Counter\") != std::string::npos) {\r\n\t      subsection = 0;\r\n\t    }\r\n\t    else if (plotname.find(\"Length\") != std::string::npos) {\r\n\t      subsection = 1;\r\n\t    }\r\n\t    else if (plotname.find(\"Rate\") != std::string::npos) {\r\n\t      subsection = 2;\r\n\t    }\r\n\t    else if (plotname.find(\"Timestamp\") != std::string::npos) {\r\n\t      subsection = 3;\r\n\t    }\r\n\t    else if (plotname.find(\"Amplitude\") != std::string::npos) {\r\n\t      subsection = 4;\r\n\t    }\r\n\t  }\r\n\t  else if (plotname.find(\"PulseShapes\") != std::string::npos) { // want the Pedestal and Noise plots to be put into a separate section even though they are created in this module\r\n\t    section = 2;\r\n\t    subsection = 0;\r\n\t  }\r\n\t  else if (plotname.find(\"HEFoM\") != std::string::npos) {\r\n\t    section = 2;\r\n\t    subsection = 1;\r\n\t  }\r\n```\r\nWhich outputs\r\n```LaTeX\r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hDQ_IslandCounter_V1724_5_D405.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\clearpage \r\n\r\n\\subsection{Neutron Gamma Separation plot}\r\n\r\n\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hDQ_IslandLength_BROKEN_D700_normalised.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\begin{figure}[h] \r\n\\begin{center} \r\n```\r\nI'm definitely more perplexed by this error, especially as I do not have any of the plots that should generate this subsection to begin with.  This is probably some error of understanding in how these titles are searched and generated.  It is also worth noting that the Amplitude section is created in subsection 1 despite being labeled as subsection 5.\r\n\r\n2.\r\nI have a problem with the compilation not completing (error on the last section).  Checking the output file the last few lines are:\r\n><data_quality_figs/hDQ_TDCCheck_nMuons.png, id=1371, 698.61pt x 473.77pt>\r\n><use data_quality_figs/hDQ_TDCCheck_nMuons.png> [166 <./data_quality_figs/hDQ_T\r\n>DCCheck_Muon_time.png> <./data_quality_figs/hDQ_TDCCheck_nMuons.png>])\r\n>Runaway argument?\r\n>{Timing) \\par \\subsection {Sync Pulses} \\par \\begin {figure}[h] \\begin \\ETC.\r\n>!> File ended while scanning use of \\@xdblarg.\r\n><inserted text> \r\n>                \\par \r\n><*> Data_Quality_Run6179\r\nThese files do occur in the listoflines.txt file\r\n>data_quality_figs/hDQ_TDCCheck_nMuons.png\r\n>data_quality_figs/hSyncCount_Crate0.png\r\n>data_quality_figs/hSyncCount_Crate1.png\r\n>data_quality_figs/hSyncCount_Crate2.png\r\n>data_quality_figs/hSyncCount_Crate3.png\r\n>data_quality_figs/hSyncCount_Crate4.png\r\n>data_quality_figs/hSyncCount_Crate5.png\r\n>data_quality_figs/hSyncCount_Crate6.png\r\n>data_quality_figs/hSyncCount_Crate7.png\r\n>data_quality_figs/hSyncCount_Crate8.png\r\n>data_quality_figs/hSyncCount_TDC.png\r\n The images seem to be included in the Tex file\r\n```LaTeX\r\n\\subsection{Number of muons hits}\r\n\r\n\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hDQ_TDCCheck_nMuons.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\clearpage \r\n\r\n\\section{Timing)\r\n\r\n\\subsection{Sync Pulses}\r\n\r\n\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_Crate0.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_Crate1.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\clearpage \r\n\r\n\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_Crate2.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_Crate3.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\clearpage \r\n\r\n\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_Crate4.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_Crate5.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\clearpage \r\n\r\n\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_Crate6.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_Crate7.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\clearpage \r\n\r\n\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_Crate8.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\begin{figure}[h] \r\n\\begin{center} \r\n\\includegraphics[height=0.33\\textheight, angle=0]{data_quality_figs/hSyncCount_TDC.png} \r\n\\end{center} \r\n\\vspace{-5mm} \r\n\\caption{} \r\n\\end{figure} \r\n\\vspace{1.5cm}\\clearpage \r\n\r\n\\newpage \r\n \\clearpage\r\n\r\n\\end{document}\r\n```\r\nThis one has me completely lost as to the cause.\r\nAny thoughts?                     \r\n"},"comment":{"url":"https://api.github.com/repos/alcap-org/AlcapDAQ/issues/comments/128859121","html_url":"https://github.com/alcap-org/AlcapDAQ/issues/272#issuecomment-128859121","issue_url":"https://api.github.com/repos/alcap-org/AlcapDAQ/issues/272","id":128859121,"user":{"login":"dmalexan","id":5910796,"avatar_url":"https://avatars.githubusercontent.com/u/5910796?v=3","gravatar_id":"","url":"https://api.github.com/users/dmalexan","html_url":"https://github.com/dmalexan","followers_url":"https://api.github.com/users/dmalexan/followers","following_url":"https://api.github.com/users/dmalexan/following{/other_user}","gists_url":"https://api.github.com/users/dmalexan/gists{/gist_id}","starred_url":"https://api.github.com/users/dmalexan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmalexan/subscriptions","organizations_url":"https://api.github.com/users/dmalexan/orgs","repos_url":"https://api.github.com/users/dmalexan/repos","events_url":"https://api.github.com/users/dmalexan/events{/privacy}","received_events_url":"https://api.github.com/users/dmalexan/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T23:34:31Z","updated_at":"2015-08-07T23:34:31Z","body":"This fixed it, sorry for the troubles.  Now to get the trendplots and dataset picturebooks working"}}