Skip to content

Commit e8113b9

Browse files
committed
Dont rely on gc to close netcdf file
1 parent 2acb77e commit e8113b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "YAXArrayBase"
22
uuid = "90b8fcef-0c2d-428d-9c56-5f86629e9d14"
33
authors = ["Fabian Gans <[email protected]>"]
4-
version = "0.2.1"
4+
version = "0.2.2"
55

66
[deps]
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"

src/datasets/netcdf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function add_var(p::NetCDFDataset, T::Type, varname, s, dimnames, attr;
5252
end
5353

5454
function create_empty(::Type{NetCDFDataset}, path)
55-
NetCDF.create(path, NcVar[])
55+
NetCDF.create(_->nothing, path, NcVar[])
5656
NetCDFDataset(path)
5757
end
5858

0 commit comments

Comments
 (0)