skyportal / gwemopt

Gravitational-wave Electromagnetic Optimization
GNU General Public License v3.0
19 stars 34 forks source link

Minor bugfixes and cleanup #141

Closed Theodlz closed 1 year ago

Theodlz commented 1 year ago

This PR makes sure that the epochs key in the tiles struct is resetted to size 8 if empty. For some reason (which needs further investigation later maybe) this array changes to size 9 somewhere in the code, which raises an error when appending an array size 8 to it later on. This avoids that error.

Also, we make sure to not throw an error if a user didn't specify the 'doMindifFilt' argument.

EDIT: Trying to avoid instantiating it to size 9, and removing a bunch of unused variables.