Skip to content

Commit

Permalink
Fix auto flagging (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanep97 authored Nov 3, 2024
1 parent e02ff4e commit 48cadef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iop4lib/iop4.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def process_epochs(epochname_list: Iterable[str], args):

for result in PhotoPolResult.objects.filter(epoch__in=epoch_L).all():
if result.p is not None and not (0 <= result.p <= 1):
result.flags.add(PhotoPolResult.FLAGS.ERROR_POLARIMETRY)
result.set_flag(PhotoPolResult.FLAGS.BAD_POLARIMETRY)
result.save()

logger.info("Applying corrections.")
Expand Down

0 comments on commit 48cadef

Please sign in to comment.