Skip to content

[5.x] work on filters package#966

Merged
haileyajohnson merged 5 commits intoUnidata:maint-5.xfrom
haileyajohnson:port-filters
Aug 22, 2022
Merged

[5.x] work on filters package#966
haileyajohnson merged 5 commits intoUnidata:maint-5.xfrom
haileyajohnson:port-filters

Conversation

@haileyajohnson
Copy link
Copy Markdown
Contributor

Description of Changes

  • changes to the filters api
  • share filters between hdf5 and zarr
  • rewrite docs to use new api

PR Checklist

  • Indicate the version associated with this PR in the Title
    (e.g. "[5.x]: This is my PR title")
  • Link to any issues that the PR addresses
  • Add labels, especially if the PR should be ported to other versions
    (these labels start with "port: ")
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

@haileyajohnson haileyajohnson force-pushed the port-filters branch 2 times, most recently from b75477f to 6eb0866 Compare August 19, 2022 23:05
@haileyajohnson haileyajohnson marked this pull request as ready for review August 20, 2022 00:02
Comment thread cdm/core/src/main/java/ucar/nc2/filter/Checksum32.java
Comment thread cdm/core/src/main/java/ucar/nc2/filter/Filters.java
Comment thread cdm/core/src/main/java/ucar/nc2/filter/Filters.java Outdated
}

// try by id next
int id = ((Short) oid).intValue();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe we should check that oid instanceof Short before casting here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we already checked that it's a Number, I think any Number type can cast to a Short without an exception

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yeah, maybe I am overthinking it here, but could it happen that a filter does have a name but no provider for that name? then you reach this code without having checked if the oid instanceof Number

Comment thread cdm/core/src/main/java/ucar/nc2/internal/iosp/hdf5/H5tiledLayoutBB.java Outdated
haileyajohnson and others added 2 commits August 22, 2022 10:25
Co-authored-by: Tara Drwenski <tdrwenski@users.noreply.github.com>
…utBB.java

Co-authored-by: Tara Drwenski <tdrwenski@users.noreply.github.com>
@haileyajohnson haileyajohnson merged commit 8925a9e into Unidata:maint-5.x Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants