From a31e56f9469aabedd065acb613660495a8855a18 Mon Sep 17 00:00:00 2001 From: MilagrosMarin Date: Sun, 12 May 2024 20:40:09 +0200 Subject: [PATCH 1/3] black formatting --- element_deeplabcut/export/nwb.py | 1 + element_deeplabcut/model.py | 1 + element_deeplabcut/version.py | 1 + 3 files changed, 3 insertions(+) diff --git a/element_deeplabcut/export/nwb.py b/element_deeplabcut/export/nwb.py index 5a67610..a478589 100644 --- a/element_deeplabcut/export/nwb.py +++ b/element_deeplabcut/export/nwb.py @@ -3,6 +3,7 @@ MIT License Copyright (c) 2022 Alexander Mathis DataJoint export methods for DeepLabCut 2.x """ + import logging import warnings from pathlib import Path diff --git a/element_deeplabcut/model.py b/element_deeplabcut/model.py index 8a6e47f..571c3fe 100644 --- a/element_deeplabcut/model.py +++ b/element_deeplabcut/model.py @@ -3,6 +3,7 @@ MIT License Copyright (c) 2022 Mackenzie Mathis DataJoint Schema for DeepLabCut 2.x, Supports 2D and 3D DLC via triangulation. """ + import datajoint as dj import os import cv2 diff --git a/element_deeplabcut/version.py b/element_deeplabcut/version.py index 9d31bd6..192ec06 100644 --- a/element_deeplabcut/version.py +++ b/element_deeplabcut/version.py @@ -1,4 +1,5 @@ """ Package metadata """ + __version__ = "0.2.12" From 284abf62e2ed2c11c98ed74d434746c14447ad72 Mon Sep 17 00:00:00 2001 From: MilagrosMarin Date: Wed, 3 Jul 2024 21:18:07 +0200 Subject: [PATCH 2/3] black formatting --- element_deeplabcut/train.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/element_deeplabcut/train.py b/element_deeplabcut/train.py index 87e88ad..1c78045 100644 --- a/element_deeplabcut/train.py +++ b/element_deeplabcut/train.py @@ -344,7 +344,9 @@ def make(self, key): modified_time = snapshot.stat().st_mtime if modified_time > max_modified_time: latest_snapshot_file = snapshot - latest_snapshot = int(re.search(r"(\d+)\.index", latest_snapshot_file.name).group(1)) + latest_snapshot = int( + re.search(r"(\d+)\.index", latest_snapshot_file.name).group(1) + ) max_modified_time = modified_time # update snapshotindex in the config From 2304d09e445a45aad7642b9cbf7b3d55abe3c501 Mon Sep 17 00:00:00 2001 From: MilagrosMarin Date: Wed, 3 Jul 2024 21:23:32 +0200 Subject: [PATCH 3/3] update version and changelog --- CHANGELOG.md | 4 ++++ element_deeplabcut/version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5efaef4..7ed5a0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention. +## [0.2.13] - 2024-07-03 + ++ Fix - apply formatting with `black` across the repository + ## [0.2.12] - 2024-03-22 + Add - pytest diff --git a/element_deeplabcut/version.py b/element_deeplabcut/version.py index 192ec06..3a6bf5e 100644 --- a/element_deeplabcut/version.py +++ b/element_deeplabcut/version.py @@ -2,4 +2,4 @@ Package metadata """ -__version__ = "0.2.12" +__version__ = "0.2.13"