def name_type_from_viewname(viewname):
        """Have format V_<studyname>_<view>[_RAW], return name and view type REGULAR or RAW"""
        matched = VIEW_REX.match(viewname)
        return matched.group('view'), matched.group('type') or 'REGULAR'
def name_type_from_viewname ( viewname ) : matched = VIEW_REX . match ( viewname ) return matched . group ( 'view' ) , matched . group ( 'type' ) or 'REGULAR'
Have format V_<studyname>_<view>[_RAW], return name and view type REGULAR or RAW