Skip to content
Snippets Groups Projects
Commit ed22af22 authored by BLANCO-GARCIA's avatar BLANCO-GARCIA
Browse files

fix bugs

parent 1db458d7
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,10 @@ def loadSCmatfile(fname):
"""
SCmat = scipy.io.loadmat(fname);
idealring, ring = loadringsfromSC(SCmat)
return idealring, ring
def loadringsfromSC(SCstruct)
def loadringsfromSC(SCstruct):
"""
loadringsfromSC(SCstruct)
This function reads idealring and ring from an SC structure.
......@@ -23,10 +24,10 @@ def loadringsfromSC(SCstruct)
list_of_rings = []
for li in list_of_ringnames:
scipy.io.savemat('tmpringfromSC.mat', {li: SCmat['SC'][li][0,0]})
scipy.io.savemat('tmpringfromSC.mat', {li: SCstruct['SC'][li][0,0]})
ring = at.load_mat('tmpringfromSC.mat', mat_key=li, keep_all=True)
list_of_rings.append(ring)
return ring[0],ring[1]
return list_of_rings[0], list_of_rings[1]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment