Skip to content

Commit 6b634de

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 44d210d commit 6b634de

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,
@@ -1389,6 +1393,7 @@ def _ensure_dandi_staging_alias():
13891393
old name as an alias pointing to the sandbox URLs.
13901394
"""
13911395
from dandi.consts import known_instances
1396+
13921397
if "dandi-staging" not in known_instances and "dandi-sandbox" in known_instances:
13931398
known_instances["dandi-staging"] = known_instances["dandi-sandbox"]
13941399

0 commit comments

Comments
 (0)