Skip to content

Commit

Permalink
Merge pull request #229 from Alexander-Barth/compathelper/new_version…
Browse files Browse the repository at this point in the history
…/2023-09-30-01-06-44-732-3340239256

CompatHelper: add new compat entry for "DiskArrays" at version "0.3"
  • Loading branch information
Alexander-Barth authored Oct 3, 2023
2 parents 968b80e + 9c1d77c commit 721ac59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
CFTime = "0.1.1"
CommonDataModel = "0.2.3"
DataStructures = "0.17, 0.18"
DiskArrays = "0.3"
NetCDF_jll = "=400.701.400, =400.702.400, =400.902.5, =400.902.208"
NetworkOptions = "1.2"
julia = "1.3"
Expand Down

2 comments on commit 721ac59

@Alexander-Barth
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

NCDatasets uses now the DiskArray package which required some API changes.
In general, the array API of NCDatasets is now more similar to base Julia in particular:

  • ncvar[range_indices] = scalar should now be ncvar[range_indices] .= scalar
  • ncvar2D[:] flattens the data in the 2D NetCDF variable ncvar2D. To read the full array one need to use ncvar2D[:,:] or Array(ncvar2D) (similarly for 3D, 4D... arrays).
  • Accessing an array out of bounds, new returns a DimensionMismatch exception (previously a NCDatasets.NetCDFError exception was returned)
  • To grow a NetCDF variable with unlimited dimension, the corresponding index of left-hand side of the assignment cannot be a colon, but should be a range. For example if ncvar is a NetCDF variable where the 2nd dimension is unlimited, ncvar[:,:] = zeros(2,3) should now be replaced by ncvar[:,1:3] = zeros(2,3)

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/92807

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.13.0 -m "<description of version>" 721ac593b3b8217d541a5ec0d378562a95c0b8ed
git push origin v0.13.0

Please sign in to comment.