Skip to content

Commit

Permalink
Merge pull request #415 from SpeedyWeather/load_trajectory-fix
Browse files Browse the repository at this point in the history
Fix load_trajectory
  • Loading branch information
maximilian-gelbrecht authored Nov 16, 2023
2 parents 5ff9bb2 + 4ee51c8 commit b047723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output/output.jl
Original file line number Diff line number Diff line change
Expand Up @@ -558,5 +558,5 @@ Loads a `var_name` trajectory of the model `M` that has been saved in a netCDF f
"""
function load_trajectory(var_name::Union{Symbol, String}, model::ModelSetup)
@assert model.output.output "Output is turned off"
return NCDataset(get_full_output_file_path(model.output))[string(var_name)][:]
return Array(NCDataset(get_full_output_file_path(model.output))[string(var_name)])
end

0 comments on commit b047723

Please sign in to comment.