Skip to content

Commit

Permalink
ISMAR data start
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSermarini committed Feb 15, 2023
1 parent fc946e1 commit e9abfd6
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
10 changes: 10 additions & 0 deletions Data/ISMAR2023.R
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)
}
43 changes: 43 additions & 0 deletions Data/ISMAR2023/CongregateProgressTrackers.py
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:])
2 changes: 2 additions & 0 deletions Data/ISMAR2023/Update.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..\env\Scripts\python CongregateProgressTrackers.py

8 changes: 5 additions & 3 deletions Data/RunScripts.bat
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%

0 comments on commit e9abfd6

Please sign in to comment.