Skip to content

Commit

Permalink
Corrected plots
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmeeker committed Jan 7, 2025
1 parent d352080 commit 0184a10
Show file tree
Hide file tree
Showing 7 changed files with 379 additions and 484 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,15 @@ def _normalize_block(
if not np.any(curr_block):
raise ValueError("No fluctuation field has been generated, call the .generate() method first.")

if windprofiletype not in ["LOG", "PL"]:
raise ValueError('windprofiletype must be either "LOG" or "PL"')

if any(param <= 0 for param in [zref, uref, z0]):
raise ValueError("zref, uref, and z0 must all be positive")

if windprofiletype == "PL" and plexp is None:
raise ValueError("Power law exponent (plexp) is required when using power law profile")

sd = np.sqrt(np.mean(curr_block**2))
curr_block /= sd

Expand Down
1 change: 0 additions & 1 deletion examples-unrendered/logic.md

This file was deleted.

Loading

0 comments on commit 0184a10

Please sign in to comment.