Skip to content

Commit

Permalink
Added moving of stations directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpmcmanus committed Jul 12, 2024
1 parent 776ed1e commit 32600be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion run/ingestTasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import glob
import os
import sys
import shutil
import psycopg
import pandas as pd
from pathlib import Path
Expand All @@ -28,7 +29,11 @@ def ingestStations(ingestDir):
Returns
None
'''


# Move station meta files to the /data/DataIngesting/DAILY_INGEST/
logger.info('Copy stations directory to '+ingestDir)
shutil.copytree('/home/nru/stations', ingestDir+'stations', dirs_exist_ok=True)

# Create list of geom files, to be ingested by searching the input directory for geom files.
inputFiles = glob.glob(ingestDir+"stations/geom_*.csv")

Expand Down

0 comments on commit 32600be

Please sign in to comment.