Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/diffpy/snmf/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
init_stretch=init_stretch_file,
show_plots=True,
)
my_model.fit(rho=1e12, eta=610)

print("Done")
np.savetxt("my_norm_components.txt", my_model.components, fmt="%.6g", delimiter=" ")
np.savetxt("my_norm_weights.txt", my_model.weights, fmt="%.6g", delimiter=" ")
np.savetxt("my_norm_stretch.txt", my_model.stretch, fmt="%.6g", delimiter=" ")
np.savetxt("my_norm_components.txt", my_model.components_, fmt="%.6g", delimiter=" ")
np.savetxt("my_norm_weights.txt", my_model.weights_, fmt="%.6g", delimiter=" ")
np.savetxt("my_norm_stretch.txt", my_model.stretch_, fmt="%.6g", delimiter=" ")
Loading