Skip to content

Commit 9cd78c9

Browse files
Merge remote-tracking branch 'upstream/master' into rwp_typing
2 parents d81d4fa + d181813 commit 9cd78c9

20 files changed

Lines changed: 181 additions & 158 deletions

‎.github/workflows/build_latest.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
pushd pnetcdf-${PNETCDF_VERSION}
3636
./configure --prefix $NETCDF_DIR --enable-shared --disable-fortran --disable-cxx
3737
make -j 2
38-
make install
38+
sudo make install
3939
popd
4040
echo "Download and build netCDF version ${NETCDF_VERSION}"
4141
wget https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
@@ -46,7 +46,7 @@ jobs:
4646
export LIBS="-lhdf5_mpich_hl -lhdf5_mpich -lm -lz"
4747
./configure --prefix $NETCDF_DIR --enable-netcdf-4 --enable-shared --enable-dap --enable-parallel4 $NETCDF_EXTRA_CONFIG
4848
make -j 2
49-
make install
49+
sudo make install
5050
popd
5151
5252
# - name: The job has failed

‎.github/workflows/build_master.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
autoreconf -i
3636
./configure --prefix $NETCDF_DIR --enable-netcdf-4 --enable-shared --enable-dap --enable-parallel4
3737
make -j 2
38-
make install
38+
sudo make install
3939
popd
4040
4141
# - name: The job has failed

‎.github/workflows/build_old.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
env:
88
PNETCDF_VERSION: 1.12.1
9-
NETCDF_VERSION: 4.8.1
9+
NETCDF_VERSION: 4.7.4
1010
NETCDF_DIR: ${{ github.workspace }}/..
1111
NETCDF_EXTRA_CONFIG: --enable-pnetcdf
1212
CC: mpicc.mpich
@@ -35,18 +35,19 @@ jobs:
3535
pushd pnetcdf-${PNETCDF_VERSION}
3636
./configure --prefix $NETCDF_DIR --enable-shared --disable-fortran --disable-cxx
3737
make -j 2
38-
make install
38+
sudo make install
3939
popd
4040
echo "Download and build netCDF version ${NETCDF_VERSION}"
41-
wget https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
41+
#wget https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
42+
wget https://www.gfd-dennou.org/arch/netcdf/unidata-mirror/netcdf-c-${NETCDF_VERSION}.tar.gz
4243
tar -xzf netcdf-c-${NETCDF_VERSION}.tar.gz
4344
pushd netcdf-c-${NETCDF_VERSION}
4445
export CPPFLAGS="-I/usr/include/hdf5/mpich -I${NETCDF_DIR}/include"
4546
export LDFLAGS="-L${NETCDF_DIR}/lib"
4647
export LIBS="-lhdf5_mpich_hl -lhdf5_mpich -lm -lz"
4748
./configure --prefix $NETCDF_DIR --enable-netcdf-4 --enable-shared --enable-dap --enable-parallel4 $NETCDF_EXTRA_CONFIG
4849
make -j 2
49-
make install
50+
sudo make install
5051
popd
5152
5253
# - name: The job has failed

‎.github/workflows/cibuildwheel.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
echo "Setting CIBW_SKIP=$CIBW_SKIP"
9393
9494
- name: "Building ${{ matrix.os }} (${{ matrix.arch }}) wheels"
95-
uses: pypa/cibuildwheel@v2.19.2
95+
uses: pypa/cibuildwheel@v2.21.3
9696
env:
9797
CIBW_SKIP: ${{ env.CIBW_SKIP }}
9898
CIBW_ARCHS: ${{ matrix.arch }}
@@ -107,8 +107,6 @@ jobs:
107107
CIBW_TEST_COMMAND: >
108108
python -c "import netCDF4; print(f'netCDF4 v{netCDF4.__version__}')"
109109
&& pytest -s -rxs -v {project}/test
110-
&& URL="https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc"
111-
&& python -c "from netCDF4 import Dataset; nc=Dataset(\"${URL}\"); print(nc)"
112110
113111
- uses: actions/upload-artifact@v4
114112
with:
@@ -135,7 +133,7 @@ jobs:
135133
python-version: 3.x
136134

137135
- name: Setup Micromamba Python ${{ matrix.python-version }}
138-
uses: mamba-org/setup-micromamba@v1
136+
uses: mamba-org/setup-micromamba@v2
139137
with:
140138
environment-name: build
141139
init-shell: bash

‎.github/workflows/miniconda.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
os: [windows-latest, ubuntu-latest, macos-latest]
1717
platform: [x64, x32]
1818
exclude:
19-
- os: macos-latest
19+
- os: macos-latest
2020
platform: x32
2121
fail-fast: false
2222
defaults:
@@ -29,7 +29,7 @@ jobs:
2929
submodules: true
3030

3131
- name: Setup Micromamba
32-
uses: mamba-org/setup-micromamba@v1
32+
uses: mamba-org/setup-micromamba@v2
3333
with:
3434
environment-name: TEST
3535
init-shell: bash
@@ -63,13 +63,13 @@ jobs:
6363
submodules: true
6464

6565
- name: Setup Micromamba
66-
uses: mamba-org/setup-micromamba@v1
66+
uses: mamba-org/setup-micromamba@v2
6767
with:
6868
environment-name: TEST
6969
init-shell: bash
7070
create-args: >-
7171
python=${{ matrix.python-version }}
72-
numpy cython pip pytest mpi4py hdf5=*=mpi* libnetcdf=*=mpi* cftime zlib certifi typing-extensions
72+
numpy cython pip pytest openmpi mpi4py hdf5=*=mpi* libnetcdf=*=mpi* cftime zlib certifi typing-extensions
7373
--channel conda-forge
7474
7575
- name: Install netcdf4-python with mpi
@@ -82,7 +82,7 @@ jobs:
8282
run: |
8383
cd test && python run_all.py
8484
cd ../examples
85-
export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH"
85+
export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH"
8686
which mpirun
8787
mpirun --version
8888
mpirun -np 4 --oversubscribe python mpi_example.py # for openmpi

‎Changelog‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
===============================
33
* add static type hints (PR #1302)
44
* Expose nc_rc_set, nc_rc_get (via rc_set, rc_get module functions). (PR #1348)
5+
* Add Variable.get_fill_value and allow `fill_value='default'` to
6+
set `_FillValue` using default fill values. (issue #1374, PR #1375).
7+
* Fix NETCDF3 endian error (issue #1373, PR #1355).
58

69
version 1.7.1 (tag v1.7.1rel)
710
===============================
@@ -22,7 +25,7 @@
2225

2326
version 1.6.5 (tag v1.6.5rel)
2427
===============================
25-
* fix for issue #1271 (mask ignored if bool MA assinged to uint8 var)
28+
* fix for issue #1271 (mask ignored if bool MA assigned to uint8 var)
2629
* include information on specific object when reporting errors from netcdf-c
2730
* python 3.12 wheels added, support for python 3.7 removed.
2831

@@ -341,7 +344,7 @@
341344
* Fix for auto scaling and masking when _Unsigned attribute set (create
342345
view as unsigned type after scaling and masking). Issue #671.
343346
* Always mask values outside valid_min, valid_max (not just when
344-
missing_value attribue present). Issue #672.
347+
missing_value attribute present). Issue #672.
345348
* Fix setup.py so pip install doesn't fail if cython not installed.
346349
setuptools >= 18.0 now required for installation (Issue #666).
347350

@@ -415,7 +418,7 @@
415418
reading, a vlen string array attribute is returned as a list of
416419
strings. To write, use var.setncattr_string("name", ["two", "strings"]).)
417420
* Fix for issue #596 - julian day calculations wrong for negative years,
418-
caused incorrect rountrip num2date(date2num(date)) roundtrip for dates with year
421+
caused incorrect roundtrip num2date(date2num(date)) roundtrip for dates with year
419422
< 0.
420423
* Make sure negative years work in utime.num2date (issue #596).
421424
* raise NotImplementedError when trying to pickle Dataset, Variable,
@@ -958,7 +961,7 @@
958961
lib after the 4.2 release). Controlled by kwarg 'diskless' to
959962
netCDF4.Dataset (default False). diskless=True when creating a file
960963
results in a file that exists only in memory, closing the file
961-
makes the data disapper, except if persist=True keyword given in
964+
makes the data disappear, except if persist=True keyword given in
962965
which case it is persisted to a disk file on close. diskless=True
963966
when opening a file creates an in-memory copy of the file for faster access.
964967

@@ -1196,7 +1199,7 @@ version 0.8.1 (svn revision 744)
11961199

11971200
* Experimental variable-length (vlen) data type support added.
11981201

1199-
* changes to accomodate compound types in netcdf-4.1-beta snapshots.
1202+
* changes to accommodate compound types in netcdf-4.1-beta snapshots.
12001203
Compound types now work correctly for snapshots >= 20090603.
12011204

12021205
* Added __len__ method and 'size' property to Variable class.
@@ -1207,7 +1210,7 @@ version 0.8.1 (svn revision 744)
12071210

12081211
* Fixed bug occurring when indexing with a numpy array of length 1.
12091212

1210-
* Fixed bug that occured when -1 was used as a variable index.
1213+
* Fixed bug that occurred when -1 was used as a variable index.
12111214

12121215
* enabled 'shared access' mode for NETCDF3 formatted files (mode='ws',
12131216
'r+s' or 'as'). Writes in shared mode are unbuffered, which can
@@ -1376,7 +1379,7 @@ version 0.7.3 (svn revision 501)
13761379
to work as slice indices.
13771380

13781381
* (netCDF4_classic only) try to make sure file is not left in 'define mode'
1379-
when execption is raised.
1382+
when exception is raised.
13801383

13811384
* if slicing a variable results in a array with shape (1,), just return
13821385
a scalar (except for compound types).

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For details on the latest updates, see the [Changelog](https://github.com/Unidat
1515
06/13/2024: Version [1.7.0](https://pypi.python.org/pypi/netCDF4/1.7.0) released. Add support for complex numbers via `auto_complex` keyword to `Dataset` ([PR #1295](https://github.com/Unidata/netcdf4-python/pull/1295))
1616

1717
10/20/2023: Version [1.6.5](https://pypi.python.org/pypi/netCDF4/1.6.5) released.
18-
Fix for issue #1271 (mask ignored if bool MA assinged to uint8 var),
18+
Fix for issue #1271 (mask ignored if bool MA assigned to uint8 var),
1919
support for python 3.12 (removal of python 3.7 support), more
2020
informative error messages.
2121

‎README.wheels.md‎

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

0 commit comments

Comments
 (0)