-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
88 additions
and
180 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
[mypy] | ||
files = sciencedates/ | ||
files = src/ | ||
|
||
ignore_missing_imports = True | ||
strict_optional = False | ||
allow_redefinition = True | ||
show_error_context = False | ||
show_column_numbers = True | ||
warn_unreachable = False | ||
|
||
[mypy-xarray] | ||
follow_imports = skip |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
""" | ||
command-line utility to convert date to day of year | ||
""" | ||
from argparse import ArgumentParser | ||
from sciencedates import date2doy | ||
|
||
|
||
def main(): | ||
p = ArgumentParser(description="convert date to day of year") | ||
p.add_argument("date", help="yyyy-mm-dd") | ||
P = p.parse_args() | ||
p = ArgumentParser(description="convert date to day of year") | ||
p.add_argument("date", help="yyyy-mm-dd") | ||
P = p.parse_args() | ||
|
||
doy, year = date2doy(P.date) | ||
doy, year = date2doy(P.date) | ||
|
||
print(doy.item()) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
print(doy.item()) |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
requires = ["setuptools", "wheel"] | ||
|
||
[tool.black] | ||
line-length = 132 | ||
line-length = 100 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[metadata] | ||
name = sciencedates | ||
version = 1.5.0 | ||
version = 1.5.1 | ||
author = Michael Hirsch, Ph.D. | ||
author_email = [email protected] | ||
url = https://github.com/geospace-code/sciencedates | ||
|
@@ -21,22 +21,25 @@ long_description = file: README.md | |
long_description_content_type = text/markdown | ||
|
||
[options] | ||
python_requires = >= 3.5 | ||
python_requires = >= 3.7 | ||
packages = find: | ||
scripts = | ||
date2doy.py | ||
findnearest.py | ||
randomdate.py | ||
install_requires = | ||
numpy | ||
python-dateutil | ||
package_dir= | ||
=src | ||
|
||
[options.packages.find] | ||
where=src | ||
|
||
[options.extras_require] | ||
tests = | ||
pytest | ||
lint = | ||
flake8 | ||
mypy | ||
types-pytz | ||
types-python-dateutil | ||
plot = | ||
xarray | ||
matplotlib | ||
|
File renamed without changes.
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
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.