Skip to content

Commit

Permalink
chore: simplify, remove get_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ttngu207 committed Apr 3, 2024
1 parent c7910fa commit 9c836cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
18 changes: 0 additions & 18 deletions element_array_ephys/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1 @@
import os
import datajoint as dj

if "custom" not in dj.config:
dj.config["custom"] = {}

# overwrite dj.config['custom'] values with environment variables if available

dj.config["custom"]["database.prefix"] = os.getenv(
"DATABASE_PREFIX", dj.config["custom"].get("database.prefix", "")
)

dj.config["custom"]["ephys_root_data_dir"] = os.getenv(
"EPHYS_ROOT_DATA_DIR", dj.config["custom"].get("ephys_root_data_dir", "")
)

db_prefix = dj.config["custom"].get("database.prefix", "")

from . import ephys_organoids as ephys
3 changes: 1 addition & 2 deletions element_array_ephys/spike_sorting/ecephys_spike_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"""

import datajoint as dj
from element_array_ephys import get_logger
from decimal import Decimal
import json
from datetime import datetime, timedelta
Expand All @@ -32,7 +31,7 @@
kilosort_triggering,
)

log = get_logger(__name__)
logger = dj.logger

schema = dj.schema()

Expand Down
4 changes: 2 additions & 2 deletions element_array_ephys/spike_sorting/si_spike_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
from element_interface.utils import find_full_path
from spikeinterface import exporters, postprocessing, qualitymetrics, sorters

from .. import get_logger, probe, readers
from .. import probe, readers
from . import si_preprocessing

log = get_logger(__name__)
logger = dj.logger

schema = dj.schema()

Expand Down

0 comments on commit 9c836cf

Please sign in to comment.