jacopo-chevallard / PyP-BEAGLE

4 stars 1 forks source link

Minor bugs in new PyP-BEAGLE version #44

Closed eclake closed 3 years ago

eclake commented 3 years ago
neogal1:/mnt/globalNS/tmp/curtis/BEAGLE_workdir/results/NIRSpec_DC2_prep> pyp_beagle -r fit_R100/ -p fit_R100.param --compute-summary --plot-triangle --plot-marginal
/mnt/globalNS/tmp/curtis/lib/python3.6/site-packages/pyp_beagle/beagle_utils.py:126: MatplotlibDeprecationWarning:
The text.latex.preview rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
  mpl.rcParams['text.latex.preview'] = True
Traceback (most recent call last):
  File "/mnt/globalNS/tmp/curtis/bin/pyp_beagle", line 11, in <module>
    sys.exit(main())
  File "/mnt/globalNS/tmp/curtis/lib/python3.6/site-packages/pyp_beagle/command_line.py", line 232, in main
    _line = trimFitsSuffix(os.path.basename(line))
NameError: name 'trimFitsSuffix' is not defined

can be fixed by changing this line from

from .beagle_utils import BeagleDirectories, get_files_list, configure_matplotlib

to

from .beagle_utils import BeagleDirectories, get_files_list, configure_matplotlib, trimFitsSuffix
neogal1:/mnt/globalNS/tmp/curtis/BEAGLE_workdir/results/NIRSpec_DC2_prep> pyp_beagle -r fit_R100/ -p fit_R100.param --compute-summary --plot-triangle --plot-marginal
/mnt/globalNS/tmp/curtis/lib/python3.6/site-packages/pyp_beagle/beagle_utils.py:126: MatplotlibDeprecationWarning:
The text.latex.preview rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
  mpl.rcParams['text.latex.preview'] = True
Traceback (most recent call last):
  File "/mnt/globalNS/tmp/curtis/bin/pyp_beagle", line 11, in <module>
    sys.exit(main())
  File "/mnt/globalNS/tmp/curtis/lib/python3.6/site-packages/pyp_beagle/command_line.py", line 258, in main
    my_spectrum.plot_marginal(ID, file_names[i])
  File "/mnt/globalNS/tmp/curtis/lib/python3.6/site-packages/pyp_beagle/beagle_spectra.py", line 684, in plot_marginal
    ylim = autoscale.get_autoscale_y(axs[0], ylog=self.log_flux)
NameError: name 'autoscale' is not defined

can be fixed by changing this line from

import pyp_beagle.dependencies.autoscale

to

import pyp_beagle.dependencies.autoscale as autoscale