fix codestyle stuff (but I am intentionally ignoring E124 closing
bracket does not match visual indentation because I disagree)
@@ -137,10 +137,12 @@ def footprint_to_reg(footprint):
return reglist
+
def add_meta_to_reg(reg, meta):
reg.meta = meta
return reg
+
def approximate_primary_beam_sizes(frequency_support_str,
dish_diameter=12 * u.m, first_null=1.220):
r"""
@@ -377,7 +379,8 @@ def make_finder_chart_from_image_and_catalog(image, catalog, save_prefix,
log.debug('Creating regions')
prv_regions = {
band: pyregion.ShapeList([add_meta_to_reg(fp,
- {'integration':row['Integration']})
+ {'integration':
+ row['Integration']})
for row in catalog
for fp in footprint_to_reg(row['Footprint'])
if (not row['Release date']) or
@@ -386,7 +389,8 @@ def make_finder_chart_from_image_and_catalog(image, catalog, save_prefix,
for band in bands}
pub_regions = {
band: pyregion.ShapeList([add_meta_to_reg(fp,
- {'integration':row['Integration']})
+ {'integration':
+ row['Integration']})
for row in catalog
for fp in footprint_to_reg(row['Footprint'])
if row['Release date'] and
@@ -394,8 +398,6 @@ def make_finder_chart_from_image_and_catalog(image, catalog, save_prefix,
today and row['Band'] == band)])
for band in bands}
-
-
log.debug('Creating masks')
prv_mask = {
band: fits.PrimaryHDU(
@@ -415,7 +417,6 @@ def make_finder_chart_from_image_and_catalog(image, catalog, save_prefix,
for band in bands:
log.debug('Adding integration-scaled masks for Band: {0}'.format(band))
-
shapes = prv_regions[band]
for shape in shapes:
# private: release_date = 'sometime' says when it will be released
