Skip to content

Commit 30e00d7

Browse files
Fixed broken tests
1 parent 0c7c79f commit 30e00d7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

flowpaths/abstractpathmodeldag.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from flowpaths.utils import solverwrapper as sw
44
import flowpaths.utils as utils
55
import time
6+
import copy
67
from abc import ABC, abstractmethod
78

89
class AbstractPathModelDAG(ABC):
@@ -55,7 +56,7 @@ class AbstractPathModelDAG(ABC):
5556
optimize_with_safe_sequences = False
5657
optimize_with_safe_zero_edges = True
5758
optimize_with_subpath_constraints_as_safe_sequences = True
58-
optimize_with_safety_as_subpath_constraints = True
59+
optimize_with_safety_as_subpath_constraints = False
5960

6061
def __init__(
6162
self,
@@ -160,7 +161,7 @@ def __init__(
160161
self.k = k
161162
self.edge_length_attr = edge_length_attr
162163

163-
self.subpath_constraints = subpath_constraints
164+
self.subpath_constraints = copy.deepcopy(subpath_constraints)
164165
if self.subpath_constraints is not None:
165166
self.__check_valid_subpath_constraints()
166167

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "flowpaths"
3-
version = "0.1.23"
3+
version = "0.1.24"
44
description = "A Python package to quickly decompose weighted graphs into weights paths, under various models."
55
readme = "README.md"
66
authors = [{name="Graph Algorithms and Bioinformatics Group @ University of Helsinki, and external collaborators"}]

0 commit comments

Comments
 (0)