Skip to content

Commit fa3a535

Browse files
committed
doc formatting
1 parent b5784b1 commit fa3a535

21 files changed

+41
-40
lines changed

+stdlib/+fileio/absolute_path.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
% subsystem, but are sometimes still valid--so return
77
% unmodified path if this occurs.
88
%
9-
%% Inputs
9+
%%% Inputs
1010
% * p: path to make absolute
11-
%% Outputs
11+
%%% Outputs
1212
% * abspath: absolute path, if determined
1313

1414
arguments

+stdlib/+fileio/expanduser.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
%
55
% Useful for Matlab functions like h5read() and some Computer Vision toolbox functions
66
% that can't handle ~
7-
%% Inputs
7+
%
8+
%%% Inputs
89
% * p: path to expand, if tilde present
9-
%% Outputs
10+
%%% Outputs
1011
% * expanded: expanded path
1112
%
1213
% See also ABSOLUTE_PATH

+stdlib/+fileio/is_exe.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
%% is_exe(file)
33
% is a file executable, as per its filesystem attributes
44
% does not actually try to run the file.
5-
%% Inputs
5+
%%% Inputs
66
% * file: filename
7-
%% Outputs
7+
%%% Outputs
88
% * ok: boolean logical
99

1010
arguments

+stdlib/+fileio/is_wsl_path.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function iswsl = is_wsl_path(path)
22
arguments
3-
path (1,1) string
3+
path (1,1) string {mustBeNonzeroLengthText}
44
end
55

66
if ispc

+stdlib/+fileio/with_suffix.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
function filename = with_suffix(filename, suffix)
22
%% with_suffix(filename, suffix)
33
% switch file extension
4-
%% Inputs
4+
%%% Inputs
55
% * filename: original filename
66
% * suffix: file extension with "." e.g. ".dat"
7-
%% Outputs
7+
%%% Outputs
88
% * filename: modified filename
99
arguments
1010
filename string

+stdlib/+hdf5nc/auto_chunk_size.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
% based on https://github.com/h5py/h5py/blob/master/h5py/_hl/filters.py
55
% refer to https://support.hdfgroup.org/HDF5/Tutor/layout.html
66
%
7-
%% Inputs
7+
%%% Inputs
88
% * dims: proposed dataset dimensions (like size())
99

1010
arguments

+stdlib/+hdf5nc/h5create_group.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
%% h5create_group(file, hpath)
33
% create HDF5 group
44
%
5-
%% Inputs
5+
%%% Inputs
66
% * file: HDF5 file name or handle
77
% * hpath: HDF5 group/dataset -- ensure final character is "/" if hpath is only a group
88
%
9-
%% Outputs
9+
%%% Outputs
1010
% * HDF5 file handle
1111

1212
arguments
@@ -16,7 +16,7 @@
1616

1717
import stdlib.fileio.expanduser
1818

19-
%% polymorphic fid/filename
19+
% polymorphic fid/filename
2020
if isa(file, 'H5ML.id')
2121
fid = file;
2222
else
@@ -29,13 +29,13 @@
2929
end
3030
end
3131

32-
%% are there any groups
32+
% are there any groups
3333
grps = split(hpath, "/");
3434
if length(grps) < 3
3535
return
3636
end
3737

38-
%% recursively create groups as needed
38+
% recursively create groups as needed
3939
plist = 'H5P_DEFAULT';
4040
groot = H5G.open(fid, "/");
4141

+stdlib/+hdf5nc/h5exists.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
%% H5EXISTS(file, vars)
33
% check if object(s) exists in HDF5 file
44
%
5-
%% Inputs
5+
%%% Inputs
66
% * file: data filename
77
% * varname: path(s) of variable in file
88
%
9-
%% Outputs
9+
%%% Outputs
1010
% * exists: boolean (scalar or vector)
1111

1212
arguments

+stdlib/+hdf5nc/h5ndims.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
%% h5ndims(file, variable)
33
% get number of dimensions of an HDF5 dataset
44
%
5-
%% Inputs
5+
%%% Inputs
66
% * file: data filename
77
% * variable: name of variable inside file
88
%
9-
%% Outputs
9+
%%% Outputs
1010
% * frank: number of variable dimensions (like Matlab ndims)
1111

1212
arguments

+stdlib/+hdf5nc/h5save.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function h5save(filename, varname, A, opts)
44
%
55
% parent folder (file directory) must already exist
66
%
7-
%% Inputs
7+
%%% Inputs
88
% * filename: data filename
99
% * varname: variable name to save
1010
% * A: data to write

0 commit comments

Comments
 (0)