PaNOSC-ViNYL / SimEx

Start-to-end photon experiment simulation platform
https://simex.readthedocs.io/
GNU General Public License v3.0
26 stars 25 forks source link

TNSAIonMatterInteractor.py cannot pass the test because `sdf.read` doesn't exist. #220

Closed JunCEEE closed 3 years ago

JunCEEE commented 3 years ago

TNSAIonMatterInteractor.py cannot pass the test because sdf.read doesn't exist. @leczzsolt, could you please help fix the problem? From this page https://github.com/ScientificDataFormat/SDF-Python, I only found sdf.load to read the file.

JunCEEE commented 3 years ago

https://cfsa-pmw.warwick.ac.uk/SDF/SDF_C This is the one to check. The previous link is a different one with the same acronym.

Found this one, maybe I can try it quickly https://pypi.org/project/sdfpy/ Conclusion: failed, version too old.

JunCEEE commented 3 years ago
wget https://github.com/leczzsolt/neutrontools/blob/master/SDF.zip?raw=true -O SDF.zip
unzip SDF.zip
cd SDF
mkdir build
cd build
cmake ..
make -j
make install
JunCEEE commented 3 years ago

Fixed in this commit https://github.com/PaNOSC-ViNYL/SimEx/commit/f1fe3facac439c588352cf78bac48c2d00141d5b