Skip to content

Commit

Permalink
updated fly cell classes to use new split function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannetty committed Sep 20, 2024
1 parent b626488 commit 89d2a1c
Show file tree
Hide file tree
Showing 8 changed files with 236 additions and 185 deletions.
47 changes: 14 additions & 33 deletions src/arcade/potts/agent/cell/PottsCellContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import arcade.potts.agent.cell.PottsCellFlyStem.PottsCellFlyStemSymmetric2StemApicalOrBoth;
import arcade.potts.agent.cell.PottsCellFlyStem.PottsCellFlyStemWT;
import arcade.potts.agent.module.PottsModule;
import arcade.potts.util.PottsEnums.Direction;
import static arcade.potts.util.PottsEnums.Phase;
import static arcade.potts.util.PottsEnums.Region;

Expand Down Expand Up @@ -150,8 +149,6 @@ private Cell convert(PottsCellFactory factory, Location location) {

// Make cell.
PottsCell cell;
int splitOffsetPercent;
Direction splitDirection;
switch (parameters.get("CLASS")) {
default:
case "stem":
Expand All @@ -166,96 +163,80 @@ private Cell convert(PottsCellFactory factory, Location location) {
}
break;
case "flystem-mudmut-onestemdaughter-stemdaughterrandom":
splitOffsetPercent = 50;
splitDirection = Direction.YZ_PLANE;
if (factory.popToRegions.get(pop)) {
cell = new PottsCellFlyStemMUDMut1StemRandom(id, parent, pop, state, age, divisions,

Check failure on line 167 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L167 <LineLength>

Line is longer than 100 characters (found 104).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:167:0: error: Line is longer than 100 characters (found 104). (LineLength)
location, true, parameters, criticalVolume, criticalHeight,
criticalRegionVolumes, criticalRegionHeights, splitOffsetPercent, splitDirection);
criticalRegionVolumes, criticalRegionHeights);
} else {
cell = new PottsCellFlyStemMUDMut1StemRandom(id, parent, pop, state, age, divisions,

Check failure on line 171 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L171 <LineLength>

Line is longer than 100 characters (found 104).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:171:0: error: Line is longer than 100 characters (found 104). (LineLength)
location, false, parameters, criticalVolume, criticalHeight,
null, null, splitOffsetPercent, splitDirection);
null, null);
}
break;
case "flystem-mudmut-onestemdaughter-stemdaughterleft":
splitOffsetPercent = 50;
splitDirection = Direction.YZ_PLANE;
if (factory.popToRegions.get(pop)) {
cell = new PottsCellFlyStemMUDMut1StemLeft(id, parent, pop, state, age, divisions,

Check failure on line 178 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L178 <LineLength>

Line is longer than 100 characters (found 102).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:178:0: error: Line is longer than 100 characters (found 102). (LineLength)
location, true, parameters, criticalVolume, criticalHeight,
criticalRegionVolumes, criticalRegionHeights, splitOffsetPercent, splitDirection);
criticalRegionVolumes, criticalRegionHeights);
} else {
cell = new PottsCellFlyStemMUDMut1StemLeft(id, parent, pop, state, age, divisions,

Check failure on line 182 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L182 <LineLength>

Line is longer than 100 characters (found 102).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:182:0: error: Line is longer than 100 characters (found 102). (LineLength)
location, false, parameters, criticalVolume, criticalHeight,
null, null, splitOffsetPercent, splitDirection);
null, null);
}
break;
case "flystem-mudmut-twostemdaughters-stemdaughterrandom":
splitOffsetPercent = 50;
splitDirection = Direction.YZ_PLANE;
if (factory.popToRegions.get(pop)) {
cell = new PottsCellFlyStemMUDMut2StemRandom(id, parent, pop, state, age, divisions,

Check failure on line 189 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L189 <LineLength>

Line is longer than 100 characters (found 104).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:189:0: error: Line is longer than 100 characters (found 104). (LineLength)
location, true, parameters, criticalVolume, criticalHeight,
criticalRegionVolumes, criticalRegionHeights, splitOffsetPercent, splitDirection);
criticalRegionVolumes, criticalRegionHeights);
} else {
cell = new PottsCellFlyStemMUDMut2StemRandom(id, parent, pop, state, age, divisions,

Check failure on line 193 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L193 <LineLength>

Line is longer than 100 characters (found 104).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:193:0: error: Line is longer than 100 characters (found 104). (LineLength)
location, false, parameters, criticalVolume, criticalHeight,
null, null, splitOffsetPercent, splitDirection);
null, null);
}
break;
case "flystem-invert-onestemdaughter-stemdaughterbasal":
splitOffsetPercent = 33;
splitDirection = Direction.ZX_PLANE;
if (factory.popToRegions.get(pop)) {
cell = new PottsCellFlyStemInvert1StemBasal(id, parent, pop, state, age, divisions,

Check failure on line 200 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L200 <LineLength>

Line is longer than 100 characters (found 103).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:200:0: error: Line is longer than 100 characters (found 103). (LineLength)
location, true, parameters, criticalVolume, criticalHeight,
criticalRegionVolumes, criticalRegionHeights, splitOffsetPercent, splitDirection);
criticalRegionVolumes, criticalRegionHeights);
} else {
splitOffsetPercent = 33;
splitDirection = Direction.ZX_PLANE;
cell = new PottsCellFlyStemInvert1StemBasal(id, parent, pop, state, age, divisions,

Check failure on line 204 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L204 <LineLength>

Line is longer than 100 characters (found 103).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:204:0: error: Line is longer than 100 characters (found 103). (LineLength)
location, false, parameters, criticalVolume, criticalHeight,
null, null, splitOffsetPercent, splitDirection);
null, null);
}
break;
case "flystem-invert-twostemdaughters-stemdaughterbasalorboth":
splitOffsetPercent = 33;
splitDirection = Direction.ZX_PLANE;
if (factory.popToRegions.get(pop)) {
cell = new PottsCellFlyStemInvert2StemBasalOrBoth(id, parent, pop, state, age, divisions,

Check failure on line 211 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L211 <LineLength>

Line is longer than 100 characters (found 109).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:211:0: error: Line is longer than 100 characters (found 109). (LineLength)
location, true, parameters, criticalVolume, criticalHeight,
criticalRegionVolumes, criticalRegionHeights, splitOffsetPercent, splitDirection);
criticalRegionVolumes, criticalRegionHeights);
} else {
cell = new PottsCellFlyStemInvert2StemBasalOrBoth(id, parent, pop, state, age, divisions,

Check failure on line 215 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L215 <LineLength>

Line is longer than 100 characters (found 109).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:215:0: error: Line is longer than 100 characters (found 109). (LineLength)
location, true, parameters, criticalVolume, criticalHeight,
criticalRegionVolumes, criticalRegionHeights, splitOffsetPercent, splitDirection);
criticalRegionVolumes, criticalRegionHeights);
}
break;
case "flystem-symmetric-onestemdaughter-stemdaughterapical":
splitOffsetPercent = 50;
splitDirection = Direction.ZX_PLANE;
if (factory.popToRegions.get(pop)) {
cell = new PottsCellFlyStemSymmetric1StemApical(id, parent, pop, state, age, divisions,

Check failure on line 222 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L222 <LineLength>

Line is longer than 100 characters (found 107).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:222:0: error: Line is longer than 100 characters (found 107). (LineLength)
location, true, parameters, criticalVolume, criticalHeight,
criticalRegionVolumes, criticalRegionHeights, splitOffsetPercent, splitDirection);
criticalRegionVolumes, criticalRegionHeights);
} else {
cell = new PottsCellFlyStemSymmetric1StemApical(id, parent, pop, state, age, divisions,

Check failure on line 226 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L226 <LineLength>

Line is longer than 100 characters (found 107).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:226:0: error: Line is longer than 100 characters (found 107). (LineLength)
location, false, parameters, criticalVolume, criticalHeight,
null, null, splitOffsetPercent, splitDirection);
null, null);
}
break;
case "flystem-symmetric-twostemdaughters-stemdaughterapicalorboth":
splitOffsetPercent = 50;
splitDirection = Direction.ZX_PLANE;
if (factory.popToRegions.get(pop)) {
cell = new PottsCellFlyStemSymmetric2StemApicalOrBoth(id, parent, pop, state, age, divisions,

Check failure on line 233 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L233 <LineLength>

Line is longer than 100 characters (found 113).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:233:0: error: Line is longer than 100 characters (found 113). (LineLength)
location, true, parameters, criticalVolume, criticalHeight,
criticalRegionVolumes, criticalRegionHeights, splitOffsetPercent, splitDirection);
criticalRegionVolumes, criticalRegionHeights);
} else {
cell = new PottsCellFlyStemSymmetric2StemApicalOrBoth(id, parent, pop, state, age, divisions,

Check failure on line 237 in src/arcade/potts/agent/cell/PottsCellContainer.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/arcade/potts/agent/cell/PottsCellContainer.java#L237 <LineLength>

Line is longer than 100 characters (found 113).
Raw output
/github/workspace/./src/arcade/potts/agent/cell/PottsCellContainer.java:237:0: error: Line is longer than 100 characters (found 113). (LineLength)
location, false, parameters, criticalVolume, criticalHeight,
null, null, splitOffsetPercent, splitDirection);
null, null);
}
break;
case "flystem-wt":
Expand Down
Loading

0 comments on commit 89d2a1c

Please sign in to comment.