Skip to content

Commit

Permalink
path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andycasey committed Oct 3, 2022
1 parent 6b0eb44 commit f773c3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/astra/sdss/datamodels/mwm.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,10 @@ def execute(self):
# Write to disk.
log.warn("Setting mwmVisit/mwmStar paths by hand because we are waiting on a new release of sdss_access and the tree product") # TODO
k = 100
catalogid_groups = f"{(catalogid // k) % k:.0f}/{catalogid % k:.0f}"
#catalogid_groups = f"{(catalogid // k) % k:.0f}/{catalogid % k:.0f}"
log.warn("catalogid groups still wrong")
catalogid_groups = f"{catalogid % 1_000:.0f}/{catalogid & 1_000:.0f}"
#catalogid_groups = f"{catalogid % 1_000:.0f}/{catalogid & 1_000:.0f}"
catalogid_groups = f"{(catalogid // k) % k:0>2.0f}/{catalogid % k:0>2.0f}"
mwmStar_path = expand_path("$MWM_ASTRA/{v_astra}/{run2d}-{apred}/spectra/star/{catalogid_groups}/mwmStar-{v_astra}-{cat_id}.fits".format(catalogid_groups=catalogid_groups, **kwds))
mwmVisit_path = expand_path("$MWM_ASTRA/{v_astra}/{run2d}-{apred}/spectra/visit/{catalogid_groups}/mwmVisit-{v_astra}-{cat_id}.fits".format(catalogid_groups=catalogid_groups, **kwds))
#mwmVisit_path = sdss_path.full("mwmVisit", **kwds)
Expand Down

0 comments on commit f773c3e

Please sign in to comment.