-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Meteostat 1.5.0 * Linting 1.5.0
- Loading branch information
Showing
16 changed files
with
273 additions
and
253 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
""" | ||
Example: Hourly point data performance | ||
Meteorological data provided by Meteostat (https://dev.meteostat.net) | ||
under the terms of the Creative Commons Attribution-NonCommercial | ||
4.0 International Public License. | ||
The code is licensed under the MIT license. | ||
""" | ||
|
||
if __name__ == '__main__': | ||
|
||
from timeit import default_timer as timer | ||
|
||
# Get start time | ||
s = timer() | ||
|
||
# Run script | ||
from datetime import datetime | ||
from meteostat import Hourly | ||
|
||
Hourly.cores = 12 | ||
|
||
start = datetime(1960, 1, 1) | ||
end = datetime(2021, 1, 1, 23, 59) | ||
|
||
data = Hourly('10637', start, end, timezone='Europe/Berlin') | ||
data = data.fetch() | ||
|
||
# Get end time | ||
e = timer() | ||
|
||
# Print performance | ||
print(e - s) |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.