From 09a75cb5a2573238b53e6387b2783e3577e4c78d Mon Sep 17 00:00:00 2001 From: Sidharth Hulyalkar Date: Tue, 14 Nov 2023 11:47:34 -0800 Subject: [PATCH 1/2] remove opening of new transaction for insertion into model table --- element_deeplabcut/model.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/element_deeplabcut/model.py b/element_deeplabcut/model.py index c31ac82..9b83921 100644 --- a/element_deeplabcut/model.py +++ b/element_deeplabcut/model.py @@ -451,12 +451,12 @@ def insert_new_model( return # ____ Insert into table ---- - with cls.connection.transaction: - cls.insert1(model_dict) - # Returns array, so check size for unambiguous truth value - if BodyPart.extract_new_body_parts(dlc_config, verbose=False).size > 0: - BodyPart.insert_from_config(dlc_config, prompt=prompt) - cls.BodyPart.insert((model_name, bp) for bp in dlc_config["bodyparts"]) + # with cls.connection.transaction: + cls.insert1(model_dict) + # Returns array, so check size for unambiguous truth value + if BodyPart.extract_new_body_parts(dlc_config, verbose=False).size > 0: + BodyPart.insert_from_config(dlc_config, prompt=prompt) + cls.BodyPart.insert((model_name, bp) for bp in dlc_config["bodyparts"]) @schema From b67073d4ffe1339bd3519d604de0e423a33bd7d0 Mon Sep 17 00:00:00 2001 From: Sidharth Hulyalkar Date: Mon, 20 Nov 2023 13:50:02 -0800 Subject: [PATCH 2/2] 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 9bccead..f7f5241 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.10] - 2023-11-20 + ++ Fix - Revert fixing of networkx version in setup + ## [0.2.9] - 2023-10-18 + Update - DLC project directory (named v2) of example data diff --git a/element_deeplabcut/version.py b/element_deeplabcut/version.py index dde2c05..1719e56 100644 --- a/element_deeplabcut/version.py +++ b/element_deeplabcut/version.py @@ -1,4 +1,4 @@ """ Package metadata """ -__version__ = "0.2.9" +__version__ = "0.2.10"