Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting Current Season #1

Open
croixchristenson opened this issue Nov 9, 2023 · 0 comments
Open

Plotting Current Season #1

croixchristenson opened this issue Nov 9, 2023 · 0 comments

Comments

@croixchristenson
Copy link

This is an incredible package, thank you!

When calling the station.plot for the following (current season) for the following:

  • station.plot_snowdepth_time_series(season="2023-2024",climatology = (1991, 2020))
    OR
  • station.plot_snow_time_series(season="2023-2024",climatology = (1991, 2020))

The following error pops up: NameError: name 'plot_season' is not defined.

The code does execute if I change the line of code it errors out on to use season instead of plot_season.

def plot_snowdepth_time_series(self, season=None, climatology=None, climatology_years=30):
label=plot_season+f' ({data[season]["snow"][-1]:.1f}{unit_label})')
def plot_snow_time_series(self, season=None, rolling_days=None, climatology=None, climatology_years=30):
label=plot_season+f' ({max(data[season]["snow"]):.1f}{unit_label})')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant