Skip to content

Commit

Permalink
change log and code style
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Aug 2, 2024
1 parent 4ff336b commit 57e9d4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Cubeviz

- Background subtraction support within Spectral Extraction. [#2859]

- Aperture photometry plugin now listens to changes in display unit. [#3118]

Imviz
^^^^^

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -842,12 +842,12 @@ def calculate_photometry(self, dataset=None, aperture=None, background=None,
if key in ('id', 'data_label', 'subset_label', 'background', 'pixarea_tot',
'counts_fac', 'aperture_sum_counts_err', 'flux_scaling', 'timestamp'):
continue

x = phot_table[key][0]

if isinstance(x, u.Quantity): # split up unit and value to put in different cols
unit = x.unit.to_string()
if unit == '': # for eccentricity which is a quantity with an empty unit for some reason
if unit == '': # for eccentricity which is a quantity with an empty unit
unit = '-'
x = x.value
else:
Expand Down

0 comments on commit 57e9d4b

Please sign in to comment.