Skip to content

Commit

Permalink
workaround for GeomScale#96
Browse files Browse the repository at this point in the history
  • Loading branch information
hariszaf committed Apr 23, 2024
1 parent 3af7664 commit 727c0c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dingo/PolytopeSampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Licensed under GNU LGPL.3, see LICENCE file


import copy
import numpy as np
import warnings
import math
Expand Down Expand Up @@ -37,7 +38,7 @@ def __init__(self, metabol_net):
if not isinstance(metabol_net, MetabolicNetwork):
raise Exception("An unknown input object given for initialization.")

self._metabolic_network = metabol_net
self._metabolic_network = copy.deepcopy(metabol_net)
self._A = []
self._b = []
self._N = []
Expand Down Expand Up @@ -166,6 +167,7 @@ def generate_steady_states(
self._A, self._b, Tr, Tr_shift, samples = P.fast_mmcs(
ess, psrf, parallel_mmcs, num_threads
)

else:
self._A, self._b, Tr, Tr_shift, samples = P.slow_mmcs(
ess, psrf, parallel_mmcs, num_threads
Expand Down

0 comments on commit 727c0c2

Please sign in to comment.