Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Joseph Leadman committed Jun 3, 2024
1 parent 6c7c0ce commit 08b07e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "RDAS_PAKG/epi4GARD"]
path = RDAS_PAKG/epi4GARD
url = https://github.com/ncats/epi4GARD.git
url = git@github.com:ncats/epi4GARD.git
[submodule "RDAS_PAKG/NaturalHistory4GARD"]
path = RDAS_PAKG/NaturalHistory4GARD
url = https://github.com/ncats/NaturalHistory4GARD.git
url = git@github.com:ncats/NaturalHistory4GARD.git
8 changes: 6 additions & 2 deletions RDAS_GFKG/prep_neo4j_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ def run_normmap():
prj_files = sorted(prj_files)

for idx, abs_file in enumerate(abs_files):
year = re.findall(r'\d+', abs_file)[0]

if os.path.exists(data_raw(f'normmap/RePORTER_NORMMAP_{year}.csv')):
print(data_raw(f'normmap/RePORTER_NORMMAP_{year}.csv') + ' already exists... bypassing')
continue

prj_file = prj_files[idx]

print(abs_file, ' -merged- ',prj_file)
Expand All @@ -184,8 +190,6 @@ def run_normmap():
merged_df = pd.merge(tmp, tmp2, on=['APPLICATION_ID'])
merged_df['APPLICATION_ID'] = merged_df['APPLICATION_ID'].astype(int)

year = re.findall(r'\d+', abs_file)[0]

merged_df.to_csv(data_raw(f'normmap/RePORTER_NORMMAP_{year}.csv'), index=False)


Expand Down
4 changes: 2 additions & 2 deletions start_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
workspace = os.path.dirname(os.path.abspath(__file__))
sys.path.append(workspace)
sys.path.append('/home/leadmandj/RDAS/')
sys.path.append(os.getcwd())
print(sys.path)
import sysvars
Expand All @@ -13,8 +14,7 @@
import argparse
from datetime import date,datetime
from AlertCypher import AlertCypher
from gard.methods import get_node_counts
import ses_firebase
from RDAS_GARD.methods import get_node_counts
import firebase_admin
from firebase_admin import auth
from firebase_admin import credentials
Expand Down
5 changes: 5 additions & 0 deletions sysvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

base_path = '/home/{current_user}/{base_directory_name}/'.format(current_user=current_user, base_directory_name=base_directory_name)

# RDAS Team contacts for emails
contacts = [
"[email protected]"
]

# Folder paths
backup_path = '{base_path}backup/'.format(base_path=base_path)
transfer_path = '{base_path}transfer/'.format(base_path=base_path)
Expand Down

0 comments on commit 08b07e4

Please sign in to comment.