Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 5, 2024
1 parent a9b7f37 commit a3cf150
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 0 additions & 3 deletions src/electron/frontend/core/components/pages/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ export class Page extends LitElement {
timezone: this.workflow.timezone.value,
};


if (hasCustomFunction) {
const result = await backendFunctionToRun(payload, swalOpts); // Already handling Swal popup
const subRef = conversionOutput[subject] ?? (conversionOutput[subject] = {});
Expand Down Expand Up @@ -255,9 +254,7 @@ export class Page extends LitElement {
const subRef = conversionOutput[subject] ?? (conversionOutput[subject] = {});
subRef[session] = info;
});

}

} finally {
await closeProgressPopup();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import timezoneSchema from "../../../../../../../schemas/timezone.schema";
// ------------------------------------------------------------------------------

const questions = {

timezone: {
...timezoneSchema,
title: "What timezone is your data in?",
Expand Down Expand Up @@ -83,7 +82,7 @@ const questions = {
title: "Will you customize low-level data storage options?",
description:
"<span>Dataset chunking, compression, etc.</span><br><small>This also allows you to change file formats per-session</small>",
default: false
default: false,
},

upload_to_dandi: {
Expand Down Expand Up @@ -130,12 +129,11 @@ const getSchema = (questions) => {
if (info.required) acc.push(name);
return acc;
}, []);

const ignore = Object.entries(questions).reduce((acc, [name, info]) => {
if (info.ignore) acc[name] = true;
return acc;
}, {});


const projectWorkflowSchema = {
type: "object",
Expand All @@ -152,7 +150,7 @@ const getSchema = (questions) => {
schema: structuredClone(projectWorkflowSchema),
defaults,
dependents,
ignore
ignore,
};
};

Expand Down
3 changes: 1 addition & 2 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,8 +1162,7 @@ def get_conversion_info(info: dict) -> dict:
if "date_of_birth" in resolved_metadata["Subject"]:
resolved_metadata["Subject"]["date_of_birth"] = datetime.fromisoformat(
resolved_metadata["Subject"]["date_of_birth"]
).replace(tzinfo=zoneinfo.ZoneInfo(info["timezone"]))

).replace(tzinfo=zoneinfo.ZoneInfo(info["timezone"]))

return (
converter,
Expand Down

0 comments on commit a3cf150

Please sign in to comment.