Skip to content

Commit

Permalink
Update comparison.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaela-felix authored Mar 24, 2023
1 parent 98d6fa1 commit 9a9701b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyddt/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def phase(data1: np.ndarray, data2: np.ndarray, min: float = 15):
df = pd.DataFrame(np.column_stack((HKL, np.round(F, 2), np.round(Q, 2),
np.round(Z, 2))),
columns=['hkl', 'F', 'Q', 'Z'])
date = datetime.now().strftime("%Y%m%d_%X")
date = datetime.now().strftime("%Y%m%d_%H_%M_%S")
name = 'PHASE' + date + '.txt'

np.savetxt(name, df.values, fmt='% 10s',
Expand Down Expand Up @@ -172,7 +172,7 @@ def triplet(data1: np.ndarray, data2: np.ndarray, G: list, wmin: float = 5):
np.round(Z, 2))),
columns=['hkl', 'F', 'Q', 'Z'])

date = datetime.now().strftime("%Y%m%d_%X")
date = datetime.now().strftime("%Y%m%d_%H_%M_%S")
name = 'TRIPLET_G_' + "".join((G.astype(int)).astype(str)) + '_' + date + '.txt'

np.savetxt(name, df.values, fmt='% 10s',
Expand Down

0 comments on commit 9a9701b

Please sign in to comment.