Skip to content

Commit

Permalink
Update fetch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rhinempi authored Aug 22, 2024
1 parent c0e5e91 commit 76a69b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ def fetch_and_write_stargazer_ts(repo: Repository.Repository, args):
tmppath,
args.stargazer_ts_snapshots_inoutpath,
)

# Define the directory where the CSV will be saved
output_dir = 'ghrs-data'

# Check if the directory exists, and create it if it doesn't
if not os.path.exists(output_dir):
os.makedirs(output_dir)

updated_sdf.to_csv(tmppath, index_label="time_iso8601")
os.rename(tmppath, args.stargazer_ts_snapshots_inoutpath)

Expand Down

0 comments on commit 76a69b6

Please sign in to comment.