Skip to content

Commit

Permalink
make internal functions private
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Oct 12, 2020
1 parent 522fddc commit 821009c
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions +hdf5nc/h5save.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function h5save(filename, varname, A, opts)
opts.type string = string.empty
end

import hdf5nc.*
import hdf5nc.h5exists

if isnumeric(A)
mustBeReal(A)
Expand Down Expand Up @@ -67,7 +67,7 @@ function exist_file(filename, varname, A, sizeA)


function new_file(filename, varname, A, sizeA)
import hdf5nc.auto_chunk_size

folder = fileparts(filename);
assert(isfolder(folder), '%s is not a folder, cannot create %s', folder, filename)

Expand Down
2 changes: 0 additions & 2 deletions +hdf5nc/h5size.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
variable (1,1) string
end

import hdf5nc.expanduser

finf = h5info(expanduser(filename), variable);
fsize = finf.Dataspace.Size;

Expand Down
2 changes: 0 additions & 2 deletions +hdf5nc/h5variables.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
group string = string.empty
end

import hdf5nc.expanduser

names = string.empty;
groups = string.empty;

Expand Down
4 changes: 2 additions & 2 deletions +hdf5nc/ncsave.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function ncsave(filename, varname, A, opts)
opts.type string = string.empty
end

import hdf5nc.*
import hdf5nc.ncexists

filename = expanduser(filename);

Expand Down Expand Up @@ -67,7 +67,7 @@ function exist_file(filename, varname, A, sizeA)


function new_file(filename, varname, A, sizeA, ncdims)
import hdf5nc.auto_chunk_size

folder = fileparts(filename);
assert(isfolder(folder), '%s is not a folder, cannot create %s', folder, filename)

Expand Down
2 changes: 0 additions & 2 deletions +hdf5nc/ncsize.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
varname (1,1) string
end

import hdf5nc.expanduser

vinf = ncinfo(expanduser(filename), varname);
fsize = vinf.Size;

Expand Down
2 changes: 0 additions & 2 deletions +hdf5nc/ncvariables.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
filename (1,1) string
end

import hdf5nc.expanduser

finf = ncinfo(expanduser(filename));
ds = finf.Variables(:);
names = string({ds(:).Name});
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion +hdf5nc/test_hdf5.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function teardownOnce(tc)


function test_auto_chunk_size(tc)
import hdf5nc.auto_chunk_size
tc.assertEqual(auto_chunk_size([1500,2500,1000,500,100]), [12,20,8,8,2], '5D chunk fail')
tc.assertEqual(auto_chunk_size([15,250,100]), [2,32,25], '3D chunk fail')
tc.assertEqual(auto_chunk_size([15,250]), [15,250], '2D small chunk fail')
Expand Down

0 comments on commit 821009c

Please sign in to comment.