Skip to content

Commit

Permalink
🎨 Extra subsection for rioxarray datapipes (#18)
Browse files Browse the repository at this point in the history
Reorganizing some files in anticipation of new features coming soon!

* 🎨 Extra subsection for rioxarray datapipes

Some more structure to the API docs in anticipation of new classes in the pipeline!

* 🚚 Rename test_datapipes.py to test_datapipes_rioxarray.py

Making individual test files specific to the library being imported. Also moved the --verbose flag in ci-test.yml to be behind pytest.
  • Loading branch information
weiji14 authored Jun 9, 2022
1 parent 4d1fa95 commit 7f28f95
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
# Run the unit tests and doctests
- name: Test with pytest
run: poetry run --verbose pytest --doctest-modules zen3geo/
run: poetry run pytest --verbose --doctest-modules zen3geo/
5 changes: 5 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
```{eval-rst}
.. automodule:: zen3geo.datapipes
:members:
```

### Rioxarray

```{eval-rst}
.. automodule:: zen3geo.datapipes.rioxarray
.. autoclass:: zen3geo.datapipes.RioXarrayReader
.. autoclass:: zen3geo.datapipes.rioxarray.RioXarrayReaderIterDataPipe
:show-inheritance:
Expand Down
2 changes: 1 addition & 1 deletion zen3geo/datapipes/rioxarray.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
DataPipes for rioxarray.
DataPipes for :doc:`rioxarray <rioxarray:index>`.
"""
from typing import Any, Dict, Iterator, Optional, Tuple

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Tests for datapipes.
Tests for rioxarray datapipes.
"""
from torchdata.datapipes.iter import IterableWrapper

Expand Down

0 comments on commit 7f28f95

Please sign in to comment.