From a3cf150daa62a58444f59b12a70230b5c31b19eb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 16:16:48 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/electron/frontend/core/components/pages/Page.js | 3 --- .../core/components/pages/guided-mode/setup/Preform.js | 8 +++----- src/pyflask/manageNeuroconv/manage_neuroconv.py | 3 +-- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/electron/frontend/core/components/pages/Page.js b/src/electron/frontend/core/components/pages/Page.js index d5949811d..899087637 100644 --- a/src/electron/frontend/core/components/pages/Page.js +++ b/src/electron/frontend/core/components/pages/Page.js @@ -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] = {}); @@ -255,9 +254,7 @@ export class Page extends LitElement { const subRef = conversionOutput[subject] ?? (conversionOutput[subject] = {}); subRef[session] = info; }); - } - } finally { await closeProgressPopup(); } diff --git a/src/electron/frontend/core/components/pages/guided-mode/setup/Preform.js b/src/electron/frontend/core/components/pages/guided-mode/setup/Preform.js index 2bc65e9cf..20432fad8 100644 --- a/src/electron/frontend/core/components/pages/guided-mode/setup/Preform.js +++ b/src/electron/frontend/core/components/pages/guided-mode/setup/Preform.js @@ -10,7 +10,6 @@ import timezoneSchema from "../../../../../../../schemas/timezone.schema"; // ------------------------------------------------------------------------------ const questions = { - timezone: { ...timezoneSchema, title: "What timezone is your data in?", @@ -83,7 +82,7 @@ const questions = { title: "Will you customize low-level data storage options?", description: "Dataset chunking, compression, etc.
This also allows you to change file formats per-session", - default: false + default: false, }, upload_to_dandi: { @@ -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", @@ -152,7 +150,7 @@ const getSchema = (questions) => { schema: structuredClone(projectWorkflowSchema), defaults, dependents, - ignore + ignore, }; }; diff --git a/src/pyflask/manageNeuroconv/manage_neuroconv.py b/src/pyflask/manageNeuroconv/manage_neuroconv.py index 537c0f2dc..ed8c2524a 100644 --- a/src/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/src/pyflask/manageNeuroconv/manage_neuroconv.py @@ -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,