Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
andycasey committed Nov 14, 2024
1 parent 1c7fa4e commit 644f6c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/astra/models/astronn_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ def apply_flags(self, meta=None, missing_photometry=False, missing_extinction=Fa

return None

print("WARNING: TODO: apply_flags needs properly integrating for astronn_dist")
#print("WARNING: TODO: apply_flags needs properly integrating for astronn_dist")
5 changes: 4 additions & 1 deletion src/astra/products/mwm_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from astropy.io import fits
from astra import __version__
from astra.utils import expand_path
from astra.models import Source, ApogeeVisitSpectrum, ApogeeCoaddedSpectrumInApStar, BossVisitSpectrum, BossCombinedSpectrum, ApogeeCombinedSpectrum
from astra.models.source import Source
from astra.models.apogee import ApogeeVisitSpectrum, ApogeeCoaddedSpectrumInApStar
from astra.models.boss import BossVisitSpectrum
from astra.models.mwm import BossCombinedSpectrum, ApogeeCombinedSpectrum
from astra.products.utils import (get_fields, get_basic_header, get_binary_table_hdu, check_path)

get_path = lambda bn: expand_path(f"$MWM_ASTRA/{__version__}/summary/{bn}")
Expand Down
8 changes: 5 additions & 3 deletions src/astra/products/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
Field,
Model,
PostgresqlDatabase,
FieldAccessor,
JOIN,
)
from astra.fields import (
TextField,
FloatField,
BooleanField,
Expand All @@ -13,10 +17,9 @@
BigIntegerField,
ForeignKeyField,
DateTimeField,
FieldAccessor,
BigBitField,
JOIN
)
from astra.models.fields import BasePixelArrayAccessor
try:
from playhouse.postgres_ext import ArrayField
except:
Expand All @@ -29,7 +32,6 @@
from astra import __version__
from astra.utils import log, flatten, expand_path
from astra import models as astra_models
from astra.models.fields import BitField, BasePixelArrayAccessor
from typing import Union
from astra.glossary import Glossary

Expand Down

0 comments on commit 644f6c8

Please sign in to comment.