Skip to content

Commit

Permalink
Spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Jan 18, 2024
1 parent 0445472 commit 9c7d9c1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions floris/tools/wind_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

class WindDataBase:
"""
Super class that WindRose and TimeSeries inherit from, enforcing the implmentaton of
Super class that WindRose and TimeSeries inherit from, enforcing the implementation of
unpack() on the child classes and providing the general functions unpack_for_reinitialize() and
unpack_freq().
"""
Expand Down Expand Up @@ -95,7 +95,7 @@ def __init__(
freq_table: NDArrayFloat | None=None,
ti_table: NDArrayFloat | None=None,
price_table: NDArrayFloat | None=None,
compute_zero_freq_occurence: bool=False,
compute_zero_freq_occurrence: bool=False,
):
if not isinstance(wind_directions, np.ndarray):
raise TypeError("wind_directions must be a NumPy array")
Expand Down Expand Up @@ -139,8 +139,8 @@ def __init__(
raise ValueError("price_table second dimension must equal len(wind_speeds)")
self.price_table = price_table

# Save whether zero occurence cases should be computed
self.compute_zero_freq_occurence = compute_zero_freq_occurence
# Save whether zero occurrence cases should be computed
self.compute_zero_freq_occurrence = compute_zero_freq_occurrence

# Build the gridded and flatten versions
self._build_gridded_and_flattened_version()
Expand Down Expand Up @@ -175,9 +175,9 @@ def _build_gridded_and_flattened_version(self):
else:
self.price_table_flat = None

# Set mask to non-zero frequency cases depending on compute_zero_freq_occurence
if self.compute_zero_freq_occurence:
# If computing zero freq occurences, then this is all True
# Set mask to non-zero frequency cases depending on compute_zero_freq_occurrence
if self.compute_zero_freq_occurrence:
# If computing zero freq occurrences, then this is all True
self.non_zero_freq_mask = [True for i in range(len(self.freq_table_flat))]
else:
self.non_zero_freq_mask = self.freq_table_flat > 0.0
Expand Down Expand Up @@ -267,7 +267,7 @@ def plot_wind_rose(
legend_kwargs={},
):
"""
This method creates a wind rose plot showing the frequency of occurance
This method creates a wind rose plot showing the frequency of occurrence
of the specified wind direction and wind speed bins. If no axis is
provided, a new one is created.
Expand Down Expand Up @@ -331,15 +331,15 @@ class TimeSeries(WindDataBase):
"""
In FLORIS v4, the TimeSeries class is used to drive FLORIS and optimization
operations in which the inflow is by a sequence of wind direction, wind speed
and turbulence intensitity values
and turbulence intensity values
Args:
wind_directions: NumPy array of wind directions (NDArrayFloat).
wind_speeds: NumPy array of wind speeds (NDArrayFloat).
turbulence_intensity: NumPy array of wind speeds (NDArrayFloat, optional).
Defatuls to None
Defaults to None
prices: NumPy array of electricity prices (NDArrayFloat, optional).
Defatuls to None
Defaults to None
"""

Expand Down

0 comments on commit 9c7d9c1

Please sign in to comment.