Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feature/export-cwl
Browse files Browse the repository at this point in the history
  • Loading branch information
james-strauss-uwa committed Jul 22, 2020
2 parents fdf2323 + 5ef03ed commit 33dbc50
Show file tree
Hide file tree
Showing 61 changed files with 14,139 additions and 6,609 deletions.
341 changes: 193 additions & 148 deletions OpenAPI/tests/test.graph

Large diffs are not rendered by default.

42 changes: 40 additions & 2 deletions daliuge-common/dlg/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,45 @@
from .network import check_port, connect_to, portIsClosed, portIsOpen, write_to
from .streams import ZlibCompressedStream, JSONStream

STORAGE_TYPES = {'memory', 'file', 'ngas', 'null', 'json'}
class Categories:
START = 'Start'
END = 'End'

MEMORY = 'Memory'
FILE = 'File'
NGAS = 'NGAS'
NULL = 'null'
JSON = 'json'
S3 = 'S3'

MKN = 'MKN'
SCATTER = 'Scatter'
GATHER = 'Gather'
GROUP_BY = 'GroupBy'
LOOP = 'Loop'
BRANCH = 'Branch'
VARIABLES = 'Variables'

DATA = 'Data'
COMPONENT = 'Component'
BASH_SHELL_APP = 'BashShellApp'
MPI = 'Mpi'
DYNLIB_APP = 'DynlibApp'
DOCKER = 'Docker'
DYNLIB_PROC_APP = 'DynlibProcApp'

COMMENT = 'Comment'
DESCRIPTION = 'Description'

STORAGE_TYPES = {Categories.MEMORY, Categories.FILE, Categories.NGAS, Categories.NULL, Categories.JSON}
APP_DROP_TYPES = [
Categories.COMPONENT,
Categories.BASH_SHELL_APP,
Categories.MPI,
Categories.DYNLIB_APP,
Categories.DOCKER,
Categories.DYNLIB_PROC_APP
]

if sys.version_info[0] > 2:
def b2s(b, enc='utf8'):
Expand Down Expand Up @@ -143,4 +181,4 @@ def get_leaves(pg_spec):
if dropspec.get('consumers', None) or dropspec.get('streamingConsumers', None):
nonleaves.add(oid)

return all_oids - nonleaves
return all_oids - nonleaves
75 changes: 0 additions & 75 deletions daliuge-runtime/dlg/apps/fileimport.py

This file was deleted.

107 changes: 0 additions & 107 deletions daliuge-runtime/dlg/apps/spead_receiver.py

This file was deleted.

6 changes: 3 additions & 3 deletions daliuge-runtime/dlg/dask_emulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

from . import utils, droputils
from .apps import pyfunc
from .common import dropdict
from .common import dropdict, Categories
from .ddap_protocol import DROPStates
from .drop import BarrierAppDROP
from .exceptions import InvalidDropException
Expand Down Expand Up @@ -333,7 +333,7 @@ def __init__(self, producer=None, pydata=_no_data):
logger.debug("Created %r", self)

def make_dropdict(self):
my_dropdict = dropdict({'type': 'plain', 'storage': 'memory'})
my_dropdict = dropdict({'type': 'plain', 'storage': Categories.MEMORY})
if not self.producer:
my_dropdict['pydata'] = pyfunc.serialize_data(self.pydata)
return my_dropdict
Expand Down Expand Up @@ -374,4 +374,4 @@ def delayed(x, *args, **kwargs):
nout = None
if callable(x):
return _AppDrop(x, nout=nout)
return _DataDrop(pydata=x)
return _DataDrop(pydata=x)
67 changes: 0 additions & 67 deletions daliuge-runtime/dlg/deploy/pawsey/ipython_notebook_toc.js

This file was deleted.

Loading

0 comments on commit 33dbc50

Please sign in to comment.