-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from blaylockbk/303-migrate-mature-functions-…
…from-carpenter_workshop-into-herbie Migrate mature capabilities from Carpenter_Workshop into Herbie
- Loading branch information
Showing
106 changed files
with
34,105 additions
and
29,103 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ Docstring reference for the ``herbie`` module | |
accessors | ||
fast | ||
latest | ||
paint | ||
wgrib2 | ||
misc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
============= | ||
herbie.paint | ||
============= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
.. currentmodule:: herbie.paint | ||
|
||
.. autosummary:: | ||
:toctree: _autosummary | ||
|
||
NWSTemperature | ||
NWSWindChill | ||
NWSHeatIndex | ||
NWSDewPointTemperature | ||
NWSRelativeHumidity | ||
NWSWindSpeed | ||
NWSCloudCover | ||
NWSProbabilityOfPrecipitation | ||
NWSProbabilityOfPrecipitationSnow | ||
NWSProbabilityOfPrecipitationIce | ||
NWSPrecipitation | ||
NWSPrecipitationSnow | ||
NWSPrecipitationIce | ||
NWSWaveHeight | ||
LandTan | ||
LandBrown | ||
LandGreen | ||
Water | ||
HerbieWhite | ||
HerbieTan | ||
HerbieBlack | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""Fix jupyter notebooks when they have issues. | ||
I've had to use this on my notebooks to fix them after doing find/replace | ||
operations, and other weird things that happen. | ||
""" | ||
|
||
import nbformat | ||
from pathlib import Path | ||
|
||
|
||
for FILE in sorted(Path("./").rglob("*.ipynb")): | ||
print(FILE) | ||
with open(FILE, "r") as file: | ||
nb_corrupted = nbformat.reader.read(file) | ||
|
||
nbformat.validator.validate(nb_corrupted) | ||
# <stdin>:1: MissingIDFieldWarning: Code cell is missing an id field, | ||
# this will become a hard error in future nbformat versions. | ||
# You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). | ||
# Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. | ||
|
||
nb_fixed = nbformat.validator.normalize(nb_corrupted) | ||
nbformat.validator.validate(nb_fixed[1]) | ||
# Produces no warnings or errors. | ||
|
||
with open(FILE, "w") as file: | ||
nbformat.write(nb_fixed[1], file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.