Skip to content

Commit

Permalink
Fix b-value rounding to integer (#251)
Browse files Browse the repository at this point in the history
* Fix max shell int rounding

* Update documentation
  • Loading branch information
TheJaeger authored Mar 16, 2021
1 parent c205880 commit ea7a3c4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ Changelog
All notable changes to this project will be documented in this file or
page

`v1.0-RC9`_
-----------

Mar 16, 2021

**Added**:

* None

**Changed**

* B-values are first rounded to a float insted of integer directly to
prevent errors in preprocessing

**Removed**

* None

`v1.0-RC8`_
-----------

Expand Down Expand Up @@ -124,6 +142,7 @@ Sep 22, 2020
Sep 21, 2020

**Added**:

* FBI fODF map for FBI tractography. Users may use MRTrix3
to further process this file.
* Variable maximum spherical harmonic degree to improve
Expand Down Expand Up @@ -312,6 +331,7 @@ Initial port of MATLAB code to Python. 200,000,000,000 BCE

.. Links
.. _v1.0-RC9: https://github.com/m-ama/PyDesigner/releases/tag/v1.0-RC9
.. _v1.0-RC8: https://github.com/m-ama/PyDesigner/releases/tag/v1.0-RC8
.. _v1.0-RC7: https://github.com/m-ama/PyDesigner/releases/tag/v1.0-RC7
.. _v1.0-RC6: https://github.com/m-ama/PyDesigner/releases/tag/v1.0-RC6
Expand Down
2 changes: 1 addition & 1 deletion designer/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
)
)
__packagename__ = 'PyDesigner'
__version__='v1.0-RC8'
__version__='v1.0-RC9'
__author__ = 'PyDesigner developers'
__copyright__ = 'Copyright 2020, PyDesigner developers, MUSC Advanced Image Analysis (MAMA)'
__credits__ = [
Expand Down
3 changes: 1 addition & 2 deletions designer/preprocessing/mrinfoutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,7 @@ def max_shell(path):
console = [s.split(' ') for s in console]
console = [item for sublist in console for item in sublist]
console = list(filter(None, console))
console = [round(int(s)) for s in console]
print(console)
console = [int(round(float(s))) for s in console]
return max(console)

def is_fullsphere(path):
Expand Down

0 comments on commit ea7a3c4

Please sign in to comment.