From 2acb77e683f636071089e754f1fce601c4504f69 Mon Sep 17 00:00:00 2001 From: Fabian Gans Date: Wed, 26 Aug 2020 09:23:30 +0200 Subject: [PATCH] Explicitly convert to tuple --- Project.toml | 2 +- src/datasets/netcdf.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 09f9dfb..a746ed0 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "YAXArrayBase" uuid = "90b8fcef-0c2d-428d-9c56-5f86629e9d14" authors = ["Fabian Gans "] -version = "0.2.0" +version = "0.2.1" [deps] DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" diff --git a/src/datasets/netcdf.jl b/src/datasets/netcdf.jl index 0d0861b..d4a35ee 100644 --- a/src/datasets/netcdf.jl +++ b/src/datasets/netcdf.jl @@ -48,7 +48,7 @@ function add_var(p::NetCDFDataset, T::Type, varname, s, dimnames, attr; chunksize=s, compress = -1) dimsdescr = Iterators.flatten(zip(dimnames,s)) nccreate(p.filename, varname, dimsdescr..., atts = attr, t=T, chunksize=chunksize, compress=compress) - NetCDFVariable{T,length(s)}(p.filename,varname,s) + NetCDFVariable{T,length(s)}(p.filename,varname,(s...,)) end function create_empty(::Type{NetCDFDataset}, path)