Skip to content

Commit

Permalink
Fixing file path
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-katkov committed Jun 4, 2024
1 parent 4d4f383 commit d7706c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/valis/routes/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,8 @@ async def get_spectrum_lvm_fiber(self,

# construct file path for lvmSFrame-*.fits file
suffix = str(exposure).zfill(8)
if tile_id == -999:
if tile_id == 11111:
filename = f"0011XX/11111/{mjd}/lvmSFrame-{suffix}.fits"
elif tile_id == 999:
filename = f"0000XX/{tile_id}/{mjd}/lvmSFrame-{suffix}.fits"
else:
filename = f"{str(tile_id)[:4]}XX/{tile_id}/{mjd}/lvmSFrame-{suffix}.fits"

Expand Down

0 comments on commit d7706c1

Please sign in to comment.