lama/paths.py
def _get_reg_order(self, spec_root):
        """
        Text file in registrations folder that shows the order of registrations
        """
        reg_order = []
        inv_order = []
        with open((spec_root / 'output' / 'registrations' / REG_DIR_ORDER_CFG), 'r') as fh:
            for line in fh:
                if line.strip():
                    reg_order.append(line.strip())
        try:
            inv_order_cfg = spec_root / 'output' / 'inverted_transforms' / PROPAGATE_CONFIG
            c = cfg_load(inv_order_cfg)
            for stage in c['label_propagation_order']:
                inv_order.append(stage)
        except FileNotFoundError:
            inv_order = None
        return reg_order, inv_order

        Text file in registrations folder that shows the order of registrations
        
Text file in registrations folder that shows the order of registrations
Text file in registrations folder that shows the order of registrations
def _get_reg_order(self, spec_root):
        reg_order = []
        inv_order = []
        with open((spec_root / 'output' / 'registrations' / REG_DIR_ORDER_CFG), 'r') as fh:
            for line in fh:
                if line.strip():
                    reg_order.append(line.strip())
        try:
            inv_order_cfg = spec_root / 'output' / 'inverted_transforms' / PROPAGATE_CONFIG
            c = cfg_load(inv_order_cfg)
            for stage in c['label_propagation_order']:
                inv_order.append(stage)
        except FileNotFoundError:
            inv_order = None
        return reg_order, inv_order
def _get_reg_order ( self , spec_root ) : reg_order = [ ] inv_order = [ ] with open ( ( spec_root / 'output' / 'registrations' / REG_DIR_ORDER_CFG ) , 'r' ) as fh : for line in fh : if line . strip ( ) : reg_order . append ( line . strip ( ) ) try : inv_order_cfg = spec_root / 'output' / 'inverted_transforms' / PROPAGATE_CONFIG c = cfg_load ( inv_order_cfg ) for stage in c [ 'label_propagation_order' ] : inv_order . append ( stage ) except FileNotFoundError : inv_order = None return reg_order , inv_order
Text file in registrations folder that shows the order of registrations
Text file in registrations folder that shows the order of registrations
"""
        Text file in registrations folder that shows the order of registrations
        """
self
spec_root