[ARVADOS] updated: 1.3.0-163-g3e0836a45
Git user
git at public.curoverse.com
Thu Jan 17 14:00:10 EST 2019
Summary of changes:
sdk/cwl/arvados_cwl/done.py | 4 +++-
sdk/cwl/arvados_cwl/fsaccess.py | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
via 3e0836a454bde7c61192700b5ba96a319e5fafe5 (commit)
from db376a8ddd3a803f4c9c85baf41cb57c6106452f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 3e0836a454bde7c61192700b5ba96a319e5fafe5
Author: Eric Biagiotti <ebiagiotti at veritasgenetcs.com>
Date: Thu Jan 17 14:00:05 2019 -0500
13306: Updating dict values as a list to improve py2 performance
Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti <ebiagiotti at veritasgenetics.com>
diff --git a/sdk/cwl/arvados_cwl/done.py b/sdk/cwl/arvados_cwl/done.py
index 313c3925a..eeef4bce3 100644
--- a/sdk/cwl/arvados_cwl/done.py
+++ b/sdk/cwl/arvados_cwl/done.py
@@ -2,6 +2,8 @@
#
# SPDX-License-Identifier: Apache-2.0
+from future.utils import listvalues
+
import re
from cwltool.errors import WorkflowException
from collections import deque
@@ -91,7 +93,7 @@ def logtail(logcollection, logfunc, header, maxlen=25):
loglines.append("%s %s %s" % (ts, earliest, msg))
loglines = loglines[-maxlen:]
else:
- loglines = list(mergelogs.values())[0]
+ loglines = listvalues(mergelogs)[0]
logtxt = "\n ".join(l.strip() for l in loglines)
logfunc("%s\n\n %s", header, logtxt)
diff --git a/sdk/cwl/arvados_cwl/fsaccess.py b/sdk/cwl/arvados_cwl/fsaccess.py
index 3baa7835f..383a816bb 100644
--- a/sdk/cwl/arvados_cwl/fsaccess.py
+++ b/sdk/cwl/arvados_cwl/fsaccess.py
@@ -5,6 +5,7 @@
from future import standard_library
standard_library.install_aliases()
from builtins import object
+from future.utils import listvalues
import fnmatch
import os
@@ -294,7 +295,7 @@ def collectionResolver(api_client, document_loader, uri, num_retries=4):
if pipeline_template_uuid_pattern.match(uri):
pt = api_client.pipeline_templates().get(uuid=uri).execute(num_retries=num_retries)
- return "keep:" + list(pt["components"].values())[0]["script_parameters"]["cwl:tool"]
+ return "keep:" + listvalues(pt["components"])[0]["script_parameters"]["cwl:tool"]
p = uri.split("/")
if arvados.util.keep_locator_pattern.match(p[0]):
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list