Closed TomNicholas closed 1 month ago
What you are looking at is part of the ucla-roms
code written by somebody there, specifically:
https://github.com/CESR-lab/ucla-roms/blob/main/Examples/code_check/test_roms.py
I'm not sure at what step in the procedure you are, but a clean copy of C-Star will not include ucla-roms
. You can safely delete cstar/externals
, where ROMS and MARBL will have been downloaded as part of your previous use. If you need externals
to be there, we have a bigger problem and will have to issue a PR to CESR, presumably adding a name is main check to safeguard against that script being executed on import, as I gather it is was intended to be standalone.
To answer what it's doing, my understanding is it parses a "benchmark" file (which is just a log file from a known working ROMS run) and compares it with the log file from the run it just excuted. This line in particular sets the name of the benchmark file based on user input of what system they'd like to check on (for instance, there is now a benchmark.result_github
file for when sys.argv[-1]
is github
, as in the CI routine).
Or you could try what these other folks are suggesting? thanks for the input fellas
I'm trying to work on #42, but when I run pytest it fails because it tries to import code in the ucla-roms submodule, which throws this error.
In fact I can't even import that module directly:
What is that line doing?