Closed whatwilliam closed 3 years ago
@pieper
This looks reasonable. 👍 Would you be able to add a test? You can reuse existing data and just confirm that you get the expected subsets of data for the different flag combinations.
The file in the test folder test_untilTag.js
shows execution time and outputs on the data.
When ignoring the untilTag by setting the includeUntilTagValue
to false
, having vr
and values
to null
did not let the data be turned into a naturalized dataset because some operations could not be done on a null
value, so vr
and values
are returned simply as 0
when the user wants to not include the untilTag.
@pieper Will these changes work?
:tada: This PR is included in version 0.18.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
This pull request adds
untilTag
as a parameter for theread
,readTag
, andreadFile
functions so that the user can choose to ignore the rest of a DICOM file. A boolean flagincludeUntilTagValue
has also been added that returns the values of the givenuntilTag
before ignoring the rest of the DICOM file.PR has successfully run
npm test
andnpm run build
.Related PR/Issues:
134
149
181