import numpy as np #Dump to lammps positions for file #Note only works for classic lammps atom dumps #reading in dump file name = str(input("What is the name of the dump file?")) file = open(name, "r") if(name[len(name)-9:len(name)]!="lammpstrj"): print("Error: please abort program") content = file.read() data = content.split() step = str(input("What step would you like to pull? (l for last)")) #reading in reference file name2 = str(input("What is the name of the reference system file?")) file2 = open(name2, "r") content2 = file2.read() start = content2.find("Atoms")+5 stop = content2.find("Bonds") atoms = content2[start:stop] #print(atoms) atomArr = atoms.split() #determining bounds as stored in scaled format --> x stored * range of x + xmin = x real xmin = -1 xmax = -1 ymin = -1 ymax = -1 zmin = -1 zmax = -1 foundData = False beginIndex = -1 endIndex = -1 if(step=="l"): #if last easy to find endIndex = len(data) i=1 while(i