-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc946e1
commit e9abfd6
Showing
4 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
library(ggplot2) | ||
library(RColorBrewer) | ||
library(reshape2) | ||
|
||
subject_folders <- list.files(path="Subjects") | ||
for(i in 1:length(subject_folders)){ | ||
filenames_pt <- list.files(path=paste0("Subjects/",subject_folders[i]), | ||
pattern="ProgressTracker_MANUAL*.csv", full.names=TRUE) | ||
print(filenames_pt) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
################################## | ||
# Congregate Progress Tracker # | ||
# SENSEable Design Lab # | ||
################################## | ||
# v1.0 | ||
# 2/14/2023 | ||
################################## | ||
# Pass in nothing | ||
# EXP: 'python CongregateProgressTrackers.py' | ||
################################## | ||
# Authors: | ||
# Sermarini | ||
################################## | ||
|
||
import sys | ||
import os | ||
import re | ||
|
||
directory_path = "..\\Subjects" | ||
|
||
def main(argv): | ||
subject_dirs = os.listdir(directory_path) | ||
# Remove non subject folders | ||
for i in range(len(subject_dirs) - 1, 0, -1): | ||
if not os.path.isdir(os.path.join(directory_path, subject_dirs[i])): | ||
subject_dirs.pop(i) | ||
subject_dirs.remove("Mihir") # Pilot test | ||
subject_dirs.remove(".gitkeep") # Github management file | ||
# Print debug log to console | ||
print("Subjects Directories: ") | ||
print(subject_dirs) | ||
# Iterate through each subject file | ||
for subject_dir in subject_dirs: | ||
file_found = False | ||
subject_path = os.path.join(directory_path, subject_dir) | ||
for file in os.listdir(subject_path): | ||
if "ProgressTracker_MANUAL" in file: | ||
print(file) | ||
break | ||
|
||
|
||
if __name__ == "__main__": | ||
main(sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
..\env\Scripts\python CongregateProgressTrackers.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
set fileName=Logs\HomeTest.log | ||
python RetrofittingParser.py %fileName% | ||
python RetrofittingPlotter.py %fileName% | ||
set subject=33 | ||
set logName=01-26-2023_16-30-41_AUTO | ||
set fileName=Subjects\%subject%\%logName% | ||
env\Scripts\python RetrofittingParser.py %fileName% | ||
::env\Scripts\python RetrofittingPlotter.py %fileName% | ||
|