Skip to content

Commit

Permalink
Handle meta -- desi_meta
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Nov 20, 2023
1 parent a196159 commit b59b10a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py/desispec/spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,9 @@ def to_specutils(self):
#
meta['bands'] = self.bands
meta['single'] = self._single
for key in ('fibermap', 'exp_fibermap', 'desi_meta',
if self.meta:
meta['desi_meta'] = self.meta.copy()
for key in ('fibermap', 'exp_fibermap',
'scores', 'scores_comments', 'extra_catalog'):
try:
meta[key] = getattr(self, key).copy()
Expand Down

0 comments on commit b59b10a

Please sign in to comment.