California-Planet-Search / radvel

General Toolkit for Modeling Radial Velocity Data
http://radvel.readthedocs.io
MIT License
58 stars 53 forks source link

Plotting error when planet not found #323

Closed arpita308 closed 4 years ago

arpita308 commented 4 years ago

I was getting a value error from GridSpec when the data had no planets, saying that ncols could not be 0. Fix that I used:

plot_multipanel in orbit_plots.py Line 454 gs_phase = gridspec.GridSpec(self.phase_nrows, self.phase_ncols) change to Line 454 gs_phase = gridspec.GridSpec(max([1,self.phase_nrows]), max([1,self.phase_ncols]))

bjfultn commented 4 years ago

Thanks! I added this patch in PR #388 and this will be released in v1.4.2