forked from ecmwf/pdbufr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated read_bufr to include return_method [df,lf,gt] and set URLs in…
… tests and examples to original ECMWF ones.
- Loading branch information
Juri Hubrig
committed
May 26, 2024
1 parent
193273d
commit 4b7cae2
Showing
45 changed files
with
1,892 additions
and
284 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,29 @@ | ||
|
||
environment := PDBUFR | ||
|
||
setup: | ||
pre-commit install | ||
|
||
default: | ||
@echo No default | ||
|
||
code-quality: | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
mypy --strict . | ||
|
||
code-style: | ||
black . | ||
isort . | ||
qa: | ||
pre-commit run --all-files | ||
|
||
tests: | ||
unit-tests: | ||
pytest -v --cov=. --cov-report=html README.rst tests | ||
|
||
deploy: | ||
check-manifest . | ||
python setup.py sdist bdist_wheel | ||
|
||
env-create: | ||
conda env create -n $(environment) -f environment.in.yml | ||
conda install -n $(environment) -y pytest pytest-cov black flake8 mypy isort wheel | ||
conda install -n $(environment) -c conda-forge -y check-manifest | ||
|
||
env-update: | ||
conda env update -n $(environment) -f environment.in.yml | ||
|
||
testclean: | ||
$(RM) -r */__pycache__ .coverage .cache tests/.ipynb_checkpoints *.lprof | ||
conda-env-update: | ||
$(CONDA) env update $(CONDAFLAGS) -f environment.yml | ||
|
||
clean: testclean | ||
$(RM) -r */*.pyc htmlcov dist build .eggs | ||
docker-build: | ||
docker build -t $(PROJECT) . | ||
|
||
distclean: clean | ||
$(RM) -r *.egg-info | ||
docker-run: | ||
docker run --rm -ti -v $(PWD):/srv $(PROJECT) | ||
|
||
template-update: | ||
pre-commit run --all-files cruft -c .pre-commit-config-weekly.yaml | ||
|
||
.PHONY: code-quality code-style tests env-create env-update | ||
docs-build: | ||
cd docs && rm -fr _api && make clean && make html |
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 @@ | |
0 1 71 907 NaN NaN NaN NaN | ||
1 1 71 823 221.5 191.5 NaN NaN | ||
|
||
[2 rows x 197 columns] | ||
[2 rows x 197 columns] |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
47 53.75 -73.67 23200.0 223.1 | ||
48 53.75 -73.67 20500.0 221.5 | ||
|
||
[48 rows x 4 columns] | ||
[48 rows x 4 columns] |
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
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
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.