Skip to content

Commit

Permalink
Fixed logging in global and sflux plots
Browse files Browse the repository at this point in the history
  • Loading branch information
nichollsh committed Aug 29, 2024
1 parent 656dbdc commit f3fa89f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/proteus/plot/cpl_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,10 @@
from proteus.utils.constants import volatile_species
from proteus.utils.plot import dict_colors, vol_latex, vol_zorder

<<<<<<< HEAD
log = logging.getLogger("fwl."+__name__)
=======
if TYPE_CHECKING:
from proteus import Proteus


log = logging.getLogger("PROTEUS")
>>>>>>> master

log = logging.getLogger("fwl."+__name__)

def plot_global(output_dir: str , options: dict, logt: bool=True, tmin: float=1e1):

Expand Down
2 changes: 1 addition & 1 deletion src/proteus/plot/cpl_sflux.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def plot_sflux(output_dir: str, wl_max: float = 6000.0, plot_format: str="pdf"):
cbar = fig.colorbar(sm, cax=cax, orientation='vertical')
cbar.set_label("Time [yr]")
else:
print("Only one spectrum was found")
log.warning("Only one spectrum was found")

ax.set_yscale("log")
ax.set_ylabel("Flux [erg s-1 cm-2 nm-1]")
Expand Down

0 comments on commit f3fa89f

Please sign in to comment.