Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_assessor_path(self, project, subject, session, assessor):
return InterfaceTemp.A_XPATH.format(project=project,
subject=subject,
session=session,
assessor=assessor)
def get_interface(host=None, user=None, pwd=None):
"""
Opens a connection to XNAT.
:param host: URL to connect to XNAT
:param user: XNAT username
:param pwd: XNAT password
:return: InterfaceTemp object which extends functionaly of pyxnat.Interface
"""
return InterfaceTemp(host, user, pwd)
def get_subject_path(self, project, subject):
return InterfaceTemp.S_XPATH.format(project=project,
subject=subject)
def get_scan_resource_path(self,
project, subject, session, scan, resource):
return InterfaceTemp.CR_XPATH.format(project=project,
subject=subject,
session=session,
scan=scan,
resource=resource)
def get_assessor_resource_path(
self, project, subject, session, assessor, resource):
return InterfaceTemp.AR_XPATH.format(project=project,
subject=subject,
session=session,
assessor=assessor,
resource=resource)
def get_experiment_path(self, project, subject, session):
return InterfaceTemp.E_XPATH.format(project=project,
subject=subject,
session=session)
def disconnect(self):
super(InterfaceTemp, self).disconnect()