Skip to content

Commit

Permalink
Merge pull request #1383 from virtualcell/JHdfUtils-Upgrade
Browse files Browse the repository at this point in the history
Added convenience methods to JhdfUtils
  • Loading branch information
CodeByDrescher authored Nov 19, 2024
2 parents f35690b + 117fab2 commit 45ef44a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
import io.jhdf.api.WritableNode;
import org.vcell.util.trees.Tree;
import io.jhdf.object.datatype.CompoundDataType;

import java.util.*;
import java.util.List;


public class JhdfUtils {
public static Object createMultidimensionalArray(long[] dataDimensions, double[] flattenedDataBuffer) {
Expand Down Expand Up @@ -178,6 +177,7 @@ public static void putAttribute(WritableNode node, String name, double[] value)
node.putAttribute(name, value);
}


public static Map<String, WritableGroup> addGroups(WritableGroup hdf5Group, Tree<String> tree, String ... startingPath){
Map<String, WritableGroup> pathToGroupMapping = new HashMap<>();
String pathString = String.join("/", startingPath);
Expand Down

0 comments on commit 45ef44a

Please sign in to comment.