Skip to content

Commit 59ea231

Browse files
committed
Add dispatch on AbstractString to open_tree
1 parent 0109edc commit 59ea231

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/SentinelDataSource.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ using ZarrDatasets: ZarrDataset
55
using CommonDataModel: CommonDataModel as CDM
66
using Rasters:Raster
77

8-
function open_eopf(path)
9-
zd = ZarrDataset(path)
10-
eopfstem = DimTree()
11-
eopfstem.measurements = DimTree()
12-
end
8+
open_tree(path::AbstractString) = open_tree(ZarrDataset(path))
139

14-
function open_tree(dataset)
10+
function open_tree(dataset::ZarrDataset)
1511
stem = DimTree()
1612
groupnames = CDM.groupnames(dataset)
1713
varnames = CDM.varnames(dataset)

0 commit comments

Comments
 (0)