Skip to content

Commit

Permalink
updated version number
Browse files Browse the repository at this point in the history
  • Loading branch information
VonAlphaBisZulu committed Dec 2, 2023
1 parent 84f3c01 commit 3d0e5fc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = '1.10' %}
{% set version = '3.11' %}

package:
name: straindesign
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
author = "Philipp Schneider"

# The full version, including alpha/beta/rc tags
release = "1.10"
release = "3.11"

# -- General configuration ---------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="straindesign",
version="1.10",
version="3.11",
url="https://github.com/klamt-lab/straindesign.git",
description="Computational strain design package for the COBRApy framework",
long_description=
Expand All @@ -23,8 +23,8 @@
classifiers=[
"Intended Audience :: Science/Research", "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Natural Language :: English",
"Operating System :: OS Independent", "Topic :: Scientific/Engineering :: Bio-Informatics"
"Programming Language :: Python :: 3.11", "Natural Language :: English", "Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Bio-Informatics"
],
keywords=["metabolism", "constraint-based", "mixed-integer", "strain design"],
zip_safe=False,
Expand Down
2 changes: 1 addition & 1 deletion straindesign/networktools.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def warning_name_too_long(id, p=""):
"solver or consider simplifying GPR rules or gene names in your model.")

def truncate(id):
return id[0:MAX_NAME_LEN-16]+hex(abs(hash(id)))[2:]
return id[0:MAX_NAME_LEN - 16] + hex(abs(hash(id)))[2:]

solver = search('(' + '|'.join(avail_solvers) + ')', model.solver.interface.__name__)[0]

Expand Down
2 changes: 1 addition & 1 deletion straindesign/strainDesignProblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def link_z(self):
_, max_Ax[i] = worker_compute(i)

# round Ms up to 5 digits
Ms = [np.ceil(M* 1e5) / 1e5 if not np.isinf(M) else self.M for M in max_Ax]
Ms = [np.ceil(M * 1e5) / 1e5 if not np.isinf(M) else self.M for M in max_Ax]
# fill up M-vector also for notknockable reactions
Ms = [
Ms[np.array([i == j
Expand Down
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@
except ImportError:
pass # SCIP is not installed


@pytest.fixture(params=solvers, scope="session")
def curr_solver(request: pytest.FixtureRequest) -> str:
"""Provide session-level fixture for parametrized solver names."""
return request.param


@pytest.fixture(params=[ANY, BEST, POPULATE], scope="session")
def comp_approach(request: pytest.FixtureRequest) -> str:
"""Provide session-level fixture for computation modes."""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_01_load_models_and_solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_solver_loading(curr_solver):
assert (milp.solve() == ([], 0.0, OPTIMAL))


def test_load_solvers(model_small_example,curr_solver):
def test_load_solvers(model_small_example, curr_solver):
"""Test solver choice."""

# solver selection with no solver specified
Expand Down

0 comments on commit 3d0e5fc

Please sign in to comment.