Skip to content

Commit 7e1454c

Browse files
committed
moved array creation to new style
1 parent d1782c5 commit 7e1454c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nix_mx.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,10 @@ const std::vector<fendpoint> funcs = {
6565
{ "Block::listSources", nixblock::list_sources },
6666
{ "Block::listTags", nixblock::list_tags },
6767
{ "Block::listMultiTags", nixblock::list_multi_tags },
68-
{ "Block::createDataArray", nixblock::create_data_array },
6968

7069
// Data Array
7170
{ "DataArray::describe", nixdataarray::describe },
7271
{ "DataArray::readAll", nixdataarray::read_all },
73-
{ "DataArray::writeAll", nixdataarray::write_all },
7472

7573
// Tag
7674
{ "Tag::describe", nixtag::describe },
@@ -173,10 +171,12 @@ void mexFunction(int nlhs,
173171
.reg("openTag", GETBYSTR(nix::Tag, nix::Block, getTag))
174172
.reg("openMultiTag", GETBYSTR(nix::MultiTag, nix::Block, getMultiTag))
175173
.reg("openMetadataSection", GETCONTENT(nix::Section, nix::Block, metadata));
174+
methods->add("Block::createDataArray", nixblock::create_data_array);
176175

177176
classdef<nix::DataArray>("DataArray", methods)
178177
.reg("sources", GETSOURCES(IDataArray))
179178
.reg("openMetadataSection", GETMETADATA(IDataArray));
179+
methods->add("DataArray::writeAll", nixdataarray::write_all);
180180

181181
classdef<nix::Source>("Source", methods)
182182
.reg("sources", &nix::Source::sources)

0 commit comments

Comments
 (0)