Skip to content

Commit

Permalink
[FIX] Correct DWI warning when fmap/epi acts on single dwi/dwi
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Levitas committed Jun 20, 2024
1 parent b3ef590 commit 78fc0eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules
ui/node_modules
ui/src/components/modalityForm.vue
ui/src/libUnsafe.ts
handler/convert.js
ui/test/events/*.js
api/*.ts
3 changes: 2 additions & 1 deletion ui/src/libUnsafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ export function fmapQA($root: IEzbids) {
let fmapPepolar = section.filter((o) => o._type === 'fmap/epi');

fmapPepolar.forEach((fmap) => {
let sidecar = JSON.parse(fmap.items[0].sidecar_json);
let sidecar_idx = fmap.items.findIndex(obj => obj.path.endsWith('json'));
let sidecar = JSON.parse(fmap.items[sidecar_idx].sidecar_json);
if (!sidecar.hasOwnProperty('PhaseEncodingDirection')) {
let axis = '';
if (sidecar.hasOwnProperty('PhaseEncodingAxis')) {
Expand Down

0 comments on commit 78fc0eb

Please sign in to comment.