Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistent behavior of existing session when using -d compared to --files option: raise an AssertionError instead of just a warning #682

Merged
merged 2 commits into from
Jun 9, 2023

Conversation

neurorepro
Copy link
Contributor

@neurorepro neurorepro commented Jun 7, 2023

This is described in #683

@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.06 🎉

Comparison is base (e3c53b8) 81.94% compared to head (a7d4af1) 82.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #682      +/-   ##
==========================================
+ Coverage   81.94%   82.00%   +0.06%     
==========================================
  Files          41       41              
  Lines        4132     4130       -2     
==========================================
+ Hits         3386     3387       +1     
+ Misses        746      743       -3     
Impacted Files Coverage Δ
heudiconv/parser.py 96.87% <100.00%> (+2.99%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

if grouping != "all":
assert (study_session_info not in study_sessions), (
f"Existing study session {study_session_info} "
f"already in analyzed sessions {study_sessions.keys()}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked 1366 heudiconv.log files from conversions and found none with "Existing study session with the same values". So I think at least I should be safe ;) let's see how error treats us.

@yarikoptic yarikoptic changed the title Fix inconsistent behavior of existing session when using -d compared to --files option Fix inconsistent behavior of existing session when using -d compared to --files option: raise an AssertionError instead of just a warning Jun 9, 2023
@yarikoptic yarikoptic added the minor Increment the minor version when merged label Jun 9, 2023
@yarikoptic
Copy link
Member

change of behavior so adding minor label instead of just a patch

@yarikoptic yarikoptic merged commit 7093ed4 into nipy:master Jun 9, 2023
@github-actions
Copy link

🚀 PR was released in v1.0.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants