Skip to content

Commit 3b69eae

Browse files
authored
Merge pull request #1157 from OSOceanAcoustics/dev
Release/v0.8.1
2 parents 254ee10 + 09e2705 commit 3b69eae

24 files changed

+17005
-16887
lines changed

.ci_helpers/py3.8.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.ci_helpers/user_environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: echopype
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.8
5+
- python=3.9
66
- ipykernel
77
- echopype
88
- dask

.github/workflows/build.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
python-version: ["3.8", "3.9", "3.10"]
24+
python-version: ["3.9", "3.10"] # TODO: add back 3.11 once parsed2zarr is fixed
2525
runs-on: [ubuntu-latest]
2626
experimental: [false]
27-
# TODO: Uncomment when netcdf is unpinned
28-
# include:
29-
# - runs-on: ubuntu-latest
30-
# python-version: "3.11"
31-
# experimental: true
27+
include:
28+
- runs-on: ubuntu-latest
29+
python-version: "3.11"
30+
experimental: true
3231
services:
3332
# TODO: figure out how to update tag when there's a new one
3433
minio:
@@ -81,13 +80,7 @@ jobs:
8180
- name: Running All Tests
8281
shell: bash -l {0}
8382
run: |
84-
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
85-
- name: Upload ci test log
86-
if: ${{ success() || failure() }}
87-
uses: actions/upload-artifact@v3
88-
with:
89-
name: ci_test_log
90-
path: ci_${{ matrix.python-version }}_test_log.log
83+
pytest -vv -rx --numprocesses=${{ env.NUM_WORKERS }} --max-worker-restart=3 --cov=echopype --cov-report=xml --log-cli-level=WARNING --disable-warnings
9184
- name: Upload code coverage to Codecov
9285
uses: codecov/codecov-action@v3
9386
with:

.github/workflows/pr.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ["3.8", "3.9", "3.10"]
20+
python-version: ["3.9", "3.10"] # TODO: add back 3.11 once parsed2zarr is fixed
2121
runs-on: [ubuntu-latest]
2222
experimental: [false]
23-
# TODO: Uncomment when netcdf is unpinned
24-
# include:
25-
# - runs-on: ubuntu-latest
26-
# python-version: "3.11"
27-
# experimental: true
23+
include:
24+
- runs-on: ubuntu-latest
25+
python-version: "3.11"
26+
experimental: true
2827
defaults:
2928
run:
3029
shell: bash -l {0}
@@ -88,17 +87,11 @@ jobs:
8887
- name: Running all Tests
8988
if: contains(github.event.pull_request.title, '[all tests ci]')
9089
run: |
91-
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
90+
pytest -vvv -rx --numprocesses=${{ env.NUM_WORKERS }} --max-worker-restart=3 --cov=echopype --cov-report=xml --log-cli-level=WARNING --disable-warnings
9291
- name: Running Tests
9392
if: ${{ !contains(github.event.pull_request.title, '[all tests ci]') }}
9493
run: |
95-
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
96-
- name: Upload ci test log
97-
if: ${{ success() || failure() }}
98-
uses: actions/upload-artifact@v3
99-
with:
100-
name: ci_test_log
101-
path: ci_${{ matrix.python-version }}_test_log.log
94+
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 }}
10295
- name: Upload code coverage to Codecov
10396
uses: codecov/codecov-action@v3
10497
with:

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
tools:
12-
python: "3.8"
12+
python: "3.9"
1313
jobs:
1414
pre_build:
1515
# Generate the Sphinx configuration for this Jupyter Book so it builds.

docs/source/data-format-changes.ipynb

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,17 @@
4141
" - Revise the dimensions of each variable to be consistent across instrument types, with dimensions deemed unnecessary dropped from some variables.\n",
4242
"- In the `Provenance` group: Add new attributes `combination_*` to the \"combined\" `EchoData` object, mirroring the convention-based attributes `conversion_*`.\n",
4343
"- 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",
44-
"- Improve the presence and use of variable attributes throughout `EchoData` groups.\n",
45-
"\n",
46-
"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."
44+
"- Improve the presence and use of variable attributes throughout `EchoData` groups."
45+
]
46+
},
47+
{
48+
"cell_type": "markdown",
49+
"id": "e506a51d",
50+
"metadata": {},
51+
"source": [
52+
":::{Note}\n",
53+
"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",
54+
":::"
4755
]
4856
},
4957
{
@@ -93,29 +101,6 @@
93101
"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)."
94102
]
95103
},
96-
{
97-
"cell_type": "markdown",
98-
"id": "touched-concentration",
99-
"metadata": {},
100-
"source": [
101-
"### Convert old files to v0.6.0 format"
102-
]
103-
},
104-
{
105-
"cell_type": "markdown",
106-
"id": "fuzzy-sociology",
107-
"metadata": {},
108-
"source": [
109-
"To convert data files from v0.5.x to v0.6.0 format, simply open the old files and re-save them:\n",
110-
"\n",
111-
"```python\n",
112-
"import echopype as ep\n",
113-
"# open old v0.5.x file and convert it into a v0.6.0-format EchoData object\n",
114-
"ed = ep.open_converted(\"old_format_file.nc\")\n",
115-
"ed.to_netcdf(\"new_format_file.nc\")\n",
116-
"```"
117-
]
118-
},
119104
{
120105
"cell_type": "markdown",
121106
"id": "stone-trash",
@@ -288,7 +273,7 @@
288273
"\n",
289274
".xr-section-summary-in + label:before {\n",
290275
" display: inline-block;\n",
291-
" content: '';\n",
276+
" content: '\u25ba';\n",
292277
" font-size: 11px;\n",
293278
" width: 15px;\n",
294279
" text-align: center;\n",
@@ -299,7 +284,7 @@
299284
"}\n",
300285
"\n",
301286
".xr-section-summary-in:checked + label:before {\n",
302-
" content: '';\n",
287+
" content: '\u25bc';\n",
303288
"}\n",
304289
"\n",
305290
".xr-section-summary-in:checked + label > span {\n",
@@ -663,7 +648,7 @@
663648
"\n",
664649
".xr-section-summary-in + label:before {\n",
665650
" display: inline-block;\n",
666-
" content: '';\n",
651+
" content: '\u25ba';\n",
667652
" font-size: 11px;\n",
668653
" width: 15px;\n",
669654
" text-align: center;\n",
@@ -674,7 +659,7 @@
674659
"}\n",
675660
"\n",
676661
".xr-section-summary-in:checked + label:before {\n",
677-
" content: '';\n",
662+
" content: '\u25bc';\n",
678663
"}\n",
679664
"\n",
680665
".xr-section-summary-in:checked + label > span {\n",
@@ -1045,7 +1030,7 @@
10451030
"\n",
10461031
".xr-section-summary-in + label:before {\n",
10471032
" display: inline-block;\n",
1048-
" content: '';\n",
1033+
" content: '\u25ba';\n",
10491034
" font-size: 11px;\n",
10501035
" width: 15px;\n",
10511036
" text-align: center;\n",
@@ -1056,7 +1041,7 @@
10561041
"}\n",
10571042
"\n",
10581043
".xr-section-summary-in:checked + label:before {\n",
1059-
" content: '';\n",
1044+
" content: '\u25bc';\n",
10601045
"}\n",
10611046
"\n",
10621047
".xr-section-summary-in:checked + label > span {\n",
@@ -1829,7 +1814,7 @@
18291814
"\n",
18301815
".xr-section-summary-in + label:before {\n",
18311816
" display: inline-block;\n",
1832-
" content: '';\n",
1817+
" content: '\u25ba';\n",
18331818
" font-size: 11px;\n",
18341819
" width: 15px;\n",
18351820
" text-align: center;\n",
@@ -1840,7 +1825,7 @@
18401825
"}\n",
18411826
"\n",
18421827
".xr-section-summary-in:checked + label:before {\n",
1843-
" content: '';\n",
1828+
" content: '\u25bc';\n",
18441829
"}\n",
18451830
"\n",
18461831
".xr-section-summary-in:checked + label > span {\n",
@@ -2203,7 +2188,7 @@
22032188
"\n",
22042189
".xr-section-summary-in + label:before {\n",
22052190
" display: inline-block;\n",
2206-
" content: '';\n",
2191+
" content: '\u25ba';\n",
22072192
" font-size: 11px;\n",
22082193
" width: 15px;\n",
22092194
" text-align: center;\n",
@@ -2214,7 +2199,7 @@
22142199
"}\n",
22152200
"\n",
22162201
".xr-section-summary-in:checked + label:before {\n",
2217-
" content: '';\n",
2202+
" content: '\u25bc';\n",
22182203
"}\n",
22192204
"\n",
22202205
".xr-section-summary-in:checked + label > span {\n",
@@ -2574,7 +2559,7 @@
25742559
"\n",
25752560
".xr-section-summary-in + label:before {\n",
25762561
" display: inline-block;\n",
2577-
" content: '';\n",
2562+
" content: '\u25ba';\n",
25782563
" font-size: 11px;\n",
25792564
" width: 15px;\n",
25802565
" text-align: center;\n",
@@ -2585,7 +2570,7 @@
25852570
"}\n",
25862571
"\n",
25872572
".xr-section-summary-in:checked + label:before {\n",
2588-
" content: '';\n",
2573+
" content: '\u25bc';\n",
25892574
"}\n",
25902575
"\n",
25912576
".xr-section-summary-in:checked + label > span {\n",
@@ -2946,7 +2931,7 @@
29462931
"\n",
29472932
".xr-section-summary-in + label:before {\n",
29482933
" display: inline-block;\n",
2949-
" content: '';\n",
2934+
" content: '\u25ba';\n",
29502935
" font-size: 11px;\n",
29512936
" width: 15px;\n",
29522937
" text-align: center;\n",
@@ -2957,7 +2942,7 @@
29572942
"}\n",
29582943
"\n",
29592944
".xr-section-summary-in:checked + label:before {\n",
2960-
" content: '';\n",
2945+
" content: '\u25bc';\n",
29612946
"}\n",
29622947
"\n",
29632948
".xr-section-summary-in:checked + label > span {\n",
@@ -3439,7 +3424,7 @@
34393424
"\n",
34403425
".xr-section-summary-in + label:before {\n",
34413426
" display: inline-block;\n",
3442-
" content: '';\n",
3427+
" content: '\u25ba';\n",
34433428
" font-size: 11px;\n",
34443429
" width: 15px;\n",
34453430
" text-align: center;\n",
@@ -3450,7 +3435,7 @@
34503435
"}\n",
34513436
"\n",
34523437
".xr-section-summary-in:checked + label:before {\n",
3453-
" content: '';\n",
3438+
" content: '\u25bc';\n",
34543439
"}\n",
34553440
"\n",
34563441
".xr-section-summary-in:checked + label > span {\n",
@@ -3800,7 +3785,7 @@
38003785
"\n",
38013786
".xr-section-summary-in + label:before {\n",
38023787
" display: inline-block;\n",
3803-
" content: '';\n",
3788+
" content: '\u25ba';\n",
38043789
" font-size: 11px;\n",
38053790
" width: 15px;\n",
38063791
" text-align: center;\n",
@@ -3811,7 +3796,7 @@
38113796
"}\n",
38123797
"\n",
38133798
".xr-section-summary-in:checked + label:before {\n",
3814-
" content: '';\n",
3799+
" content: '\u25bc';\n",
38153800
"}\n",
38163801
"\n",
38173802
".xr-section-summary-in:checked + label > span {\n",

0 commit comments

Comments
 (0)