Skip to content

Commit 38370ec

Browse files
author
John Halloran
committed
style: lowercase remaining variables
1 parent ffe0b6b commit 38370ec

File tree

2 files changed

+123
-118
lines changed

2 files changed

+123
-118
lines changed

src/diffpy/snmf/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import numpy as np
22
from snmf_class import SNMFOptimizer
33

4-
init_comps_file = np.loadtxt("input/X0.txt", dtype=float)
4+
init_components_file = np.loadtxt("input/X0.txt", dtype=float)
55
source_matrix_file = np.loadtxt("input/MM.txt", dtype=float)
66
init_stretch_file = np.loadtxt("input/A0.txt", dtype=float)
77
init_weights_file = np.loadtxt("input/W0.txt", dtype=float)
88

99
my_model = SNMFOptimizer(
1010
source_matrix=source_matrix_file,
1111
init_weights=init_weights_file,
12-
init_comps=init_comps_file,
12+
init_components=init_components_file,
1313
init_stretch=init_stretch_file,
1414
)
1515

1616
print("Done")
17-
np.savetxt("my_norm_comps.txt", my_model.comps, fmt="%.6g", delimiter=" ")
17+
np.savetxt("my_norm_components.txt", my_model.components, fmt="%.6g", delimiter=" ")
1818
np.savetxt("my_norm_weights.txt", my_model.weights, fmt="%.6g", delimiter=" ")
1919
np.savetxt("my_norm_stretch.txt", my_model.stretch, fmt="%.6g", delimiter=" ")

0 commit comments

Comments
 (0)