Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read .mat files with an SC structure #11

Open
oscarxblanco opened this issue Jun 6, 2023 · 1 comment
Open

Read .mat files with an SC structure #11

oscarxblanco opened this issue Jun 6, 2023 · 1 comment

Comments

@oscarxblanco
Copy link

oscarxblanco commented Jun 6, 2023

Dear all,

is there a way to read an SC structure from a .mat file saved in matlab ?
For the moment I have managed to load the lattice with the following code :

import scipy
import at
SCmat = scipy.io.loadmat('SC.mat');
scipy.io.savemat('ringfromSC.mat', {'RING': SCmat['SC']['RING'][0,0]})
ring = at.load_mat('ringfromSC.mat', mat_key='RING', keep_all=True)

Is there any other option ?

@lmalina
Copy link
Owner

lmalina commented Jun 6, 2023

Dear Oscar,

This has not been investigated (yet). The SC-structure equivalent can be created in pySC, but bear in mind that not all correction algorithms are working yet. To load the SC-modified lattice only, your code looks already quite straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants