Skip to content

Commit 4c40b70

Browse files
committed
[c++/m] Refactor value fields
Closes #144 Removes value fields checksum, encoder, filename and reference from C++ and Matlab.
1 parent e378f22 commit 4c40b70

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

+nix/Property.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
end
5353

5454
nix_mx('Property::updateValues', obj.nix_handle, values);
55-
56-
dispStr = 'Note: nix only supports updating the actual value at the moment.';
57-
dispStr = [dispStr, char(10), 'Attributes like uncertainty or checksum cannot be set at the moment.'];
58-
disp(dispStr);
5955
end
6056

6157
function c = value_count(obj)

src/nixproperty.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@ namespace nixproperty {
4141

4242
nix::Value pr = vals[i];
4343

44-
struct_builder sb({ 1 }, { "value", "uncertainty", "checksum", "encoder", "filename", "reference" });
44+
struct_builder sb({ 1 }, { "value", "uncertainty" });
4545

4646
sb.set(make_mx_array(pr));
4747
sb.set(pr.uncertainty);
48-
sb.set(pr.checksum);
49-
sb.set(pr.checksum);
50-
sb.set(pr.filename);
51-
sb.set(pr.reference);
5248

5349
mxSetCell(lst, i, sb.array());
5450
}

0 commit comments

Comments
 (0)