# -*- coding: utf-8 -*- """ Created on Mon Jul 9 12:58:09 2018 @author: MPawlowska """ import os import prepFunctions d = prepFunctions.wybierzKatalog() tempX = [] tempXY = [] listaPlikow = os.listdir(d) for f in listaPlikow: tX = f[0:6] tXY = f[0:13] tempX.append(tX) tempXY.append(tXY) lX = [] lX = [x for x in tempX if x not in lX and (lX.append(x) or True)] lXY = [] lXY = [x for x in tempXY if x not in lXY and (lXY.append(x) or True)] prepFunctions.makeDirsX(d, lXY) prepFunctions.movingVan(d, lXY, listaPlikow) prepFunctions.makeDirsX(d, lX) prepFunctions.movingVan(d, lX, lXY)
@author: MPawlowska """ import os import readMetadata, listaPozycji, prepFunctions ###### KONFIGURACJA ######### zStepOld = 10 zStepNew = 10 nazwa_series = 'imageSeries_corBasic' z0Old = 0 z0New = 90 ############################# rawDataDir = prepFunctions.wybierzKatalog() #read information from metadata file into dic and create lists dic = readMetadata.makeDic(rawDataDir) lXY = dic['listaStringow'] #choosing unique values from the list of all X positions used = [] lX = [x for x in dic['listaXow'] if x not in used and (used.append(x) or True)] lX = lX[1:] lXY = lXY[4:] #policz Z slices dataDir = os.path.abspath(os.path.join(rawDataDir, nazwa_series)) dirX0 = os.path.abspath(os.path.join(dataDir, lX[0]))