LLNL / pysaber

Python package for a systems approach to blur estimation and reduction
MIT License
4 stars 3 forks source link

When SOD in all scans are the same, the code generate an empty sod_det list #1

Open DamonLee5 opened 1 year ago

DamonLee5 commented 1 year ago

I tried to run the code with the same SODs. However, a bug came up and said,

max argument is an empty sequence https://github.com/LLNL/pysaber/blob/ef39a80d24041ce7a97e2aa911405342f6b2665b/pysaber/mainsr.py#L203

I tried to look up to find that empty list, it is created in the below line, In mainsr.py https://github.com/LLNL/pysaber/blob/ef39a80d24041ce7a97e2aa911405342f6b2665b/pysaber/mainsr.py#L89.

My suggestion is that use <= instead of < to avoid this error. I did this in my local branch and it can successfully run without any trouble.