Skip to content

Commit

Permalink
Merge pull request #1157 from OSOceanAcoustics/dev
Browse files Browse the repository at this point in the history
Release/v0.8.1
  • Loading branch information
leewujung authored Sep 2, 2023
2 parents 254ee10 + 09e2705 commit 3b69eae
Show file tree
Hide file tree
Showing 24 changed files with 17,005 additions and 16,887 deletions.
8 changes: 0 additions & 8 deletions .ci_helpers/py3.8.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .ci_helpers/user_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: echopype
channels:
- conda-forge
dependencies:
- python=3.8
- python=3.9
- ipykernel
- echopype
- dask
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10"] # TODO: add back 3.11 once parsed2zarr is fixed
runs-on: [ubuntu-latest]
experimental: [false]
# TODO: Uncomment when netcdf is unpinned
# include:
# - runs-on: ubuntu-latest
# python-version: "3.11"
# experimental: true
include:
- runs-on: ubuntu-latest
python-version: "3.11"
experimental: true
services:
# TODO: figure out how to update tag when there's a new one
minio:
Expand Down Expand Up @@ -81,13 +80,7 @@ jobs:
- name: Running All Tests
shell: bash -l {0}
run: |
pytest -vv -rx --numprocesses=${{ env.NUM_WORKERS }} --max-worker-restart=3 --cov=echopype --cov-report=xml --log-cli-level=WARNING --disable-warnings |& tee ci_${{ matrix.python-version }}_test_log.log
- name: Upload ci test log
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v3
with:
name: ci_test_log
path: ci_${{ matrix.python-version }}_test_log.log
pytest -vv -rx --numprocesses=${{ env.NUM_WORKERS }} --max-worker-restart=3 --cov=echopype --cov-report=xml --log-cli-level=WARNING --disable-warnings
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
21 changes: 7 additions & 14 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10"] # TODO: add back 3.11 once parsed2zarr is fixed
runs-on: [ubuntu-latest]
experimental: [false]
# TODO: Uncomment when netcdf is unpinned
# include:
# - runs-on: ubuntu-latest
# python-version: "3.11"
# experimental: true
include:
- runs-on: ubuntu-latest
python-version: "3.11"
experimental: true
defaults:
run:
shell: bash -l {0}
Expand Down Expand Up @@ -88,17 +87,11 @@ jobs:
- name: Running all Tests
if: contains(github.event.pull_request.title, '[all tests ci]')
run: |
pytest -vvv -rx --numprocesses=${{ env.NUM_WORKERS }} --max-worker-restart=3 --cov=echopype --cov-report=xml --log-cli-level=WARNING --disable-warnings |& tee ci_${{ matrix.python-version }}_test_log.log
pytest -vvv -rx --numprocesses=${{ env.NUM_WORKERS }} --max-worker-restart=3 --cov=echopype --cov-report=xml --log-cli-level=WARNING --disable-warnings
- name: Running Tests
if: ${{ !contains(github.event.pull_request.title, '[all tests ci]') }}
run: |
python .ci_helpers/run-test.py --pytest-args="--log-cli-level=WARNING,-vvv,-rx,--numprocesses=${{ env.NUM_WORKERS }},--max-worker-restart=3,--disable-warnings" --include-cov ${{ steps.files.outputs.added_modified_renamed }} |& tee ci_${{ matrix.python-version }}_test_log.log
- name: Upload ci test log
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v3
with:
name: ci_test_log
path: ci_${{ matrix.python-version }}_test_log.log
python .ci_helpers/run-test.py --pytest-args="--log-cli-level=WARNING,-vvv,-rx,--numprocesses=${{ env.NUM_WORKERS }},--max-worker-restart=3,--disable-warnings" --include-cov ${{ steps.files.outputs.added_modified_renamed }}
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.9"
jobs:
pre_build:
# Generate the Sphinx configuration for this Jupyter Book so it builds.
Expand Down
73 changes: 29 additions & 44 deletions docs/source/data-format-changes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,17 @@
" - Revise the dimensions of each variable to be consistent across instrument types, with dimensions deemed unnecessary dropped from some variables.\n",
"- In the `Provenance` group: Add new attributes `combination_*` to the \"combined\" `EchoData` object, mirroring the convention-based attributes `conversion_*`.\n",
"- In the `Vendor_specific` group: Move filter coefficients and decimation factor from attributes to variables in EK80, to facilitate consistent provenance tracking during `combine_echodata` operations.\n",
"- Improve the presence and use of variable attributes throughout `EchoData` groups.\n",
"\n",
"Version 0.8.0 does not incorporte the capability to read files converted by previous versions of echopype. We recommend using `open_raw` to re-convert the raw data files."
"- Improve the presence and use of variable attributes throughout `EchoData` groups."
]
},
{
"cell_type": "markdown",
"id": "e506a51d",
"metadata": {},
"source": [
":::{Note}\n",
"Version 0.8.0 does not incorporate the capability to read files converted by previous versions of echopype. We recommend using `open_raw` to re-convert the raw data files.\n",
":::"
]
},
{
Expand Down Expand Up @@ -93,29 +101,6 @@
"More details, including Pull Requests and discussions related to these changes, can be found in the [Release notes](whats-new.html#v0-6-0-2022-may-26)."
]
},
{
"cell_type": "markdown",
"id": "touched-concentration",
"metadata": {},
"source": [
"### Convert old files to v0.6.0 format"
]
},
{
"cell_type": "markdown",
"id": "fuzzy-sociology",
"metadata": {},
"source": [
"To convert data files from v0.5.x to v0.6.0 format, simply open the old files and re-save them:\n",
"\n",
"```python\n",
"import echopype as ep\n",
"# open old v0.5.x file and convert it into a v0.6.0-format EchoData object\n",
"ed = ep.open_converted(\"old_format_file.nc\")\n",
"ed.to_netcdf(\"new_format_file.nc\")\n",
"```"
]
},
{
"cell_type": "markdown",
"id": "stone-trash",
Expand Down Expand Up @@ -288,7 +273,7 @@
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '';\n",
" content: '\u25ba';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
Expand All @@ -299,7 +284,7 @@
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '';\n",
" content: '\u25bc';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
Expand Down Expand Up @@ -663,7 +648,7 @@
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '';\n",
" content: '\u25ba';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
Expand All @@ -674,7 +659,7 @@
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '';\n",
" content: '\u25bc';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
Expand Down Expand Up @@ -1045,7 +1030,7 @@
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '';\n",
" content: '\u25ba';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
Expand All @@ -1056,7 +1041,7 @@
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '';\n",
" content: '\u25bc';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
Expand Down Expand Up @@ -1829,7 +1814,7 @@
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '';\n",
" content: '\u25ba';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
Expand All @@ -1840,7 +1825,7 @@
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '';\n",
" content: '\u25bc';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
Expand Down Expand Up @@ -2203,7 +2188,7 @@
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '';\n",
" content: '\u25ba';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
Expand All @@ -2214,7 +2199,7 @@
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '';\n",
" content: '\u25bc';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
Expand Down Expand Up @@ -2574,7 +2559,7 @@
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '';\n",
" content: '\u25ba';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
Expand All @@ -2585,7 +2570,7 @@
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '';\n",
" content: '\u25bc';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
Expand Down Expand Up @@ -2946,7 +2931,7 @@
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '';\n",
" content: '\u25ba';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
Expand All @@ -2957,7 +2942,7 @@
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '';\n",
" content: '\u25bc';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
Expand Down Expand Up @@ -3439,7 +3424,7 @@
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '';\n",
" content: '\u25ba';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
Expand All @@ -3450,7 +3435,7 @@
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '';\n",
" content: '\u25bc';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
Expand Down Expand Up @@ -3800,7 +3785,7 @@
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '';\n",
" content: '\u25ba';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
Expand All @@ -3811,7 +3796,7 @@
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '';\n",
" content: '\u25bc';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
Expand Down
Loading

0 comments on commit 3b69eae

Please sign in to comment.