mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-10 00:34:29 +00:00
lint
This commit is contained in:
parent
9bd36340d7
commit
1715043c01
1 changed files with 4 additions and 2 deletions
|
@ -2,10 +2,10 @@
|
||||||
Loading/saving NWB Schema yaml files
|
Loading/saving NWB Schema yaml files
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import warnings
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
import warnings
|
|
||||||
|
|
||||||
from linkml_runtime.loaders import yaml_loader
|
from linkml_runtime.loaders import yaml_loader
|
||||||
|
|
||||||
|
@ -155,7 +155,9 @@ def _resolve_hdmf(
|
||||||
maybe_repo_root = path / NWB_CORE_REPO.imports["hdmf-common"]
|
maybe_repo_root = path / NWB_CORE_REPO.imports["hdmf-common"]
|
||||||
if maybe_repo_root.exists():
|
if maybe_repo_root.exists():
|
||||||
return load_namespace_adapter(namespace=maybe_repo_root)
|
return load_namespace_adapter(namespace=maybe_repo_root)
|
||||||
warnings.warn(f"Could not locate hdmf-common from namespace {namespace} and path {path}")
|
warnings.warn(
|
||||||
|
f"Could not locate hdmf-common from namespace {namespace} and path {path}", stacklevel=1
|
||||||
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue