Skip to content

Commit

Permalink
Moving to v1.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sjcross committed Nov 28, 2023
1 parent 35364e8 commit 7255a08
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,13 @@ public interface FilterMethods {

public static ArrayList<Integer> getIDsToRemove(Objs inputObjects, String measName, String filterMethod,
boolean perTimepoint, int nMeas) {
ArrayList<Integer> toRemove = new ArrayList<>();

if (inputObjects.size() == 0)
return toRemove;

// Getting reference limits
HashMap<Integer, double[]> minMax = getMeasurementExtremes(inputObjects, measName, perTimepoint, nMeas);
ArrayList<Integer> toRemove = new ArrayList<>();

Iterator<Obj> iterator = inputObjects.values().iterator();
while (iterator.hasNext()) {
Expand Down Expand Up @@ -231,11 +235,11 @@ protected Status process(Workspace workspace) {
// parentObjectsName into a childObjectsName form
String[] names = parentObjectsName.split(" // ");
String childObjectsName = "";
for (int i=names.length-2;i>=0;i--)
for (int i = names.length - 2; i >= 0; i--)
childObjectsName = childObjectsName + names[i] + " // ";
childObjectsName = childObjectsName + inputObjectsName;

Objs parentObjects = workspace.getObjects(names[names.length-1]);
Objs parentObjects = workspace.getObjects(names[names.length - 1]);
for (Obj parentObject : parentObjects.values()) {
Objs childObjects = parentObject.getChildren(childObjectsName);
toRemove.addAll(getIDsToRemove(childObjects, measName, filterMethod, perTimepoint, nMeas));
Expand Down

0 comments on commit 7255a08

Please sign in to comment.