Skip to content

BF: ExperimentHandler not saving extraInfo to wide text#7374

Merged
TEParsons merged 1 commit intopsychopy:devfrom
davidmwatson:dev
Dec 10, 2025
Merged

BF: ExperimentHandler not saving extraInfo to wide text#7374
TEParsons merged 1 commit intopsychopy:devfrom
davidmwatson:dev

Conversation

@davidmwatson
Copy link
Copy Markdown
Contributor

I recently updated my PsychoPy, and noticed the ExperimentHandler was no longer saving the fields in the extraInfo dictionary to the wide text/csv file. I think this is due to a recent change where the extraInfo gets stored as PsychoPy's new IndexDict object. This was causing checks for the type of the extraInfo object to fail, as it isn't a normal Python dictionary any more. Seeing as IndexDict inherits from dict, just changing the checks to use isinstance rather than type == dict seems to fix the problem.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 12.18%. Comparing base (46b1aa6) to head (d15e38f).
⚠️ Report is 360 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #7374      +/-   ##
==========================================
- Coverage   12.18%   12.18%   -0.01%     
==========================================
  Files         353      353              
  Lines       64940    64940              
==========================================
- Hits         7912     7911       -1     
- Misses      57028    57029       +1     
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@TEParsons
Copy link
Copy Markdown
Contributor

Seems a good solution, thanks for catching this!

@TEParsons TEParsons merged commit acd1356 into psychopy:dev Dec 10, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants