Skip to content

Commit 89a7448

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bfa8c87 commit 89a7448

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/pyflask/manageNeuroconv/manage_neuroconv.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,9 @@ def on_recording_interface(name, recording_interface):
618618
if prop_name not in existing_col_names:
619619
# Infer data_type from schema type (required by update_recording_properties_from_table_as_json)
620620
schema_type = prop_info.get("type", "str")
621-
data_type = {"number": "float64", "integer": "int64", "boolean": "bool", "array": "object"}.get(schema_type, "str")
621+
data_type = {"number": "float64", "integer": "int64", "boolean": "bool", "array": "object"}.get(
622+
schema_type, "str"
623+
)
622624
existing_electrode_columns.append(
623625
{
624626
"name": prop_name,
@@ -656,7 +658,9 @@ def on_recording_interface(name, recording_interface):
656658
for prop_name, prop_info in new_units_properties.items():
657659
if prop_name not in existing_col_names:
658660
schema_type = prop_info.get("type", "str")
659-
data_type = {"number": "float64", "integer": "int64", "boolean": "bool", "array": "object"}.get(schema_type, "str")
661+
data_type = {"number": "float64", "integer": "int64", "boolean": "bool", "array": "object"}.get(
662+
schema_type, "str"
663+
)
660664
existing_unit_columns.append(
661665
{
662666
"name": prop_name,
@@ -1382,6 +1386,7 @@ def _ensure_dandi_staging_alias():
13821386
old name as an alias pointing to the sandbox URLs.
13831387
"""
13841388
from dandi.consts import known_instances
1389+
13851390
if "dandi-staging" not in known_instances and "dandi-sandbox" in known_instances:
13861391
known_instances["dandi-staging"] = known_instances["dandi-sandbox"]
13871392

0 commit comments

Comments
 (0)