Skip to content

Commit a0b9975

Browse files
committed
Now the automatic plot of the refractive index should work
1 parent 6d51bc9 commit a0b9975

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/AdvancedCalculations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def get_optical_spectrum(ensemble, w_array = None):
307307
""".format(i)
308308
raise ValueError(ERR)
309309

310-
data = ensemble.all_properties[i]['epsilon']
310+
data = np.array(ensemble.all_properties[i]['epsilon'])
311311

312312
if w_data is None:
313313
w_data = data[:,0]

0 commit comments

Comments
 (0)