xcist / main

simulation and reconstruction package
BSD 3-Clause "New" or "Revised" License
47 stars 24 forks source link

Add to_upper/to_lower case checking for cfg files #19

Closed osandvold302 closed 2 years ago

osandvold302 commented 2 years ago

Error in running 0.1.6 catsim, new install, windows 11

catsim/pyfiles/Xray_filter.py contains material array ['al', 'graphite', 'cu', 'ti'] catsim/pyfiles/Detection_prefilter.py contains material array with 'al'

Both throw exception in CommonTools.py line 119

Would recommend adding a to_lower check for both inputs and against material files stored in materials/

MingyeWu commented 2 years ago

Thanks! Issue fixed.