Skip to content

Commit 7395ec7

Browse files
author
Daniel Abercrombie
authored
Merge pull request #120 from dabercro/filter-mss
Filter out *_MSS and *_Export sites
2 parents add63ff + d0a3d55 commit 7395ec7

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

workflowwebtools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
:author: Daniel Abercrombie <dabercro@mit.edu>
55
"""
66

7-
__version__ = '0.9.2'
7+
__version__ = '0.9.3'
88

99
__all__ = []

workflowwebtools/workflowinfo.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,12 @@ def site_to_run(self, task):
383383
all_site_list = site_list()
384384

385385
for site in site_set:
386-
clean_site = re.sub(r'_(ECHO_)?(Disk|MSS)$', '', site)
386+
if site.startswith('T0_') or site.endswith('_MSS') or site.endswith('_Export'):
387+
continue
388+
389+
clean_site = re.sub(r'_(ECHO_)?(Disk)$', '', site)
387390
if clean_site not in out_list and clean_site and \
388-
clean_site in all_site_list and \
389-
'T0_' not in clean_site:
391+
clean_site in all_site_list:
390392
out_list.append(clean_site)
391393

392394
out_list.sort()

0 commit comments

Comments
 (0)