-
Notifications
You must be signed in to change notification settings - Fork 262
ENH: Add parser for Siemens "ASCCONV" text format #418
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
Conversation
asCoilSelectMeas[0].aFFT_SCALE[10].lRxChannel = 11 | ||
asCoilSelectMeas[0].aFFT_SCALE[11].flFactor = 4.69845 | ||
asCoilSelectMeas[0].aFFT_SCALE[11].bValid = 1 | ||
asCoilSelectMeas[0].aFFT_SCALE[11].lRxChannel = 12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to add a test for one of these long list of lists type values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we don't parse these as lists, instead the key ends up being 'asCoilSelectMeas[0].aFFT_SCALE[6].lRxChannel'.
It would be nice to convert these to lists, but then we need to deal with some potential weirdness (like it seems some lists are using 0-based indexing and others are using 1-based indexing).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I remember now. I guess we could check whether the LHS list exists and fill with None up to the required index if not? As in:
sGroupArray.anMember[1] = 2
would create an object sGroupArray
(if it doesn't exist), create a list sGroupArray.anMember
with contents [None, None]... Would be a little bit of work though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that seems reasonable and worthwhile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had some ideas - want me to have a go for a couple of hours, or do you already know how to solve it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By all means, please take a crack at it! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you might have predicted, it took more than a couple of hours, but: moloney#3
Brendan - did you get a chance to look at my PR to your branch? |
TEST: Add BaseTestCase class to skip TestCases starting with ``_``
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
Co-Authored-By: Chris Markiewicz <[email protected]>
TEST: Drop nose for pytest
DOC: Attempt to find versioneer version when building docs
This format is included in most Siemens DICOM files as well as other MR related files. It contains many important bits of meta data.
Codecov Report
@@ Coverage Diff @@
## master #418 +/- ##
=======================================
Coverage 91.69% 91.69%
=======================================
Files 97 97
Lines 12390 12390
Branches 2187 2187
=======================================
Hits 11361 11361
Misses 688 688
Partials 341 341 Continue to review full report at Codecov.
|
I screwed up the merge here by doing the rebase before I merged Matthew's work, closing in favor of #896 |
This format is included in most Siemens DICOM files as well as
other MR related files. It contains many important bits of meta
data.