You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@inlinefunctionCFtransformdata!(out,data::AbstractArray{T,N},fv,scale_factor,add_offset,time_origin,time_factor,maskingvalue) where {T,N}
I'll make a PR with that change, but maybe there are other/better fixes? I don't understand at all why the time dimension makes a difference and neither @code_warntype nor Cthulhu flag this.
The text was updated successfully, but these errors were encountered:
Just following up on JuliaGeo/NCDatasets.jl#273 and moving it over here since it's actually a CommonDataModel problem.
CFtransformdata
is not type stable if the eltype ofdata
andout
are not the same.shows
0.082064 seconds (2.00 M allocations: 39.093 MiB, 18.78% gc time)
.For some reason this doesn't always show up on actual file reads, but if there is a time dimension it does:
Returns
Note that the time dimension here has length 1 so this really should be the same.
This is all fixed after dropping the
@inline
inCommonDataModel.jl/src/cfvariable.jl
Line 373 in 86a1fce
I'll make a PR with that change, but maybe there are other/better fixes? I don't understand at all why the time dimension makes a difference and neither
@code_warntype
nor Cthulhu flag this.The text was updated successfully, but these errors were encountered: