Skip to content

add Base.parent method for variable, and use it#11

Merged
rafaqz merged 3 commits intomainfrom
rs/parent
Mar 8, 2025
Merged

add Base.parent method for variable, and use it#11
rafaqz merged 3 commits intomainfrom
rs/parent

Conversation

@rafaqz
Copy link
Member

@rafaqz rafaqz commented Mar 6, 2025

Currently its not possible to generically get the parent of the variable - we have to know the field is var.zarray and special case it in generic CommonDataModel.jl based code.

This PR fixes that by adding a Base.parent method, and using it everywhere. It shouldn't need a specific test as it is tested everywhere via the other methods.

@rafaqz rafaqz changed the title add base parent method for variable, and use it add Base.parent method for variable, and use it Mar 6, 2025
@rafaqz
Copy link
Member Author

rafaqz commented Mar 6, 2025

Nightly failures are AWS problems, not this PR

@rafaqz
Copy link
Member Author

rafaqz commented Mar 6, 2025

@Alexander-Barth can we get a merge and patch bump here too?

@rafaqz
Copy link
Member Author

rafaqz commented Mar 8, 2025

Ok, as the same thing was merged in CDM I'm assuming this is ok... It's blocking Rasters updates currently and I would prefer to avoid special casing Zarr everywhere due to no parent method...

@rafaqz rafaqz merged commit e1fffef into main Mar 8, 2025
9 of 12 checks passed
@rafaqz rafaqz deleted the rs/parent branch March 8, 2025 12:30
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.

1 participant