Skip to content

Commit

Permalink
update filename
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuwq0 committed Sep 12, 2024
1 parent e4bbbbf commit f9ae18a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run_adloc_cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
events["time"] = pd.to_datetime(events["event_time"])
stations = pd.read_csv(os.path.join(data_path, "cctorch_stations.csv"))
picks = pd.read_csv(os.path.join(data_path, "cctorch_picks.csv"), parse_dates=["phase_time"])
pairs = pd.read_csv(os.path.join(data_path, "ccpairs", "CC_000_002.csv"))
pairs = pd.read_csv(os.path.join(data_path, "dtcc.csv"))

with open(f"{root_path}/{region}/config.json", "r") as fp:
config = json.load(fp)
Expand Down
7 changes: 7 additions & 0 deletions scripts/run_cctorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@
if os.path.lexists(target_file):
os.remove(target_file)
os.symlink(source_file, target_file)

source_file = f"ccpairs/CC_{num_gpu:03d}.csv"
target_file = f"dtcc.csv"
print(f"{source_file} -> {target_file}")
if os.path.lexists(target_file):
os.remove(target_file)
os.symlink(source_file, target_file)

0 comments on commit f9ae18a

Please sign in to comment.