Skip to content

Instantly share code, notes, and snippets.

@koji
Created August 24, 2023 04:58
Show Gist options
  • Save koji/b76fc5fe5abc591ef4ca34035265875e to your computer and use it in GitHub Desktop.
Save koji/b76fc5fe5abc591ef4ca34035265875e to your computer and use it in GitHub Desktop.
#!/bin/bash

folder_path="./protocols"
output_file="./simulate_output.txt"

for file_path in $folder_path/*.py; do
  echo "run $file_path" >> "$output_file"
  output=$(opentrons_simulate "$file_path")
  echo "$output" >> "$output_file"
  echo >> "$output_file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment