import dabam if __name__ == '__main__': print(dabam.dabam_summary(nmax=56, latex=0)) txt = dabam.dabam_summary(nmax=56, latex=1) output_file = "mytable1.tex" f1 = open(output_file, 'w') f1.write(txt) f1.close() print("File written to disk %s" % output_file) txt = dabam.dabam_summary(nmax=56, latex=2) output_file = "mytable2.tex" f1 = open(output_file, 'w') f1.write(txt) f1.close() print("File written to disk %s" % output_file)
import dabam if __name__ == '__main__': # # get summary table # text = dabam.dabam_summary() print(text) out = dabam.dabam_summary_dictionary() for i in range(len(out)): print("i=:%d, entry:%d"%(i,(out[i])["entry"])) print(out[13]) # # load a given entry (=14) # dm = dabam.dabam() dm.set_input_silent(True) dm.load(14) info = dm.info_profiles() print(info) #
# metafile=open(fileaddress, mode='r') # data = json.load(metafile) # #print((data)) # if i==1: # df=pd.DataFrame.from_dict(data,orient='index') # #df.transpose() # else: # dft=pd.DataFrame.from_dict(data,orient='index') # #dft.transpose() # df.join(dft,lsuffix='_caller', rsuffix='_other') # #df = pd.DataFrame(data) # #data = pd.read_json(metafile,orient='index') ##df.transpose() #print(df) print(dabam.dabam_summary(nmax=56, latex=2)) #dm.set_input_entryNumber(1) #dm.load() dm.set_input_entryNumber(15) dm.set_input_silent(False) dm.load() for i in range(1, 57): dm.set_input_entryNumber(i) dm.set_input_silent(True) dm._load_file_metadata() #print(dm.info_profiles()) surface_set.add(dm.metadata['SURFACE_SHAPE']) if dm.metadata['SURFACE_SHAPE'].lower() == "plane": plane_entry.append(i) elif dm.metadata['SURFACE_SHAPE'].lower() == "cylindrical":
import dabam if __name__ == '__main__': print(dabam.dabam_summary(nmax=25,latex=0)) txt = dabam.dabam_summary(nmax=25,latex=1) output_file="mytable1.tex" f1 = open(output_file,'w') f1.write(txt) f1.close() print("File written to disk %s"%output_file) txt = dabam.dabam_summary(nmax=25,latex=2) output_file="mytable2.tex" f1 = open(output_file,'w') f1.write(txt) f1.close() print("File written to disk %s"%output_file)