Skip to content

Commit a3a31ff

Browse files
authored
Merge pull request #118 from mpsonntag/cleanup
Cleanup LGTM
2 parents 12821d4 + 5741668 commit a3a31ff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1007
-500
lines changed

+nix/Block.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef Block < nix.NamedEntity & nix.MetadataMixIn
210
%Block nix Block object
311

+nix/DataArray.m

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef DataArray < nix.NamedEntity & nix.MetadataMixIn & nix.SourcesMixIn
210
%DataArray nix DataArray object
311

@@ -46,27 +54,27 @@
4654
end;
4755

4856
function dim = append_set_dimension(obj)
49-
func_name = strcat(obj.alias, '::append_set_dimension');
57+
func_name = strcat(obj.alias, '::appendSetDimension');
5058
dim = nix.SetDimension(nix_mx(func_name, obj.nix_handle));
5159
end
5260

5361
function dim = append_sampled_dimension(obj, interval)
54-
func_name = strcat(obj.alias, '::append_sampled_dimension');
62+
func_name = strcat(obj.alias, '::appendSampledDimension');
5563
dim = nix.SampledDimension(nix_mx(func_name, obj.nix_handle, interval));
5664
end
5765

5866
function dim = append_range_dimension(obj, ticks)
59-
func_name = strcat(obj.alias, '::append_range_dimension');
67+
func_name = strcat(obj.alias, '::appendRangeDimension');
6068
dim = nix.RangeDimension(nix_mx(func_name, obj.nix_handle, ticks));
6169
end
6270

6371
function dim = append_alias_range_dimension(obj)
64-
func_name = strcat(obj.alias, '::append_alias_range_dimension');
72+
func_name = strcat(obj.alias, '::appendAliasRangeDimension');
6573
dim = nix.RangeDimension(nix_mx(func_name, obj.nix_handle));
6674
end
6775

6876
function delCheck = delete_dimensions(obj)
69-
func_name = strcat(obj.alias, '::delete_dimensions');
77+
func_name = strcat(obj.alias, '::deleteDimensions');
7078
delCheck = nix_mx(func_name, obj.nix_handle);
7179
end;
7280

+nix/DataType.m

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef DataType
210
% DataTypes supported by nix.
311

@@ -17,4 +25,3 @@
1725
end
1826

1927
end
20-

+nix/Dynamic.m

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef Dynamic
210
%Dynamic class (with static methods hehe)
311
% implements methods to dynamically assigns properties
@@ -24,15 +32,15 @@ function set_method(obj, val)
2432
end
2533

2634
if (isempty(val))
27-
nix_mx(strcat(obj.alias, '::set_none_', prop), obj.nix_handle, 0);
35+
nix_mx(strcat(obj.alias, '::setNone', upper(prop(1)), prop(2:end)), obj.nix_handle, 0);
2836
elseif((strcmp(prop, 'units') || strcmp(prop, 'labels')) && (~iscell(val)))
2937
%-- BUGFIX: Matlab crashes, if units in Tags and MultiTags
3038
%-- or labels of SetDimension are set using anything else than a cell.
3139
ME = MException('MATLAB:class:SetProhibited', sprintf(...
3240
'This value only supports cells.'));
3341
throwAsCaller(ME);
3442
else
35-
nix_mx(strcat(obj.alias, '::set_', prop), obj.nix_handle, val);
43+
nix_mx(strcat(obj.alias, '::set', upper(prop(1)), prop(2:end)), obj.nix_handle, val);
3644
end
3745
obj.info = nix_mx(strcat(obj.alias, '::describe'), obj.nix_handle);
3846
end

+nix/Entity.m

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef Entity < dynamicprops
210
%Entity base class for nix entities
311
% handles object lifetime
@@ -29,4 +37,3 @@ function delete(obj)
2937
end
3038

3139
end
32-

+nix/Feature.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef Feature < nix.Entity
210
%Feature nix Feature object
311

+nix/File.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef File < nix.Entity
210
%File nix File object
311

+nix/FileMode.m

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef FileMode
210
%FILEMODE nix file open modes
311

@@ -8,4 +16,3 @@
816
end
917

1018
end
11-

+nix/Group.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef Group < nix.NamedEntity
210
%Group nix Group object
311

+nix/LinkType.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
% Copyright (c) 2016, German Neuroinformatics Node (G-Node)
2+
%
3+
% All rights reserved.
4+
%
5+
% Redistribution and use in source and binary forms, with or without
6+
% modification, are permitted under the terms of the BSD License. See
7+
% LICENSE file in the root of the Project.
8+
19
classdef LinkType
210
%LINKTYPE nix link types
311

0 commit comments

Comments
 (0)