ocelot-collab / ocelot

OCELOT is a multiphysics simulation toolkit designed for studying FEL and storage ring-based light sources.
GNU General Public License v3.0
85 stars 58 forks source link

Tests Error because of missing data files #164

Closed st-walker closed 1 year ago

st-walker commented 1 year ago

Hello friends,

One missing file in particular:

FileNotFoundError: ./unit_tests/ebeam_test/section_track/accelerator/wakes/RF/mod_TESLA_MODULE_WAKE_TAYLOR.dat not found

This results in something like 15 errors.

Another single test fail:

 E           FileNotFoundError: ./unit_tests/ebeam_test/wake/wake_table.dat not found.
sergey-tomin commented 1 year ago

Just checked. their are in repository. Apparently something wrong on your site. https://github.com/ocelot-collab/ocelot/blob/dev/unit_tests/ebeam_test/section_track/accelerator/wakes/RF/mod_TESLA_MODULE_WAKE_TAYLOR.dat

https://github.com/ocelot-collab/ocelot/blob/dev/unit_tests/ebeam_test/wake/wake_table.dat

st-walker commented 1 year ago

I revisited this. The problem is the paths are like this:

        wake.wake_table = WakeTable('./unit_tests/ebeam_test/section_track/accelerator/wakes/RF/mod_TESLA_MODULE_WAKE_TAYLOR.dat')

so the tests only work if you run them in the root directory, which is not the way it should be. you should be able to run them from anywhere. So yes the files are there but it is not the point.

I guess I will just fix this now.

st-walker commented 1 year ago

pull request #179

st-walker commented 1 year ago

merged in #179