OpenMS / pyopenms-docs

pyOpenMS readthedocs documentation, additional utilities, addons, scripts, and examples.
https://pyopenms.readthedocs.io
Other
42 stars 52 forks source link

Error related to new range manager #273

Closed timosachsenberg closed 2 years ago

timosachsenberg commented 2 years ago
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_3084/770501176.py in <module>
     28 MzMLFile().load('test.mzML', exp)
     29 
---> 30 plot_spectra_2D(exp)

/tmp/ipykernel_3084/770501176.py in plot_spectra_2D(exp, ms_level, marker_size)
     12             rt = np.full([mz.shape[0]], spec.getRT(), float)
     13             plt.scatter(rt, mz[p], c = intensity[p], cmap = 'afmhot_r', s=marker_size, 
---> 14                         norm=colors.LogNorm(exp.getMinInt()+1, exp.getMaxInt()))
     15     plt.clim(exp.getMinInt()+1, exp.getMaxInt())
     16     plt.xlabel('time (s)')

AttributeError: 'MSExperimentDF' object has no attribute 'getMinInt'
AttributeError: 'MSExperimentDF' object has no attribute 'getMinInt'