Skip to content

Commit

Permalink
add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
calgray committed Mar 11, 2022
1 parent a74a2be commit e451f8e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 84 deletions.
3 changes: 0 additions & 3 deletions daliuge-translator/dlg/dropmake/lg.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@
if __name__ == "__main__":
__package__ = "dlg.dropmake"

from collections import defaultdict
import collections
import datetime
import json
import logging
import math
import os
import random
import string
import time
import io
from itertools import product

import numpy as np
Expand Down
29 changes: 0 additions & 29 deletions daliuge-translator/dlg/dropmake/pg_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,10 @@
if __name__ == "__main__":
__package__ = "dlg.dropmake"

from collections import defaultdict
import collections
import datetime
import json
import logging
import math
import os
import random
import string
import time
from itertools import product
from typing import ValuesView

import networkx as nx
import numpy as np

from .scheduler import MySarkarScheduler, DAGUtil, MinNumPartsScheduler, PSOScheduler
from .utils.bash_parameter import BashCommand
from ..common import dropdict
from ..common import Categories, DropType
from ..common import STORAGE_TYPES, APP_DROP_TYPES
from .dm_utils import (
LG_APPREF,
getNodesKeyDict,
get_lg_ver_type,
convert_construct,
convert_fields,
convert_mkn,
getAppRefInputs,
LG_VER_EAGLE,
LG_VER_OLD,
LG_VER_EAGLE_CONVERTED,
)

logger = logging.getLogger(__name__)

Expand Down
28 changes: 3 additions & 25 deletions daliuge-translator/dlg/dropmake/pgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,17 @@
if __name__ == "__main__":
__package__ = "dlg.dropmake"

from collections import defaultdict
import collections
import datetime

import json
import logging
import math
import os
import random
import string
import time
import io
from itertools import product

import numpy as np

from dlg.dropmake.lg import GraphException
from dlg.dropmake.scheduler import DAGUtil
from dlg.dropmake.utils.bash_parameter import BashCommand
from dlg.common import dropdict
from dlg.common import Categories, DropType
from dlg.common import STORAGE_TYPES, APP_DROP_TYPES
from dlg.dropmake.dm_utils import (
LG_APPREF,
getNodesKeyDict,
get_lg_ver_type,
convert_construct,
convert_fields,
convert_mkn,
getAppRefInputs,
LG_VER_EAGLE,
LG_VER_OLD,
LG_VER_EAGLE_CONVERTED,
)

logger = logging.getLogger(__name__)


class GPGTNoNeedMergeException(GraphException):
Expand Down
26 changes: 1 addition & 25 deletions daliuge-translator/dlg/dropmake/pgtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,14 @@
#

from collections import defaultdict
import collections
import datetime
import json
import logging
import math
import os
import random
import string
import time
import io
from itertools import product

import networkx as nx
import numpy as np

from dlg.dropmake.pgt import PGT, GraphException
from dlg.dropmake.scheduler import MySarkarScheduler, DAGUtil, MinNumPartsScheduler, PSOScheduler
from dlg.dropmake.utils.bash_parameter import BashCommand
from dlg.common import Categories, DropType
from dlg.common import STORAGE_TYPES, APP_DROP_TYPES
from dlg.dropmake.dm_utils import (
LG_APPREF,
getNodesKeyDict,
get_lg_ver_type,
convert_construct,
convert_fields,
convert_mkn,
getAppRefInputs,
LG_VER_EAGLE,
LG_VER_OLD,
LG_VER_EAGLE_CONVERTED,
)
from dlg.common import DropType

logger = logging.getLogger(__name__)

Expand Down
2 changes: 0 additions & 2 deletions daliuge-translator/test/dropmake/test_pg_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
from dlg.dropmake.lg import LG
from dlg.dropmake.pgt import PGT, GPGTNoNeedMergeException
from dlg.dropmake.pgtp import MetisPGTP, MySarkarPGTP, MinNumPartsPGTP
from dlg.dropmake import pg_generator
from dlg.translator.tool_commands import unroll

"""
python -m unittest test.dropmake.test_pg_gen
Expand Down

0 comments on commit e451f8e

Please sign in to comment.