Skip to content

Commit 2595dae

Browse files
committed
Avoid linking_module issues. See details.
- add __init__ + schema from git/ttngu207/element_array_ephys@no-curation - add ephys_no_curation schema to match the schema ben has been pulling from - how should we address this in the element? given not currently default - remove unused imports - import datajoint and element_interface.utils find_full_path - add arguments to main export function: - schema names as datajoint config database prefix default - ephys_root_data_dir - default to dj.config or none - add create_virtual_module statements to avoid activate(schema,linking_module=unknown) - declare ephys and probe as global - add assert errors for ephys_root_data_dir!=None when needed - pass ephys_root_data_dir to relevant functions - above permits: from element_array_ephys.export.nwb.nwb import ecephys_session_to_nwb
1 parent a557b17 commit 2595dae

File tree

4 files changed

+1103
-51
lines changed

4 files changed

+1103
-51
lines changed

element_array_ephys/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import datajoint as dj
2+
import logging
3+
import os
4+
5+
6+
dj.config['enable_python_native_blobs'] = True
7+
8+
9+
def get_logger(name):
10+
log = logging.getLogger(name)
11+
log.setLevel(os.getenv('LOGLEVEL', 'INFO'))
12+
return log

0 commit comments

Comments
 (0)