Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Draft: Initial buildout of lincbrain CLI/Python Client from dandi-cli #2

Merged
merged 8 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lincbrain/_version.py export-subst
Empty file removed .pypirc
Empty file.
8 changes: 4 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@

# -- Project information -----------------------------------------------------

import dandi
import lincbrain

project = "dandi"
project = "lincbrain"
copyright = "2021-2023, DANDI Team"
author = "DANDI Team"

# The full version, including alpha/beta/rc tags
version = dandi.__version__
release = dandi.__version__
version = lincbrain.__version__
release = lincbrain.__version__


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/dandiapi-as_readable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dandi.dandiapi import DandiAPIClient
from lincbrain.dandiapi import DandiAPIClient

dandiset_id = "000006" # ephys dataset from the Svoboda Lab
filepath = "sub-anm372795/sub-anm372795_ses-20170718.nwb" # 450 kB file
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/dandiapi-example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json

from dandi.dandiapi import DandiAPIClient
from lincbrain.dandiapi import DandiAPIClient

with DandiAPIClient.for_dandi_instance("dandi") as client:
for dandiset in client.get_dandisets():
Expand Down
3 changes: 3 additions & 0 deletions dandi/__init__.py → lincbrain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ def set_logger_level(lgr, level):

lgr = get_logger()
set_logger_level(lgr, os.environ.get("DANDI_LOG_LEVEL", logging.INFO))

from . import _version
__version__ = _version.get_versions()['version']
Loading
Loading