Esempio n. 1
0
from ReaderFunctions.ReaderFunctions import readers as rdr
import os

startdistance=0.0 #mm
length=120.0 #mm
prefix='E01_fibre 1_'
path=r'C:\Users\eivinhug\OneDrive - NTNU\PhD_Backup\NTNU\PhD\Testing\Laminate_E\OBR_Files\E01_FatigueTest_2_28082018\RAW'
rdr=rdr()

highest_numbers=np.arange(13,174,10)
start_heres=np.arange(5,166,10)
zeroreading=4

load_file_number = str(zeroreading).zfill(4)
file=prefix+load_file_number+'_Lower.txt'
doods=rdr.Lower_Reader(location='%s\%s' %(path, file))
print(doods)
PastStrain=doods[1]
#Result=rdr.SeriesReader(location=r'C:\Users\eivinhug\NTNU\PhD\Testing\Laminate_D\OBR_Files\D01_Temsion_07062018',key=key,startdistance=startdistance,length=length)

for i in range(0,len(highest_numbers)):
    
    StrainSummed=doods[1]
    start=start_heres[i]
    stop=highest_numbers[i]

    filename="Output_Summed_"+str(prefix)+str(start)+"_"+str(stop)+".txt"
    
    print(path+filename)
    
    thefile = open(os.path.join(path,filename), 'w')
import os

startdistance = 0.0  #mm
length = 120.0  #mm
key = 'E01_fibre 1_'
prefix = key
path = r'C:\Users\eivinhug\OneDrive - NTNU\PhD_Backup\NTNU\PhD\Testing\Laminate_E\OBR_Files\E01_FatigueTest_2_28082018\RAW'
rdr = rdr()

highest_numbers = np.arange(13, 174, 10)
start_heres = np.arange(5, 166, 10)
zeroreading = 4

load_file_number = str(zeroreading).zfill(4)
file = prefix + load_file_number + '_Lower.txt'
Zerodoods = rdr.Lower_Reader(location='%s\%s' % (path, file))
ZeroStrain = Zerodoods[1]
ZeroLength = Zerodoods[0]

for i in range(0, len(highest_numbers)):

    start = start_heres[i]
    stop = highest_numbers[i]

    Strain = []
    for i in range(start, stop + 1, 1):

        OldStrain = ZeroStrain

        if i > start:
            Old_load_file_number = str(i - 1).zfill(4)