Skip to content

Commit

Permalink
Fix MRT compat with astropy v6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Nov 13, 2023
1 parent 083c688 commit 6a2f2c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion acstools/findsat_mrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ def save_output(self, close_plot=True):
# an inconsequential warning so we suppress it here.
with warnings.catch_warnings():
warnings.filterwarnings('ignore',
message='Attribute `version` of')
message='Attribute `version` of.*')
self.source_list.write(cat_filename, overwrite=True)
else:
# create an empty catalog and write that. It helps to have this
Expand Down
4 changes: 3 additions & 1 deletion acstools/utils_findsat_mrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def merge_tables(tbls, theta_sep=10, rho_sep=10):
drho = np.abs(t['ycentroid'] - s['ycentroid'])
sel = (dtheta < theta_sep) & (drho < rho_sep)
keep[sel] = False
src = vstack([src, t[keep]])
# Silence MergeConflictWarning for "date" metadata because
# the tables were created with different timestamps. The last entry is kept.
src = vstack([src, t[keep]], metadata_conflicts="silent")
return src


Expand Down

0 comments on commit 6a2f2c4

Please sign in to comment.