def get_mrg(self, scans=None, action='average', **kws):
        #check inputs - some already checked in get_scan()/get_scans()
        nscans = _checkScans(scans)
        
        actions = ['single', 'average', 'join']
        if not action in actions:
            raise NameError("'action={0}' not in known actions {1}".format(actions))

        # moved to get_scans
        xdats, zdats = self.get_scans(scans=nscans, motinfo=False, **kws)
        
        # override 'action' keyword if it is only one scan
        if len(nscans) == 1:
            action = 'single'
            #print("WARNING(get_mrg): len(scans)==1 -> using 'action=single'")
        if action == 'average':
            return _pymca_average(xdats, zdats)
        elif action == 'join':
            return np.concatenate(xdats, axis=0), np.concatenate(zdats, axis=0)
        elif action == 'single':
            return xdats[0], zdats[0]
Sets an object metadata.
dataset/ETHPy150Open xraypy/xraylarch/plugins/io/specfiledata.py/SpecfileData.get_mrg--crossover with--dataset/ETHPy150Open runabove/python-runabove/runabove/storage.py/ObjectStored.meta