oshaughn / research-projects-RIT

Clean version of research-projects, just with ILE
MIT License
14 stars 14 forks source link

Bug fix for `samples_utils.py` #83

Closed askoldvilkha closed 9 months ago

askoldvilkha commented 9 months ago

The previous version of samples_utils,py only checked for phi1 field in the input .dat file, and tried to add phi2, or phi12 even if they were present before. That caused an error if they were present. Modified the code so now it checks for phi1, phi2 and phi12 in the input .dat file and computes and adds the missing ones.

oshaughn commented 9 months ago

Note code assumes processing in order in for loop. Should work, assuming iterator doesn’t change order