You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add unwarp support for lammps dump
* let user choose to unwrap and add unittest case
* temp to revert format changes
* clean up
* add warning for unwrap
* add UnwrapWarning class
posis= (posis-orig)@np.linalg.inv(cell)# Convert to scaled coordinates for unscaled coordinates
85
-
return (posis%1)@cell# Convert scaled coordinates back to Cartesien coordinates
90
+
posis= (posis-orig) @ np.linalg.inv(cell) # Convert to scaled coordinates for unscaled coordinates
91
+
ifuwandunwrap:
92
+
returnposis @ cell# convert scaled coordinates back to Cartesien coordinates unwrap at the periodic boundaries
93
+
else:
94
+
ifuwandnotunwrap:
95
+
warnings.warn(message='Your dump file contains unwrapped coordinates, but you did not specify unwrapping (unwrap = True). The default is wrapping at periodic boundaries (unwrap = False).\n',category=UnwrapWarning)
96
+
return (posis%1) @ cell# Convert scaled coordinates back to Cartesien coordinates with wraping at periodic boundary conditions
0 commit comments