Skip to content

Commit

Permalink
[FIX] misc codespell errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Levitas committed Jun 3, 2024
1 parent dc65e8d commit 788521f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
.vscode/*
api/*.js
api/*.js.map
handler/convert.js
handler/convert.js
ui/test/events/*.js
api/*.ts
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
node_modules
ui/node_modules
ui/src/components/modalityForm.vue
handler/convert.js
handler/convert.js
ui/test/events/*.js
api/*.ts
2 changes: 1 addition & 1 deletion api/ezbids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ app.use(bodyParser.json({

app.use('/', require('./controllers'));
app.use('/api/docs', swaggerUi.serve, swaggerUi.setup(swaggerSpec));
//error handlin
//error handling
//app.use(expressWinston.errorLogger(config.logger.winston));
app.use(function (err, req, res, next) {
if (typeof err == "string") err = { message: err };
Expand Down
6 changes: 3 additions & 3 deletions handler/ezBIDS_core/ezBIDS_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ def determine_unique_series(dataset_list, bids_compliant):
Since EchoTime and RepetitionTime are float values, add slight measurement error
tolerance for these metadata. See https://github.com/rordenlab/dcm2niix/issues/543
If retro-reconstruction (RR) acquistions are found
If retro-reconstruction (RR) acquisitions are found
("_RR" in SeriesDescription), they should be of same unique
series as non retro-reconstruction ones. These are generally rare
cases, but should be accounted for.
Expand Down Expand Up @@ -2988,7 +2988,7 @@ def modify_objects_info(dataset_list):

def extract_series_info(dataset_list_unique_series):
"""
Extracts a subset of the acquistion information, which will be displayed on
Extracts a subset of the acquisition information, which will be displayed on
the Series-level page of the ezBIDS UI.
Parameters
Expand Down Expand Up @@ -3165,7 +3165,7 @@ def check_dwi_b0maps(dataset_list_unique_series):
# If BIDS-compliant dataset uploaded, set and apply IntendedFor mapping
dataset_list_unique_series = set_IntendedFor_B0FieldIdentifier_B0FieldSource(dataset_list_unique_series, bids_compliant)

# Port series level information to all other acquistions (i.e. objects level) with same series info
# Port series level information to all other acquisitions (i.e. objects level) with same series info
dataset_list = update_dataset_list(dataset_list, dataset_list_unique_series)

# Apply a few other changes to the objects level
Expand Down
2 changes: 1 addition & 1 deletion ui/src/libUnsafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export function fmapQA($root: IEzbids) {
if (fmapMagPhasediffObjs.length == 1) {
fmapMagPhasediffObjs.forEach((o: IObject) => {
o.analysisResults.warnings.push(
"There doesn't appear to be a full field map pair (magnitude1, phasediff) or triplet (magnitude1, magnitude2, phasediff). It is highly recommended that this acquistion be excluded from BIDS conversion, as it doesn't form a complete pair/triplet."
"There doesn't appear to be a full field map pair (magnitude1, phasediff) or triplet (magnitude1, magnitude2, phasediff). It is highly recommended that this acquisition be excluded from BIDS conversion, as it doesn't form a complete pair/triplet."
);
});
}
Expand Down
2 changes: 1 addition & 1 deletion ui/test/events/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function fmapQA($root) {
let fmapMagFieldmapBadObjs = fmapMagFieldmapObjs.slice(0,-2)
fmapMagFieldmapBadObjs.forEach(obj=> {
obj.exclude = true
obj.analysisResults.errors = ['Multiple image sets of magnitude & fieldmap field map acquistions found in section. Only selecting most recent pair. Other(s) will not be included in BIDS output']
obj.analysisResults.errors = ['Multiple image sets of magnitude & fieldmap field map acquisitions found in section. Only selecting most recent pair. Other(s) will not be included in BIDS output']
});
}

Expand Down

0 comments on commit 788521f

Please sign in to comment.