Skip to content

MCRALS example using hardConc #609

Answered by atravert
GhostDeini asked this question in Q&A
Discussion options

You must be logged in to vote

Dear Lucia,

I apologize for the late reply. Here is the script, which works with the current stable and dev version of Scpy. Note that there are some changes in the synthax (first initiate a MCRALS instance with options, and then use fit() method), but the internal algorithm is the same as previously.
Currently, the profiles are computed with lstsq, and non-negativity constraints applied by brute force (all values are set to 0). We are currently working on adding nnls, I will lety you know when done.
Do not hesitate ti ask if you have any question.

Best,
Arnaud

# %%
import spectrochempy as scp
import numpy as np

# %%

#energy = np.loadtxt('energy.txt')
arr_pos1 = np.loadtxt('cell4pos1.txt'

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@GhostDeini
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by atravert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants