49 Commits

Author SHA256 Message Date
013e6bfc45 Accepting request 1274714 from devel:languages:python:numeric
- update to 1.7.2:
  * add static type hints (PRs #1302, #1349)
  * Expose nc_rc_set, nc_rc_get (via rc_set, rc_get module
    functions). (PR #1348)
  * Add Variable.get_fill_value and allow `fill_value='default'`
    to set `_FillValue` attribute using default fill values.
  * Fix NETCDF3 endian error (issue #1373, PR #1355).

OBS-URL: https://build.opensuse.org/request/show/1274714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=25
2025-05-06 14:41:38 +00:00
ce59306323 Accepting request 1271219 from devel:languages:python:numeric
- Support both lowercased and unnormalized metadata directory names.

OBS-URL: https://build.opensuse.org/request/show/1271219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=24
2025-04-22 15:28:20 +00:00
3568e2983d - Support both lowercased and unnormalized metadata directory names.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=47
2025-04-22 01:40:34 +00:00
6955f0d719 Accepting request 1219471 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1219471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=23
2024-10-30 16:39:40 +00:00
88dc27c594 - update to 1.7.1.post2:
* ci fixes
  * make sure arrays are masked that are not filled when auto_fill is off
 * automatically create views of compound types with character arrays as
 * always return masked array by default, even if there are no
 * always search for HDF5 headers when building, even when nc-config is used
   encodings (such as cp1252 on windows) can be handled in Dataset
   such as var[:,::2,::2,::2])), so a variable method use_nc_get_vars was added.
   segfaults can occur. Fix required raising them minimum numpy requirement
    data. When writing the data, stringtochar is used to convert a numpy
  * fix some test failures on big endian PPC64 that were due to
  * raise warning for HDF5 1.10.x (issue #549), since backwards
    fails.  raise IOError instead of RuntimeError when nc_create or
    (pull request #543).
    mysterious segfaults on CentOS6 (issue #506). Segfaults
  * Potential memory leaks fixed by freeing string pointers internally allocated
  * invoke str on filename argument to Dataset constructor, so pathlib
  * dates do not have to be contiguous, i.e. can be before and after the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=45
2024-09-30 13:11:36 +00:00
7f83e35015 Accepting request 1195979 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1195979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=22
2024-08-26 20:10:23 +00:00
678fb2fa16 When do you stop this pinning nonsense?
- Revert numpy<2 restriction. It is explicitly supported.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=43
2024-08-26 02:53:12 +00:00
99d76840eb Accepting request 1190822 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1190822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=21
2024-08-01 20:04:46 +00:00
a3312bb90d Accepting request 1189933 from home:cboltz:branches:devel:languages:python:numeric
- broken test tst_compoundvar.py was renamed to test_compoundvar.py

OBS-URL: https://build.opensuse.org/request/show/1189933
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=41
2024-07-31 21:55:20 +00:00
289f3e9caa Accepting request 1186092 from devel:languages:python:numeric
- Update to 1.7.1.post1:
 * include nc_complex source code from v0.2.0 tag
 * add aarch64 wheels
 * add support for complex numbers via `auto_complex` keyword to `Dataset`
 * fix for deprecated Cython `DEF` and `IF` statements using compatibility
   header with shims for unavailable functionality
 * add support for MS-MPI `MPI_Message` detection
 * fix surprising result when indexing vlen str with non-contiguous
   indices.
 * Fix bug in set_collective
- Remove upper bound on Cython.
- Restrict numpy to < 2.
- Drop patch 1322.patch, included upstream.

OBS-URL: https://build.opensuse.org/request/show/1186092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=20
2024-07-08 17:08:48 +00:00
13a85a7cf9 - Update to 1.7.1.post1:
* include nc_complex source code from v0.2.0 tag
 * add aarch64 wheels
 * add support for complex numbers via `auto_complex` keyword to `Dataset`
 * fix for deprecated Cython `DEF` and `IF` statements using compatibility
   header with shims for unavailable functionality
 * add support for MS-MPI `MPI_Message` detection
 * fix surprising result when indexing vlen str with non-contiguous
   indices.
 * Fix bug in set_collective
- Remove upper bound on Cython.
- Restrict numpy to < 2.
- Drop patch 1322.patch, included upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=39
2024-07-08 07:20:29 +00:00
1950b57898 Accepting request 1179163 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1179163
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=19
2024-06-07 13:05:15 +00:00
64ca7478db Accepting request 1179034 from home:dimstar:Factory
- Re-download 1322.patch: ensure it matches the contant as provided
  the URL specified in the spec file.

OBS-URL: https://build.opensuse.org/request/show/1179034
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=37
2024-06-07 09:27:50 +00:00
6e89d3d527 - Clean up the SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=36
2024-05-29 21:18:28 +00:00
e86d080873 Accepting request 1177610 from home:glaubitz:branches:devel:languages:python:numeric
- Cherry-pick upstream patch to fix build with GCC 14
  * https://github.com/Unidata/netcdf4-python/pull/1322.patch

OBS-URL: https://build.opensuse.org/request/show/1177610
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=35
2024-05-29 21:08:10 +00:00
82ad4a137f Accepting request 1139718 from devel:languages:python:numeric
- Disable broken tests for s390x, gh#Unidata/netcdf4-python#1124,
  bsc#1218606

OBS-URL: https://build.opensuse.org/request/show/1139718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=18
2024-01-18 20:54:06 +00:00
55164dac06 - Disable broken tests for s390x, gh#Unidata/netcdf4-python#1124,
bsc#1218606

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=33
2024-01-18 13:32:34 +00:00
517e1552e5 - Disable broken tests for s390x, gh#Unidata/netcdf4-python#1124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=32
2024-01-18 13:27:08 +00:00
581e1c371b Accepting request 1131716 from devel:languages:python:numeric
- update to 1.6.5:
  * fix for issue #1271 (mask ignored if bool MA assinged to
    uint8 var)
  * include information on specific object when reporting errors
    from netcdf-c

OBS-URL: https://build.opensuse.org/request/show/1131716
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=17
2023-12-08 21:32:24 +00:00
d10ab42e93 - update to 1.6.5:
* fix for issue #1271 (mask ignored if bool MA assinged to
    uint8 var)
  * include information on specific object when reporting errors
    from netcdf-c

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=30
2023-12-07 22:10:58 +00:00
38f4fdd363 Accepting request 1110189 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1110189
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=16
2023-09-11 19:21:57 +00:00
0c505d1f61 Accepting request 1110158 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.4
 * set path to SSL certificates internally, so https DAP URLs work
   with wheels (issue #1246, requires nc_rc_set function available
   starting with netcdf-c 4.9.1, plus bugfix in netcdf-c PR #2690).
 * Added certifi as a dependency.
 * Added `isopen` method to `MFDataset` object to check if
   underlying files are open.
- Version 1.6.3
 * Use ``nc_put_vars`` for strided writes for netcdf-c >= 4.6.2
   (issue #1222).
 * _Unsigned="false" should be same as not having _Unsigned set
   (issue #1232). _Unsigned now must be set to "true" or "True" for
   variable to be interpreted as unsigned, instead of just having
   _Unsigned be set (to anything).

OBS-URL: https://build.opensuse.org/request/show/1110158
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=28
2023-09-11 04:57:26 +00:00
8d710c1649 Accepting request 1056768 from devel:languages:python:numeric
- update to 1.6.2:
 * Added ``netCDF4.__has_set_alignment__`` property to help identify if the
   underlying netcdf4 supports setting the HDF5 alignment.
 * Slicing multi-dimensional variables with an all False boolean index array
   now returns an empty numpy array (instead of raising an exception - issue #1197).
   Behavior now consistent with numpy slicing.
 * fix problem with compiling using netcdf-c < 4.9.0 (issue #1209)

OBS-URL: https://build.opensuse.org/request/show/1056768
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=15
2023-01-07 16:19:59 +00:00
3831b8f0e1 - update to 1.6.2:
* Added ``netCDF4.__has_set_alignment__`` property to help identify if the
   underlying netcdf4 supports setting the HDF5 alignment.
 * Slicing multi-dimensional variables with an all False boolean index array
   now returns an empty numpy array (instead of raising an exception - issue #1197).
   Behavior now consistent with numpy slicing.
 * fix problem with compiling using netcdf-c < 4.9.0 (issue #1209)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=26
2023-01-07 12:27:15 +00:00
4b136770a8 Accepting request 1004592 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1004592
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=14
2022-09-19 14:03:43 +00:00
72c6d399a8 Accepting request 1004220 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/1004220
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=24
2022-09-19 07:38:55 +00:00
af19a0e950 Accepting request 988326 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/988326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=13
2022-07-11 17:09:46 +00:00
75d2f18243 Accepting request 988228 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/988228
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=22
2022-07-11 09:49:34 +00:00
1e429e98a2 Accepting request 953173 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/953173
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=12
2022-02-10 22:12:20 +00:00
6c2dfc7d6c Accepting request 953077 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/953077
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=21
2022-02-10 12:42:29 +00:00
Richard Brown
918807d778 Accepting request 874190 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/874190
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=11
2021-02-22 13:40:06 +00:00
7d057bb808 Accepting request 874186 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.5.6
  * change numpy.bool to numpy.bool_ and numpy.float to
    numpy.float_ (float and bool are deprecated in numpy 1.20,
    issue #1065)
 * clean up docstrings so that they work with latest pdoc.
 * update cython numpy API to remove deprecation warnings.
 * Add "fromcdl" and "tocdl" Dataset methods for import/export of
   CDLvia ncdump/ncgen called externally via the subprocess module
   (issue #1078).
 * remove python 2.7 support.
 * broadcast data (if possible) to conform to variable shape when
   writing to a slice (issue #1083).
- Release 1.5.5
 * have setup.py always try use nc-config first to find paths to
   netcdf and hdf5 libraries and headers. Don't use pkg-config to
   find HDF5 if HDF5 env vars are set (or read from setup.cfg).
 * Change MIT license text to standard OSI wording (PR #1046).
- Skip python36 build: With NumPy 1.20, python36-numpy is no
  longer available in Tumbleweed (NEP 29)

OBS-URL: https://build.opensuse.org/request/show/874186
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=19
2021-02-21 22:50:08 +00:00
fe551ac771 Accepting request 854127 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/854127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=10
2020-12-09 21:21:42 +00:00
708db6d8b2 Accepting request 853796 from home:dstoecker:branches:devel:languages:python:numeric
- Drop wrong hdf4 requirements

HDF4 is outdated and not used (it would need to be explicitely enabled for the requirements to make sense), but hdf4 doesn't build for Factory anymore.

OBS-URL: https://build.opensuse.org/request/show/853796
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=17
2020-12-08 19:56:56 +00:00
7e3731e59f Accepting request 822784 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/822784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=9
2020-07-27 15:41:00 +00:00
Tomáš Chvátal
9b437d38b8 Accepting request 822779 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/822779
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=15
2020-07-25 17:34:38 +00:00
403f989c44 Accepting request 822415 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/822415
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=8
2020-07-24 08:06:58 +00:00
Tomáš Chvátal
fe089eb04e Accepting request 822381 from home:michel_mno:branches:devel:languages:python:numeric
-  Add _constraints with default 5G min disk space

OBS-URL: https://build.opensuse.org/request/show/822381
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=13
2020-07-23 13:18:39 +00:00
86f8c25f1c Accepting request 808041 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/808041
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=7
2020-05-26 15:20:21 +00:00
Tomáš Chvátal
d393741ae3 Accepting request 807984 from home:pgajdos:python
submit

OBS-URL: https://build.opensuse.org/request/show/807984
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=11
2020-05-21 18:33:26 +00:00
927258a750 Accepting request 749755 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/749755
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=6
2019-11-20 09:28:27 +00:00
Todd R
b93d1d84d3 Accepting request 749754 from home:TheBlackCat:branches:devel:languages:python:numeric
Update to 1.5.3

OBS-URL: https://build.opensuse.org/request/show/749754
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=9
2019-11-19 20:48:58 +00:00
ca711dc416 Accepting request 736040 from devel:languages:python:numeric
- Update to 1.5.2:
 * fix for scaling bug when _Unsigned attribute is set and byteorder of data
   does not match native byteorder (issue #930).
 * revise documentation for Python 3 (issue #946).
 * establish support for Python 2.7, 3.5, 3.6 and 3.7 (issue #948).
 * use dict built-in instead of OrderedDict for Python 3.7+
   (pull request #955).
 * remove underline ANSI in Dataset string representation (pull request #956).
 * remove newlines from string representation (pull request #960).
 * fix for issue #957 (size of scalar var is a float since numpy.prod(())=1.0).
 * make sure Variable.setncattr fails to set _FillValue (issue #959).
 * fix detection of parallel HDF5 support with netcdf-c 4.6.1 (issue #964).
- Remove not needed netcdf-disable-broken-test.patch as the bug was
  fixed in netcdf itself

OBS-URL: https://build.opensuse.org/request/show/736040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=5
2019-10-24 21:02:16 +00:00
Tomáš Chvátal
f6e75e17ff - Update to 1.5.2:
* fix for scaling bug when _Unsigned attribute is set and byteorder of data
   does not match native byteorder (issue #930).
 * revise documentation for Python 3 (issue #946).
 * establish support for Python 2.7, 3.5, 3.6 and 3.7 (issue #948).
 * use dict built-in instead of OrderedDict for Python 3.7+
   (pull request #955).
 * remove underline ANSI in Dataset string representation (pull request #956).
 * remove newlines from string representation (pull request #960).
 * fix for issue #957 (size of scalar var is a float since numpy.prod(())=1.0).
 * make sure Variable.setncattr fails to set _FillValue (issue #959).
 * fix detection of parallel HDF5 support with netcdf-c 4.6.1 (issue #964).
- Remove not needed netcdf-disable-broken-test.patch as the bug was
  fixed in netcdf itself

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=7
2019-10-08 09:15:13 +00:00
0e00154e78 Accepting request 707519 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/707519
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=4
2019-06-13 21:01:13 +00:00
Tomáš Chvátal
457e07567c Accepting request 707466 from home:mcalabkova:branches:devel:languages:python:numeric
- Update to 1.5.1.2
  * fix for issue #919  (assigning 2d array to 3d variable with singleton
  first dimension with v[:] = a).
  * minimum numpy changed from 1.9.0 to 1.10.0.
  * fix issue #908 by adding workaround for incorrect value returned
  by nc_inq_var_fill for netcdf-c < 4.5.1.
  * fix bug writing slice to unlimited dimension that is not the first
  (leftmost). Issue #906.
  * make sure data gets converted to type of scale_factor when add_offset=0
  and scale_factor=1 (issue #913).
  * fix for reading empty (NIL) string attributes (issue #915).
  * add read-shared mode (mode='rs'). Significantly speeds up reads of NETCDF3
  files (pull request #902).
  * added support for parallel IO in the classic netcdf-3 formats through the
  pnetcdf library (pull request #897).

OBS-URL: https://build.opensuse.org/request/show/707466
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=5
2019-06-04 12:12:21 +00:00
f6318ca11f Accepting request 686999 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/686999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=3
2019-03-21 08:53:21 +00:00
08b61d4c39 Accepting request 610046 from devel:languages:python
- Add patch netcdf-disable-broken-test.patch
  * This test got "broken" with the new netcdf that fixed another
    problem https://github.com/Unidata/netcdf4-python/issues/752

- Version update to 1.4.0:
 * fixed bug in detection of CDF5 library support in setup.py (pull request
   #736, issue #713).
 * fixed reading of variables with zero-length dimensions in NETCDF3_CLASSIC
   files (issue #743).
 * allow integer-like objects in VLEN slices (not just python ints, issue
   #526, pull request #757).
 * treating _FillValue as a valid_min/valid_max was too surprising, despite
   the fact the thet netcdf docs 'attribute best practices' suggests that
   clients should to this.  Revert this change from issue #576 (issue #761).
 * remove netcdftime, since it is now a separate package. date2num, num2date
   and date2index still importable from netCDF4.
 * fix 'Unreachable code' cython warning (issue #767).
 * Change behavior of string attributes so that nc.stringatt = ['foo','bar']
   produces an vlen string array attribute in NETCDF4, instead of concatenating
   into a single string ('foobar').  In NETCDF3/NETCDF4_CLASSIC, an IOError
   is now raised, instead of writing 'foobar'. Issue #770.
 * fix loading of enum type names (issue #775).
 * make sure missing_value applies only to scaled short integers if
   auto-scaling is on (issue #777).
 * automatically create views of compound types with character arrays as 
   numpy strings (issue #773).  Can be disabled using
   'set_auto_chartostring(False)'. Numpy structured
   array dtypes with 'SN' string subtypes can now be used to
   define netcdf compound types (they get converted to ('S1',N)
   character array types automatically).

OBS-URL: https://build.opensuse.org/request/show/610046
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=2
2018-05-29 08:29:38 +00:00
c375b27a67 Accepting request 581930 from devel:languages:python
- update to version 1.3.1:
 * add parallel IO capabilities.  netcdf-c and hdf5 must be compiled with MPI
   support, and mpi4py must be installed. To open a file for parallel access,
   use `parallel=True` in `Dataset.__init__` and optionally pass the mpi4py Comm instance
   using the `comm` kwarg and the mpi4py Info instance using the `info` kwarg.
   IO can be toggled between collective and independent using `Variable.set_collective`.
   See `examples/mpi_example.py`. Issue #717, pull request #716.
   Minimum cython dependency bumped from 0.19 to 0.21.
 * Add optional `MFTime` calendar overload to use across all files, for example,
   `'standard'` or `'gregorian'`. If `None` (the default), check that the calendar
   attribute is present on each variable and values are unique across files raising
   a `ValueError` otherwise.
 * Allow _FillValue to be set for vlen string variables (issue #730).
- update to version 1.3.0:
 * always search for HDF5 headers when building, even when nc-config is used 
   (since nc-config does not always include the path to the HDF5 headers).
   Also use H5get_libversion to obtain HDF5 version info instead of
   H5public.h. Fixes issue #677.
 * encoding kwarg added to Dataset.__init__ and Dataset.filepath (default
   is to use sys.getfilesystemencoding()) so that oddball
   encodings (such as cp1252 on windows) can be handled in Dataset 
   filepaths (issue #686).
 * Calls to nc_get_vars are avoided, since nc_get_vars is very slow (issue
   #680).  Strided slices are now converted to multiple calls to
   nc_get_vara.  This speeds up strided slice reads by a factor of 10-100
   (especially for NETCDF4/HDF5 files) in most cases. In some cases, strided reads
   using nc_get_vars are faster (e.g. strided reads over many dimensions
   such as var[:,::2,::2,::2])), so a variable method use_nc_get_vars was added. 
   var.use_nc_get_vars(True) will tell the library to use nc_get_vars instead
   of multiple calls to nc_get_vara, which was the default behaviour previous
   to this change.
 * fix utc offset time zone conversion in netcdftime - it was being done
   exactly backwards (issue #685 - thanks to @pgamez and @mdecker).
 * Fix error message for illegal ellipsis slicing, add test (issue #701).
 * Improve timezone format parsing in netcdftime
 * make sure numpy datatypes used to define CompoundTypes have
   isalignedstruct flag set to True (issue #705), otherwise.
   segfaults can occur. Fix required raising them minimum numpy requirement 
   from 1.7.0 to 1.9.0.
 * ignore missing_value, _FillValue, valid_range, valid_min and valid_max
   when creating masked arrays if attribute cannot be safely
   cast to variable data type (and issue a warning).  When setting
   these attributes don't cast to variable dtype unless it can
   be done safely and issue a warning. Issue #707.
- update to version 1.2.9:
 * Fix for auto scaling and masking when _Unsigned attribute set (create
   view as unsigned type after scaling and masking). Issue #671.
 * Always mask values outside valid_min, valid_max (not just when
   missing_value attribue present).  Issue #672.
- remove check boundary condition
- Implement single-spec version
- Fix source URL.
- Update to version 1.2.8
  * recognize _Unsigned attribute used by netcdf-java to designate unsigned
    integer data stored with a signed integer type in netcdf-3 (issue #656).
  * add Dataset init memory parameter to allow loading a file from memory
    (pull request #652, issues #406 and #295).
  * fix for negative times in num2date (issue #659).
  * fix for failing tests in numpy 1.13 due to changes in numpy.ma (issue #662).
  * Checking for _Encoding attribute for NC_STRING variables, otherwise use
    'utf-8'. 'utf-8' is used everywhere else, 'default_encoding' global module
    variable is no longer used.  getncattr method now takes optional kwarg
    'encoding' (default 'utf-8') so encoding of attributes can be specified
    if desired. If _Encoding is specified for an NC_CHAR ('S1') variable,
    the chartostring utility function is used to convert the array of
    characters to an array of strings with one less dimension (the last
    dimension is interpreted as the length of each string) when reading the
    data. When writing the data, stringtochar is used to convert a numpy 
    array of fixed length strings to an array of characters with one more
    dimension. chartostring and stringtochar now also have an 'encoding' kwarg.
    Automatic conversion to/from character to string arrays can be turned off
    via a new set_auto_chartostring Dataset and Variable method (default
    is True). Addresses issue #654.
  * Cython >= 0.19 now required, _netCDF4.c and _netcdftime.c removed from
    repository.
- Update to version 1.2.7
  * fix for issue #624 (error in conversion to masked array when variable slice
    returns a scalar). This is a regression introduced in 1.2.5 associated
    with support for vector missing_values. Test (tst_masked5.py) added for
    vector missing_values.
  * fix for python 3.6 compatibility (error retrieving character _FillValue attribute,
    issue #626). Test with python 3.6 using travis CI.
- Update to version 1.2.6
  * fix some test failures on big endian PPC64 that were due to 
    errors in byte-swapping logic. Also fixed bug in enum
    code exposed on PPC64 (issue #608).
  * remove support for python 2.6 (it probably still will work for a while
    though).
  * Sometimes checking that data being assigned to a variable has
    an 'ndim' attribute is not sufficient, instead check to see that
    the object supports the buffer interface (issue #613).
  * make get_variables_by_attributes work in MFDataset (issue #610)
    The hack is also applied for set_auto_maskandscale, set_auto_scale,
    set_automask, so these don't have to be duplicated in MFDataset (pull
    request #571).
- Update to version 1.2.5
  * Add MFDataset.set_auto_maskandscale (plus set_auto_scale, set_auto_mask).
    Fixes issue #570.
  * Use valid_min/valid_max/valid_range attributes when defining mask
    (issue #576).  Values outside the valid range are considered to
    be missing when defining the mask.
  * Fix for issue #584 (add support for dates before -4712-1-1 in 360_day
    and 365_day calendars to netcdftime.utime).
  * Fix for issue #593: add support for datetime.timedelta operations
    (adding and subtracting timedelta, subtracting two datetime
    instances to compute time duration between them), implement
    datetime.replace() and datetime.__str__(). datetime.__repr__()
    includes the full state of an instance. Add datetime.calendar.
    datetime comparison operators have full accuracy now.
  * Fix for issue #585 by increasing the size of the buffer used to store the
    filepath.
  * Fix for issue #592: Add support for string array attributes. (When
    reading, a vlen string array attribute is returned as a list of
    strings. To write, use var.setncattr_string("name", ["two", "strings"]).)
  * Fix for issue #596 - julian day calculations wrong for negative years,
    caused incorrect rountrip num2date(date2num(date)) roundtrip for dates with year
    < 0.
  * Make sure negative years work in utime.num2date (issue #596).
  * raise NotImplementedError when trying to pickle Dataset, Variable,
    CompoundType, VLType, EnumType and MFDataset (issue #602).
  * Fix for issue #527: initialize vldata[i].p in Variable._get(...).
- Update to version 1.2.4
  * Fix for issue #554.  It is now ensured that data is in native endian
    byte order before passing to netcdf-c library.  Data read from variable
    with non-native byte order is also byte-swapped, so that dtype remains
    consistent with netcdf variable.  Behavior now consistent with h5py.
  * raise warning for HDF5 1.10.x (issue #549), since backwards 
    incompatible files may be created.
  * raise AttributeError instead of RuntimeError when attribute operation
    fails.  raise IOError instead of RuntimeError when nc_create or 
    nc_open fails (issue #546).
  * Use NamedTemporaryFile instead of deprecated mktemp in tests
    (pull request #543). 
  * add AppVeyor automated windows tests (pull request #540).
- Update to version 1.2.3.1
  * fix bug in setup.py (pull request #539, introduced in issue #518).
- Update to version 1.2.3
  * try to avoid writing NC_STRING attributes if possible, by
    trying to convert unicode strings to ascii and write as NC_CHAR (issue
    #529).  This preserves compatibility with clients (like Matlab) that
    can't deal with NC_STRING attributes. A 'setncattr_string' method
    was added for Dataset and Variable to that users can force attributes
    to be written as NC_STRING if necessary.
  * fix failing tests with numpy 1.11 (issues #521 and #522).
  * fix indentation bug in nc4tonc3 utility (issue #519).
  * add the capability in setup.py to use pkg-config instead of
    nc-config (pull request #518).
  * make sure slices which return scalar masked arrays
    are consistent with numpy.ma (issue #515).
  * add test/tst_cdf5.py and test/tst_filepath.py (to test new
    NETCDF3_64BIT_DATA format and filepath Dataset method).
  * expose netcdftime.__version__ (issue #504).
  * fix potential memory leak in Dataset.filepath in attempt to fix
    mysterious segfaults on CentOS6 (issue #506). Segfaults  
    can apparently still occur on systems like CentOS6 with old versions of glibc.
- Update to version 1.2.2
  * fix failing tests on python 2.6 (issue #497). Change minimum required
    python from 2.5 to 2.6.
  * Potential memory leaks fixed by freeing string pointers internally allocated 
    in netcdf-c using nc_free_string. Also use nc_free_vlens to free space allocated
    for vlens inside netcdf-c (issue #495).
  * invoke str on filename argument to Dataset constructor, so pathlib 
    instances can be used (issue #489).
  * don't use hardwired NC_MAX_DIMS or NC_MAX_VARS internally to allocate space
    for dimension or variable ids.  Instead, find out the number of dims
    and vars and use malloc.  NC_MAX_NAME is still used to allocate space
    for attribute and variable names, since there is no obvious way to
    determine the length of these names.
  * if trying to write a unicode attribute, check to see if it exists
    first and is NC_CHAR, and if so, delete it and recreate it.  Workaround for C
    lib bug discovered in issue #485.
  * support for NETCDF3_64BIT_DATA format supported in netcdf-c 4.4.0.
    Similar to NETCDF3_64BIT (now NETCDF3_64BIT_OFFSET), but includes
    64 bit dimensions and sizes, plus unsigned and 64 bit integer
    data types.
  * make sure chunksize does not exceed dimension size
    (for non-unlimited dimensions) on variable creation (issue #480).
  * add 'size' attribute to Dimension (same as len(d), where
    d is a Dimension instance, issue #477).
  * fix bug in nc3tonc4 with --unpackshort=1 (issue #474).
  * dates do not have to be contiguous, i.e. can be before and after the 
    missing dates in Gregorian calendar (pull request #476).
- Update to version 1.2.1
 * add the capability to slice variables with unsorted integer sequences,
   or integer sequences with duplicates (issue #467). This was done
   by converting boolean array slices to integer array slices internally,
   instead of the other way around.
 * raise TypeError if masked array assigned to a VLEN str variable slice
   (issue #464).
 * Ellipsis now can be used with scalar VLEN str variables (issue #458).
   Slicing of scalar VLEN (non-str) variables now works.
 * Allow non-positive reference years in non-real-world calendars
   (issue #442).
- Update to version 1.2.0
 * Fixes to setup.py for building on windows (issue #460).
 * warnings now issued if file being read contains unsupported
   variables or data types (they were previously being silently
   skipped).
 * added 'get_variables_by_attributes' method (issue #454).
 * check for 'units' attribute in date2index (issue #453).
 * added support for enum types (issue #452).
 * added 'isopen' Dataset method (issue #450).
 * raise ValueError if year 0 or negative year used in time units string.
   The year 0 does not exist in the Julian and Gregorian
   calendars (issue #442).
- Initial version

OBS-URL: https://build.opensuse.org/request/show/581930
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=1
2018-04-01 15:26:01 +00:00
4 changed files with 0 additions and 54 deletions

View File

@@ -1,45 +0,0 @@
From ea590c2f94b1ce93e6873cf712beb0e3d92b4e9b Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion@nwra.com>
Date: Wed, 8 May 2024 20:50:22 -0600
Subject: [PATCH] Fix incompatbile pointer argument to nc_put_att_string()
---
include/netCDF4.pxi | 2 +-
src/netCDF4/_netCDF4.pyx | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/netCDF4.pxi b/include/netCDF4.pxi
index 00d883662..9404171db 100644
--- a/include/netCDF4.pxi
+++ b/include/netCDF4.pxi
@@ -263,7 +263,7 @@ cdef extern from "netcdf.h":
size_t len, void *op) nogil
int nc_get_att(int ncid, int varid, char *name, void *ip) nogil
int nc_get_att_string(int ncid, int varid, char *name, char **ip) nogil
- int nc_put_att_string(int ncid, int varid, char *name, size_t len, char **op) nogil
+ int nc_put_att_string(int ncid, int varid, char *name, size_t len, const char **op) nogil
int nc_def_opaque(int ncid, size_t size, char *name, nc_type *xtypep) nogil
int nc_inq_opaque(int ncid, nc_type xtype, char *name, size_t *sizep) nogil
int nc_put_att_opaque(int ncid, int varid, char *name,
diff --git a/src/netCDF4/_netCDF4.pyx b/src/netCDF4/_netCDF4.pyx
index 640ab6846..b957f4e35 100644
--- a/src/netCDF4/_netCDF4.pyx
+++ b/src/netCDF4/_netCDF4.pyx
@@ -1796,7 +1796,7 @@ be raised in the next release."""
string_ptrs[j] = strings[j]
issue485_workaround(grpid, varid, attname)
with nogil:
- ierr = nc_put_att_string(grpid, varid, attname, N, string_ptrs)
+ ierr = nc_put_att_string(grpid, varid, attname, N, <const char**>string_ptrs)
finally:
PyMem_Free(string_ptrs)
else:
@@ -1825,7 +1825,7 @@ be raised in the next release."""
except UnicodeError:
issue485_workaround(grpid, varid, attname)
with nogil:
- ierr = nc_put_att_string(grpid, varid, attname, 1, &datstring)
+ ierr = nc_put_att_string(grpid, varid, attname, 1, <const char**>&datstring)
else:
with nogil:
ierr = nc_put_att_text(grpid, varid, attname, lenarr, datstring)

BIN
netCDF4-1.6.5.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:797f0b25d87827fc6821e415d9e15a2068604b18c3be62563e72682bcba76548
size 827730

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37d557e36654889d7020192bfb56f9d5f93894cb32997eb837ae586c538fd7b6
size 827773