Skip to content

Commit

Permalink
Cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sthiele committed Apr 28, 2022
1 parent f8b4980 commit 9e1a193
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
1 change: 0 additions & 1 deletion meneco/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
#
# You should have received a copy of the GNU General Public License
# along with meneco. If not, see <http://www.gnu.org/licenses/>.
# -*- coding: utf-8 -*-

from meneco.meneco import run_meneco
3 changes: 2 additions & 1 deletion meneco/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from meneco.meneco import cmd_meneco
import logging
import sys

from meneco.meneco import cmd_meneco

logging.basicConfig(format="%(message)s", level=logging.DEBUG)
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
Expand Down
18 changes: 8 additions & 10 deletions meneco/meneco.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
#
# You should have received a copy of the GNU General Public License
# along with meneco. If not, see <http://www.gnu.org/licenses/>.
# -*- coding: utf-8 -*-
from clyngor.as_pyasp import TermSet, Atom

import argparse
import sys
import json
import logging
from meneco import utils, sbml, query
import sys

from clyngor.as_pyasp import Atom, TermSet

from meneco import query, sbml, utils

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -278,9 +280,7 @@ def run_meneco(
intersection_sol_lst
)
if not json_output:
print(
f"Intersection of cardinality minimal completions"
)
print("Intersection of cardinality minimal completions")
if len(intersection_sol_lst) > 0 :
print(" {0}\n".format("\n ".join(intersection_sol_lst)))
else: print(" is empty")
Expand All @@ -297,9 +297,7 @@ def run_meneco(

result["Union of cardinality minimal completions"] = union_sol_lst
if not json_output:
print(
f"Union of cardinality minimal completions"
)
print("Union of cardinality minimal completions")
if len(union_sol_lst) > 0 :
print(" {0}\n".format("\n ".join(union_sol_lst)))
else: print(" is empty")
Expand Down
8 changes: 4 additions & 4 deletions meneco/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
#
# You should have received a copy of the GNU General Public License
# along with meneco. If not, see <http://www.gnu.org/licenses/>.
# -*- coding: utf-8 -*-

import os

import clyngor
from clyngor import as_pyasp
from clyngor.as_pyasp import TermSet, Atom
from meneco import utils
from clyngor.as_pyasp import Atom, TermSet

from meneco import utils

root = __file__.rsplit("/", 1)[0]
unproducible_prg = root + "/encodings/unproducible_targets.lp"
Expand Down
6 changes: 3 additions & 3 deletions meneco/sbml.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with meneco. If not, see <http://www.gnu.org/licenses/>.

# -*- coding: utf-8 -*-
from clyngor.as_pyasp import TermSet, Atom
import xml.etree.cElementTree as etree
import logging
import xml.etree.cElementTree as etree

from clyngor.as_pyasp import Atom, TermSet

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion meneco/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with meneco. If not, see <http://www.gnu.org/licenses/>.
# -*- coding: utf-8 -*-

import os
import tempfile

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with meneco. If not, see <http://www.gnu.org/licenses/>.
# -*- coding: utf-8 -*-

from setuptools import setup

setup(
Expand Down

0 comments on commit 9e1a193

Please sign in to comment.