Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 11, 2023
1 parent d884544 commit 4de0d07
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion mease_elabftw/nwb.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def get_raw_nwb_metadata(experiment_id):
elif category == "mouse":
f = json.loads(item.get("metadata", "{}")).get("extra_fields")
for key, value in f.items():

metadata["Subject"][key.split(".")[1]] = value["value"]
elif category == "silicon probe":
metadata["Other"]["SiliconProbe"] = dict()
Expand Down
3 changes: 0 additions & 3 deletions mease_elabftw/tests/test_nwb.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


def test_get_nwb_metadata():

logger = logging.getLogger("mease-elabftw")
logger.error("first function")
data = mease_elabftw.nwb.get_nwb_metadata(test_ids.valid_experiment)
Expand Down Expand Up @@ -62,7 +61,6 @@ def test_get_nwb_metadata():


def test_create_pynwb():

nwb_metadata = mease_elabftw.nwb.get_nwb_metadata(test_ids.valid_experiment)

# Get pynwb from nwb_metadata
Expand Down Expand Up @@ -97,7 +95,6 @@ def test_create_pynwb():


def test_validate_pynwb_data():

mease_elabftw.activate_logger(True)
mease_elabftw.set_log_level(logging.INFO)
logger = logging.getLogger("mease-elabftw")
Expand Down
1 change: 0 additions & 1 deletion mease_elabftw/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


def test_convert_weight():

assert convert_weight(2) == 0.002
assert convert_weight(2.23) == 0.00223
assert convert_weight("2") == 0.002
Expand Down
2 changes: 0 additions & 2 deletions mease_elabftw/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def get_manager():
"""
token = os.environ.get("ELABFTW_TOKEN")
if token is None:

message = "The ELABFTW_TOKEN environment variable needs to be set to your eLabFTW access token."
logger.error(message)

Expand Down Expand Up @@ -122,7 +121,6 @@ def convert_weight(weight_str):

# Check if letters are present in string:
if weight_str.islower():

# weight_str, unit_str, second_unit = re.split(r"([a-z])", weight_str, 1, flags=re.I)

match = re.compile("[^\W\d]").search(weight_str)
Expand Down

0 comments on commit 4de0d07

Please sign in to comment.