Skip to content

Commit

Permalink
adding more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
drbergman committed Sep 5, 2024
1 parent 28b491b commit b8e3971
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ jobs:
- name: Pip install requests
if: matrix.os == 'macOS-latest'
run: |
python -m pip install --upgrade pip
pip install requests
python3 -m pip install --upgrade pip
pip3 install requests
- name: Download PhysiCell
run: |
python ./tests/get_my_physicell.py
python3 ./tests/get_my_physicell.py
unzip -q PhysiCell-my-physicell.zip -d ./tests
echo "PhysiCell downloaded, unzipped, and moved to ./tests/PhysiCell"
- name: Set up test project
Expand Down
6 changes: 3 additions & 3 deletions tests/get_my_physicell.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

branch = "my-physicell"

response = requests.get(f"https://api.github.com/repos/drbergman/PhysiCell/branches/{branch}")
print(response)
release_name_str = response.json()["name"]
# response = requests.get(f"https://api.github.com/repos/drbergman/PhysiCell/branches/{branch}")
# print(response)
# release_name_str = response.json()["name"]

remote_url = f"https://github.com/drbergman/PhysiCell/archive/refs/heads/{branch}.zip"
print("remote_url=",remote_url)
Expand Down
23 changes: 22 additions & 1 deletion tests/test-project/VCT/RunSampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,28 @@ config_variation_id = config_variation_ids[1]
rulesets_variation_id = rulesets_variation_ids[1]
simulation = Simulation(config_folder, rulesets_collection_folder, ic_cell_folder, ic_substrate_folder, ic_ecm_folder, custom_code_folder, config_variation_id, rulesets_variation_id)

runAbstractTrial(simulation)
n_ran, n_success = runAbstractTrial(simulation)
if n_success == 0
println("Simulation failed...")
# print out the compilation error file if exists
if isfile("$(data_dir)/inputs/custom_codes/$(custom_code_folder)/output.err")
println(read("$(data_dir)/inputs/custom_codes/$(custom_code_folder)/output.err", String))
else
println("No compilation error file found.")
end
# print out the output error file if exists
if isfile("$(data_dir)/outputs/simulations/$(simulation.id)/output.err")
println(read("$(data_dir)/outputs/simulations/$(simulation.id)/output.err", String))
else
println("No output error file found.")
end
# print out the output log file if exists
if isfile("$(data_dir)/outputs/simulations/$(simulation.id)/output.log")
println(read("$(data_dir)/outputs/simulations/$(simulation.id)/output.log", String))
else
println("No output log file found.")
end
end

println("""
############################################
Expand Down

0 comments on commit b8e3971

Please sign in to comment.