Skip to content

Commit

Permalink
patches for goaltype
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Oct 4, 2024
1 parent d373b29 commit 7fae9c2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions py/specprodDB/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,18 @@ def patch_tiles(src_tiles, dst_tiles, timestamp):
assert len(oddball_program) == 0
dst_tiles_patched['SURVEY'][oddball_survey] = 'cmx'
#
# Patch GOALTYPE.
#
dst_tiles_patched['GOALTYPE'][dst_tiles_patched['TILEID'] == 83004] = 'dark'
dst_tiles_patched['GOALTYPE'][dst_tiles_patched['TILEID'] == 83024] = 'bright'
oddball_goaltype = np.where(dst_tiles_patched['GOALTYPE'] == 'unknown')[0]
dst_tiles_patched['GOALTYPE'][oddball_goaltype] = 'other'
#
# Patch EFFTIME_SPEC.
#
dst_tiles_patched['EFFTIME_SPEC'][dst_tiles_patched['TILEID'] == 1825] = 0
dst_tiles_patched['EFFTIME_SPEC'][dst_tiles_patched['TILEID'] == 21273] = 0
#
# Add UPDATED.
#
dst_tiles_patched['UPDATED'] = np.array([timestamp.strftime("%Y-%m-%dT%H:%M:%S%z")]*len(dst_tiles_patched))
Expand Down

0 comments on commit 7fae9c2

Please sign in to comment.