@@ -33,24 +33,24 @@ process_file() {
3333 fi
3434}
3535
36- # Find specific .csv.gz files recursively and loop over them
37- for pattern in " color_temp.csv.gz" " brightness.csv.gz" " hs.csv.gz" " effects.csv.gz" ; do
38- find " $SEARCH_DIR " -type f -name " $pattern " | while IFS= read -r file; do
39- echo " Processing $file "
40- relative_path=$( echo " $file " | sed " s|$SEARCH_DIR /||" | sed ' s/.csv.gz$//' )
41- output=" $SEARCH_DIR /$relative_path .png"
42-
43- process_file " $file " " $output "
44- done
45- done
36+ # # Find specific .csv.gz files recursively and loop over them
37+ # for pattern in "color_temp.csv.gz" "brightness.csv.gz" "hs.csv.gz" "effects.csv.gz"; do
38+ # find "$SEARCH_DIR" -type f -name "$pattern" | while IFS= read -r file; do
39+ # echo "Processing $file"
40+ # relative_path=$(echo "$file" | sed "s|$SEARCH_DIR/||" | sed 's/.csv.gz$//')
41+ # output="$SEARCH_DIR/$relative_path.png"
42+ #
43+ # process_file "$file" "$output"
44+ # done
45+ # done
4646
4747# Find all model.json files recursively and check if they have linear_config -> calibrate
4848find " $SEARCH_DIR " -type f -name " model.json" | while IFS= read -r file; do
4949 relative_path=$( echo " $file " | sed " s|$SEARCH_DIR /||" )
5050 dir_depth=$( echo " $relative_path " | tr -cd ' /' | wc -c)
5151
5252 # Skip sub profiles (3 or more directories deep)
53- if [ " $dir_depth " -eq 1 ] && grep -q " linear_config" " $file " && grep -q " calibrate" " $file " ; then
53+ if [ " $dir_depth " -eq 2 ] && grep -q " linear_config" " $file " && grep -q " calibrate" " $file " ; then
5454 echo " Processing model.json file: $file "
5555 relative_path=$( echo " $relative_path " | sed ' s/model.json$//' )
5656 output=" $SEARCH_DIR /${relative_path} calibration.png"
0 commit comments