Skip to content

Commit

Permalink
fix db
Browse files Browse the repository at this point in the history
  • Loading branch information
Elisa-Visentin committed Sep 11, 2024
1 parent 964867e commit 9bdea51
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,16 @@ def main():
config_dict["database_paths"]["MAGIC+LST1"],
key=config_dict["database_keys"]["MAGIC+LST1"],
) # TODO: put this file in a shared folder
'''
df2 = pd.read_hdf(
config_dict["database_paths"]["MAGIC+LST1_bis"],
key=config_dict["database_keys"]["MAGIC+LST1_bis"],
) # TODO: put this file in a shared folder
df = pd.concat([df, df2]).drop_duplicates(subset="LST1_run", keep="first")
df = df.sort_values(by=["DATE", "source"])
df = df.reset_index(drop=True)
'''
if args.begin != 0:
df = df[df["DATE"].astype(int) >= args.begin]
if args.end != 0:
Expand Down

0 comments on commit 9bdea51

Please sign in to comment.