Skip to content

Commit

Permalink
Update confounders b2ai-redcap2rs checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
ibevers committed Jan 15, 2025
1 parent 233da76 commit 4eb6f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions find_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

# Define list of directories, target text, and replacement text
directories = ["/Users/isaacbevers/sensein/reproschema-wrapper/b2ai-redcap2rs"]
# search_text = "[LEGACY]\n"
search_text = "https://raw.githubusercontent.com/sensein/b2ai-redcap2rs/24cbb461c2ff6556f047dd4bc1275b4b08d52eb8/activities/"
replace_text = "\"NaN\""
search_text = "[LEGACY]\\n"
# search_text = "https://raw.githubusercontent.com/sensein/b2ai-redcap2rs/24cbb461c2ff6556f047dd4bc1275b4b08d52eb8/activities/"
replace_text = ""

# Iterate over each directory in the list
for directory in directories:
for root, dirs, files in os.walk(directory):
for file in files:
file_path = os.path.join(root, file)
suffixes = [".DS_Store", ".jpeg", "index", ".pack", ".idx"]
if not file_path.endswith(tuple(suffixes)):
if not file_path.endswith(tuple(suffixes)) and not ".git" in file_path:
# Open the file and replace text
print(file_path)
with open(file_path, 'r', encoding='utf-8') as f:
Expand Down
2 changes: 1 addition & 1 deletion generic/q_generic_confounders/q_generic_confounders_schema
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@
"https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
{
"reproschema_library_activities": "https://raw.githubusercontent.com/ReproNim/reproschema-library/8c11e4fad32d09f351b8a432d5d2666ea9709170/activities/",
"b2ai_redcap2rs_activities": "https://raw.githubusercontent.com/sensein/b2ai-redcap2rs/4174f4dd11a59101d0d53a4f46dc6519b7c8d2fd/activities/"
"b2ai_redcap2rs_activities": "https://raw.githubusercontent.com/sensein/b2ai-redcap2rs/04e3d573c6857d74bf616f21c756e47531ee1254/activities/"
}
]
}

0 comments on commit 4eb6f0b

Please sign in to comment.