smash-transport / smash-analysis

Analysis tools that are useful to calculate observables from SMASH.
http://theory.gsi.de/~smash/analysis_suite/current/
Other
8 stars 2 forks source link

Unclear how to use generate_html.py #7

Closed vks closed 2 years ago

vks commented 5 years ago

When running generate_html.py on a folder with plots, I get the following error:

Traceback (most recent call last):
  File "/home/steinberg/src/smash-analysis-new/test/report/generate_html.py", line 660, in <module>
    tree = reorder_tree(tree, source_dir.split('/')[-2])
IndexError: list index out of range

Apparently, the code makes some assumptions about the folder structure. However, they seem to be undocumented, so I don't know how invoke the script correctly.

Ideally, I think the code should be more robust and not make those assumptions.

elfnerhannah commented 5 years ago

Can we just add in the README where this script needs to be invoked?

vks commented 5 years ago

I think the right place for documentation would be here or here. That way, the usage is explained when running generate_html.py --help.

akschaefer commented 2 years ago

@NGoetz will check whether this still needs attention and take care of it, if necessary.