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

Fixed global dependency in sct_process_segmentation call #1481

Merged
merged 9 commits into from
Oct 10, 2017

Conversation

jcohenadad
Copy link
Member

@jcohenadad jcohenadad commented Oct 9, 2017

Description of the Change

Global variable param was used in the main of sct_process_segmentation, which created bugs when this function was called as a module (instead of using sct.run() as we used to do).

batch_processing

commit a8bba5d

t2/CSA:   77.336978, 1.698544
mt/MTR:   51, white matter, 2892.441798, 22.034541, 0.000000
mt/CSA_GM:   18.110695, 1.625550
mt/CSA_WM:   60.135621, 2.475157
dmri/FA:  4, WM left lateral corticospinal tract, 74.152501, 0.690077, 0.160541
dmri/FA:  5, WM right lateral corticospinal tract, 75.195775, 0.737638, 0.144027

v3.0.8:

t2/CSA:   77.336978, 1.698544
mt/MTR:   51, white matter, 2909.539055, 21.950534, 0.000000
mt/CSA_GM:   18.656204, 1.643710
mt/CSA_WM:   60.487054, 2.473967
dmri/FA:  4, WM left lateral corticospinal tract, 71.801325, 0.690682, 0.155388
dmri/FA:  5, WM right lateral corticospinal tract, 72.923914, 0.742214, 0.126451

Applicable Issues

Fixes #1479

@jcohenadad jcohenadad added bug category: fixes an error in the code sct_segment_graymatter context: labels Oct 9, 2017
@jcohenadad jcohenadad added this to the Release v3.0.9 milestone Oct 9, 2017
@jcohenadad jcohenadad self-assigned this Oct 9, 2017
@jcohenadad jcohenadad merged commit 69b28b0 into master Oct 10, 2017
@jcohenadad jcohenadad deleted the jca_issue1479 branch October 10, 2017 12:13
jcohenadad added a commit that referenced this pull request Oct 27, 2017
* master: (43 commits)
  BUG: put back default value for labels (made batch_processing crash)
  BUG: replaced run(mkdir) with python’s makedirs
  raise in sct.run in bad order. Also added specific sct errors (#1503)
  Major refactoring of testing framework (#1453)
  More improvements to the viewer (#1496)
  DEV: add a line in the output excel that compute the percentage of a given tract occupied by lesionS: vol_lesionS_in_PAM50_04 / vol_PAM50_04_tot
  BUG: fix errors in create_atlas.m (#1499)
  Used the absolute path to create the temporary label file in propseg (#1487)
  Option to install SCT in development mode (#1491)
  Refactored WM atlas creation pipeline and improved documentation  (#1492)
  Updated bibliographic URL on ReadMe (#1489)
  Fix a regression bug.
  Added key bindings to the undo, save and help actions. (#1480)
  OPT: propseg: fixed issue 1484 (#1485)
  Fixed global dependency in sct_process_segmentation call (#1481)
  Introduced the zoom functionality to the anatomical canvas (#1477)
  Poq issue 1409 log (#1411)
  The minimal QT dialog  (#1379)
  Update README.md
  download_data: forgot to add pmj_models in the -d flag
  ...
jcohenadad added a commit that referenced this pull request Oct 27, 2017
* jca-release: (44 commits)
  updated CHANGES for 3.1
  BUG: put back default value for labels (made batch_processing crash)
  BUG: replaced run(mkdir) with python’s makedirs
  raise in sct.run in bad order. Also added specific sct errors (#1503)
  Major refactoring of testing framework (#1453)
  More improvements to the viewer (#1496)
  DEV: add a line in the output excel that compute the percentage of a given tract occupied by lesionS: vol_lesionS_in_PAM50_04 / vol_PAM50_04_tot
  BUG: fix errors in create_atlas.m (#1499)
  Used the absolute path to create the temporary label file in propseg (#1487)
  Option to install SCT in development mode (#1491)
  Refactored WM atlas creation pipeline and improved documentation  (#1492)
  Updated bibliographic URL on ReadMe (#1489)
  Fix a regression bug.
  Added key bindings to the undo, save and help actions. (#1480)
  OPT: propseg: fixed issue 1484 (#1485)
  Fixed global dependency in sct_process_segmentation call (#1481)
  Introduced the zoom functionality to the anatomical canvas (#1477)
  Poq issue 1409 log (#1411)
  The minimal QT dialog  (#1379)
  Update README.md
  ...

# Conflicts:
#	dev/straightening/sct_straighten_spinalcord_LargeFOVOutput.py
jcohenadad added a commit that referenced this pull request Dec 18, 2019
* jca-release: (44 commits)
  updated CHANGES for 3.1
  BUG: put back default value for labels (made batch_processing crash)
  BUG: replaced run(mkdir) with python’s makedirs
  raise in sct.run in bad order. Also added specific sct errors (#1503)
  Major refactoring of testing framework (#1453)
  More improvements to the viewer (#1496)
  DEV: add a line in the output excel that compute the percentage of a given tract occupied by lesionS: vol_lesionS_in_PAM50_04 / vol_PAM50_04_tot
  BUG: fix errors in create_atlas.m (#1499)
  Used the absolute path to create the temporary label file in propseg (#1487)
  Option to install SCT in development mode (#1491)
  Refactored WM atlas creation pipeline and improved documentation  (#1492)
  Updated bibliographic URL on ReadMe (#1489)
  Fix a regression bug.
  Added key bindings to the undo, save and help actions. (#1480)
  OPT: propseg: fixed issue 1484 (#1485)
  Fixed global dependency in sct_process_segmentation call (#1481)
  Introduced the zoom functionality to the anatomical canvas (#1477)
  Poq issue 1409 log (#1411)
  The minimal QT dialog  (#1379)
  Update README.md
  ...

# Conflicts:
#	dev/straightening/sct_straighten_spinalcord_LargeFOVOutput.py


Former-commit-id: 45518c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: fixes an error in the code sct_segment_graymatter context:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants