Skip to content

Commit

Permalink
Use 'category' terminology instead of 'dataType' for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
james-strauss-uwa committed Oct 5, 2020
1 parent b7db197 commit dde0028
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions daliuge-translator/dlg/dropmake/cwl.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from dlg.common import Categories

# the following node categories are not supported by the CWL translator
UNSUPPORTED_DATA_TYPES = [Categories.COMPONENT, Categories.MPI, Categories.DYNLIB_APP, Categories.DYNLIB_PROC_APP, Categories.DOCKER]
UNSUPPORTED_CATEGORIES = [Categories.COMPONENT, Categories.MPI, Categories.DYNLIB_APP, Categories.DYNLIB_PROC_APP, Categories.DOCKER]

#from ..common import dropdict, get_roots
logger = logging.getLogger(__name__)
Expand All @@ -54,8 +54,8 @@ def create_workflow(drops, cwl_filename, buffer):
# if found, the graph cannot be translated into CWL
for index, node in enumerate(drops):
dataType = node.get('dt', '')
if dataType in UNSUPPORTED_DATA_TYPES:
raise Exception('Node {0} has an unsupported dataType: {1}'.format(index, dataType))
if dataType in UNSUPPORTED_CATEGORIES:
raise Exception('Node {0} has an unsupported category: {1}'.format(index, dataType))

# create list for command line tool description files
step_files = []
Expand Down

0 comments on commit dde0028

Please sign in to comment.