Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata not retained after switching RCP datasets #794

Open
ConnectedSystems opened this issue Jul 8, 2024 · 0 comments
Open

Metadata not retained after switching RCP datasets #794

ConnectedSystems opened this issue Jul 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ConnectedSystems
Copy link
Collaborator

ConnectedSystems commented Jul 8, 2024

Environmental datasets do not retain metadata after switch.

julia> dom = ADRIA.load_domain("<path to domain>")
julia> dom2 = ADRIA.switch_RCPs!(dom, "45")

julia> dom.dhw_scens[timesteps=At(2025)]
╭────────────────────────────╮
│ 334×50 YAXArray{Float32,2} │
├────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── dims ┐
  ↓ sites     Categorical{String} [Briggs_16074_Crest_1, Briggs_16074_Outer Flat_1a, …, Thetford_16068_Slope_9a, Thetford_16068_Slope_9b] ForwardOrdered,
  → scenarios Sampled{Int64} 1:50 ForwardOrdered Regular Points
├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── metadata ┤
  Dict{String, Any}()
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── file size ┤
  file size: 65.23 KB
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

julia> dom2.dhw_scens[timesteps=At(2025)]
ERROR: ArgumentError: 2025 for not found in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75]
@ConnectedSystems ConnectedSystems added the bug Something isn't working label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant