@@ -74,7 +74,7 @@ def __beaufort_wind_scale(self, units, max_wind_speed=None):
7474
7575 # Surface level plots
7676
77- def wind_gust_distribution (self , filename = None ):
77+ def wind_gust_distribution (self , * , filename = None ):
7878 """Get all values of wind gust speed (for every date and hour available)
7979 and plot a single distribution. Expected result is a Weibull distribution,
8080 however, the result is not always a perfect fit, and sometimes it may
@@ -124,7 +124,9 @@ def wind_gust_distribution(self, filename=None):
124124 plt .legend ()
125125 show_or_save_plot (filename )
126126
127- def surface10m_wind_speed_distribution (self , wind_speed_limit = False , filename = None ):
127+ def surface10m_wind_speed_distribution (
128+ self , wind_speed_limit = False , * , filename = None
129+ ):
128130 """Get all values of sustained surface wind speed (for every date and
129131 hour available) and plot a single distribution. Expected result is a
130132 Weibull distribution. The wind speed limit is plotted as a vertical line.
@@ -190,6 +192,7 @@ def surface10m_wind_speed_distribution(self, wind_speed_limit=False, filename=No
190192
191193 def average_surface_temperature_evolution (
192194 self ,
195+ * ,
193196 filename = None ,
194197 ): # pylint: disable=too-many-statements
195198 """Plots average temperature progression throughout the day, including
@@ -265,7 +268,7 @@ def average_surface_temperature_evolution(
265268 show_or_save_plot (filename )
266269
267270 def average_surface10m_wind_speed_evolution (
268- self , wind_speed_limit = False , filename = None
271+ self , wind_speed_limit = False , * , filename = None
269272 ): # pylint: disable=too-many-statements
270273 """Plots average surface wind speed progression throughout the day,
271274 including sigma contours.
@@ -366,6 +369,7 @@ def average_surface10m_wind_speed_evolution(
366369
367370 def average_surface100m_wind_speed_evolution (
368371 self ,
372+ * ,
369373 filename = None ,
370374 ): # pylint: disable=too-many-statements
371375 """Plots average surface wind speed progression throughout the day, including
@@ -449,7 +453,7 @@ def average_surface100m_wind_speed_evolution(
449453
450454 # Average profiles plots (pressure level data)
451455
452- def average_wind_speed_profile (self , clear_range_limits = False , filename = None ):
456+ def average_wind_speed_profile (self , clear_range_limits = False , * , filename = None ):
453457 """Average wind speed for all datetimes available. The plot also includes
454458 sigma contours.
455459
@@ -554,7 +558,9 @@ def average_wind_speed_profile(self, clear_range_limits=False, filename=None):
554558 )
555559 show_or_save_plot (filename )
556560
557- def average_wind_velocity_xy_profile (self , clear_range_limits = False , filename = None ):
561+ def average_wind_velocity_xy_profile (
562+ self , clear_range_limits = False , * , filename = None
563+ ):
558564 """Average wind X and wind Y for all datetimes available. The X component
559565 is the wind speed in the direction of East, and the Y component is the
560566 wind speed in the direction of North.
@@ -621,7 +627,7 @@ def average_wind_velocity_xy_profile(self, clear_range_limits=False, filename=No
621627 plt .grid ()
622628 show_or_save_plot (filename )
623629
624- def average_wind_heading_profile (self , clear_range_limits = False , filename = None ):
630+ def average_wind_heading_profile (self , clear_range_limits = False , * , filename = None ):
625631 """Average wind heading for all datetimes available.
626632
627633 Parameters
@@ -679,7 +685,7 @@ def average_wind_heading_profile(self, clear_range_limits=False, filename=None):
679685 plt .legend ()
680686 show_or_save_plot (filename )
681687
682- def average_pressure_profile (self , clear_range_limits = False , filename = None ):
688+ def average_pressure_profile (self , clear_range_limits = False , * , filename = None ):
683689 """Average pressure profile for all datetimes available. The plot also
684690 includes sigma contours.
685691
@@ -772,7 +778,7 @@ def average_pressure_profile(self, clear_range_limits=False, filename=None):
772778 )
773779 show_or_save_plot (filename )
774780
775- def average_temperature_profile (self , clear_range_limits = False , filename = None ):
781+ def average_temperature_profile (self , clear_range_limits = False , * , filename = None ):
776782 """Average temperature profile for all datetimes available. The plot
777783 also includes sigma contours.
778784
@@ -918,7 +924,7 @@ def plot_wind_rose(
918924 ax .yaxis .set_major_formatter (mtick .PercentFormatter (decimals = 0 ))
919925 return ax
920926
921- def average_wind_rose_specific_hour (self , hour , fig = None , filename = None ):
927+ def average_wind_rose_specific_hour (self , hour , fig = None , * , filename = None ):
922928 """Plot a specific hour of the average windrose
923929
924930 Parameters
@@ -952,7 +958,7 @@ def average_wind_rose_specific_hour(self, hour, fig=None, filename=None):
952958 show_or_save_plot (filename )
953959
954960 def average_wind_rose_grid (
955- self , filename = None
961+ self , * , filename = None
956962 ): # pylint: disable=too-many-statements
957963 """Plot wind roses for all hours of a day, in a grid like plot.
958964
@@ -1088,7 +1094,7 @@ def animate_average_wind_rose(self, figsize=(5, 5), filename="wind_rose.gif"):
10881094 # More plots and animations
10891095
10901096 def wind_gust_distribution_grid (
1091- self , filename = None
1097+ self , * , filename = None
10921098 ): # pylint: disable=too-many-statements
10931099 """Plots shown in the animation of how the wind gust distribution varies
10941100 throughout the day.
@@ -1264,7 +1270,7 @@ def update(frame):
12641270 return HTML (animation .to_jshtml ())
12651271
12661272 def surface_wind_speed_distribution_grid (
1267- self , wind_speed_limit = False , filename = None
1273+ self , wind_speed_limit = False , * , filename = None
12681274 ): # pylint: disable=too-many-statements
12691275 """Plots shown in the animation of how the sustained surface wind speed
12701276 distribution varies throughout the day. The plots are histograms of the
@@ -1493,7 +1499,7 @@ def update(frame):
14931499 return HTML (animation .to_jshtml ())
14941500
14951501 def wind_speed_profile_grid (
1496- self , clear_range_limits = False , filename = None
1502+ self , clear_range_limits = False , * , filename = None
14971503 ): # pylint: disable=too-many-statements
14981504 """Creates a grid of plots with the wind profile over the average day.
14991505 Each subplot represents a different hour of the day.
@@ -1592,7 +1598,7 @@ def wind_speed_profile_grid(
15921598 show_or_save_plot (filename )
15931599
15941600 def wind_heading_profile_grid (
1595- self , clear_range_limits = False , filename = None
1601+ self , clear_range_limits = False , * , filename = None
15961602 ): # pylint: disable=too-many-statements
15971603 """Creates a grid of plots with the wind heading profile over the
15981604 average day. Each subplot represents a different hour of the day.
0 commit comments