docs: 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'