Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalemink committed Oct 2, 2023
1 parent 6e55740 commit 61e48ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mapclient/tools/pmr/pmrtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ class PMRTool(object):
PROTOCOL = 'application/vnd.physiome.pmr2.json.0'
UA = 'pmr.jsonclient.Client/0.2'

PMR_URLS = [
"https://models.physiomeproject.org/workspace",
"https://teaching.physiomeproject.org/workspace"
]

def __init__(self, pmr_info=None, use_external_git=False):
self._termLookUpLimit = 32
self.set_info(pmr_info)
Expand Down Expand Up @@ -397,7 +402,7 @@ def is_pmr_workflow(self, local_workspace_dir):

remote_workspace_url = workspace.cmd.read_remote(workspace)
url = remote_workspace_url[:remote_workspace_url.rfind('/')]
return url == "https://teaching.physiomeproject.org/workspace"
return url in self.PMR_URLS

else:
return False
Expand Down

0 comments on commit 61e48ca

Please sign in to comment.