Skip to content

Commit

Permalink
Merge pull request #41 from LegrandNico/master
Browse files Browse the repository at this point in the history
Make sure all pulse oximeter traces are copied before ending
  • Loading branch information
micahgallen authored May 20, 2021
2 parents 495f76c + 19c0a2a commit 09c6e63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cardioception/HRD/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,15 @@ def run(
index=False,
)

# Save last pulse oximeter recording, if relevant
if parameters["setup"] in ["behavioral", "test"]:
parameters["oxiTask"].save(
parameters["resultPath"]
+ "/"
+ parameters["participant"]
+ "_final"
)

# Save posterios (if relevant)
print("Saving posterior distributions...")
for k in set(parameters["Modality"]):
Expand Down

0 comments on commit 09c6e63

Please sign in to comment.