Remove Partial Datasets in OverlappingAMR Dataset

For one project I’m currently stuck using PV v5.6 and I need to use the Calculator on a vtkOverlappingAMR dataset with partial datasets. This doesn’t work, as has been previously mentioned here.

I know that this has been fixed at least as of 5.9, but bear with me…

What’s the simplest way to programmatically (Python) remove partial datasets/to extract the lowest-level AMR cells?

I’ve found I can either:

  1. Apply a Threshold filter using any scalar and set the min/max to the actual scalar min/max
  2. Apply an ExtractAMRBlocks filter and generate the SelectedDataSets value for the lowest level

Anything more straight-forward than those?