-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] cocopp_commands.tex does not contain pptablesheader #1990
Comments
Many thanks for your bug report. It indeed pointed to a mistake on our side: we had reverted the average runtime (aRT) to the previous expected runtime (ERT), but only in the postprocessing module and not (yet) in the LaTeX templates. That meant that you could not compile the LaTeX templates without errors. This should be fixed now in the The problem with the missing I think, we should consider also moving for the |
Add-on, just to understand what is happening: the |
Sorry, I meant actually |
Could it be because I only run for dimension 20 and you have this code?
|
You are right, this looks like the reason. When I postprocess any three algorithms (with dimension 2), I get the \providecommand{\pptablesheader}{
\begin{tabularx}{1.0\textwidth}{@{}c@{}|*{7}{@{}r@{}X@{}}|@{}r@{}@{}l@{}}
$\Delta f_\mathrm{opt}$ & \multicolumn{2}{@{\,}l@{\,}}{1e1} & \multicolumn{2}{@{\,}l@{\,}}{1e0} & \multicolumn{2}{@{\,}l@{\,}}{1e-1} & \multicolumn{2}{@{\,}l@{\,}}{1e-2} & \multicolumn{2}{@{\,}l@{\,}}{1e-3} & \multicolumn{2}{@{\,}l@{\,}}{1e-5} & \multicolumn{2}{@{\,}l@{\,}}{1e-7} & \multicolumn{2}{|@{}l@{}}{\#succ}\\\hline
} We will discuss in the core developer team whether we should change the actual code accordingly. Once again, many thanks for filing the issue and even more for finding the likely reason for the "bug"! |
I just changed the code to avoid the check. Is that problematic? diff --git a/code-postprocessing/cocopp/compall/pptables.py b/code-postprocessing/cocopp/compall/pptables.py
index d190605..fd2fade 100644
--- a/code-postprocessing/cocopp/compall/pptables.py
+++ b/code-postprocessing/cocopp/compall/pptables.py
@@ -717,7 +717,9 @@ def main(dict_alg, sorted_algs, output_dir='.', function_targets_line=True, late
if len(additional_commands) > 0:
for command in additional_commands:
prepend_to_file(latex_commands_file, [command])
- if len(tables_header) > 0 and df[0] == testbedsettings.current_testbed.tabDimsOfInterest[0]:
+ print(f"DEBUGGIN: {df[0]}")
+ print(f"DEBUGGIN: {testbedsettings.current_testbed.tabDimsOfInterest[0]}")
+ if len(tables_header) > 0: # and df[0] == testbedsettings.current_testbed.tabDimsOfInterest[0]:
extraeol = [r'\hline']
res = tableXLaTeX([tables_header], spec=spec, extra_eol=extraeol, add_end_tabular=False)
prepend_to_file(latex_commands_file, ['\\providecommand{\\pptablesheader}{', res, '}']) |
That should not be problematic. The |
I changed the "problematic" line now to if len(tables_header) > 0 and df[0] == min(df): to avoid the problem. Hence, closing this issue. |
I'm trying to get my head around COCO and I'm having some issues generating the info for the tables. I run the following command:
But the cocopp_commands.tex file generated seems to be missing information required by the templates, such as
pptablesheader
(orpptableheader
).The text was updated successfully, but these errors were encountered: