diff --git a/Owlcat/bin/flag-ms.py b/Owlcat/bin/flag-ms.py index 49ed612..ded21dc 100755 --- a/Owlcat/bin/flag-ms.py +++ b/Owlcat/bin/flag-ms.py @@ -300,11 +300,13 @@ def parse_subset_options(options): ftab.close() ms.putcol("FLAG_ROW", flag_row) ms.putcol("FLAG", flag_col) + flag_col[flag_row,...] = True ms.close() + ratio = flag_col.sum() / float(flag_col.size) + print(f"Flag version '{options.restore}' restored: {ratio:.2%} flagged.") except: traceback.print_exc() error(f"Error restoring flags from {options.restore}, exiting") - print(f"Flag version '{options.restore}' restored.") # if no other actions supplied, enable stats (unless flags were imported, in which case just exit) if not (options.flag or options.unflag or options.copy or options.fill_legacy): diff --git a/setup.py b/setup.py index 5fa1dd9..2e99196 100755 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ ] setup(name='owlcat', - version='1.6.4', + version='1.7.1', description='miscellaneous utility scripts for manipulating radio interferometry data', author='Oleg Smirnov', author_email='Oleg Smirnov ',