From 7fae9c2cb6ae548af5959719d42aa563ffc7410e Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Fri, 4 Oct 2024 10:54:30 -0700 Subject: [PATCH] patches for goaltype --- py/specprodDB/patch.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/py/specprodDB/patch.py b/py/specprodDB/patch.py index c18d20e..1b5e073 100644 --- a/py/specprodDB/patch.py +++ b/py/specprodDB/patch.py @@ -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))