Minor fixes in caching and caching test.
This commit is contained in:
parent
679410055c
commit
475d5ff6a1
@ -36,7 +36,7 @@ public class NumassDataUtils {
|
||||
|
||||
@Override
|
||||
public Meta meta() {
|
||||
MetaBuilder metaBuilder = new MetaBuilder("meta");
|
||||
MetaBuilder metaBuilder = new MetaBuilder();
|
||||
sets.forEach(set -> metaBuilder.putNode(set.getName(), set.meta()));
|
||||
return metaBuilder;
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ public class NumassIO extends BasicIOManager {
|
||||
}
|
||||
|
||||
String dirName = String.join(File.separator, tokens);
|
||||
String fileName = name.removeNameSpace().toString();
|
||||
String fileName = name.removeNameSpace().toString() + ".out";
|
||||
OutputStream out = buildOut(getWorkDirectory(), dirName, fileName);
|
||||
registry.add(out);
|
||||
return out;
|
||||
|
@ -24,7 +24,7 @@ public class WorkspaceTest {
|
||||
String storagepath = "D:\\Work\\Numass\\data\\";
|
||||
Workspace workspace = BasicWorkspace.builder()
|
||||
.setContext(Numass.buildContext())
|
||||
.loadData("", new StorageDataFactory(), new MetaBuilder("storage").putValue("path", storagepath))
|
||||
.data("", new StorageDataFactory(), new MetaBuilder("storage").putValue("path", storagepath))
|
||||
|
||||
.build();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user