Skip to content

Commit a41c733

Browse files
Alice FuAlice Fu
authored andcommitted
ran spotlessApply
1 parent 4e6c699 commit a41c733

3 files changed

Lines changed: 20 additions & 18 deletions

File tree

src/arcade/potts/agent/module/PottsModuleFlyStemProliferation.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,16 @@ public class PottsModuleFlyStemProliferation extends PottsModuleProliferationVol
4848
/** Rate of Deadpan change (ticks^-1). */
4949
final double deadpanRate;
5050

51-
/** Percent threshold of apical voxels considered when dividing Deadpan at cell division. The sum of apicalThreshold and basalThreshold should not exceed 1. */
51+
/**
52+
* Percent threshold of apical voxels considered when dividing Deadpan at cell division. The sum
53+
* of apicalThreshold and basalThreshold should not exceed 1.
54+
*/
5255
final double apicalThreshold;
5356

54-
/** Percent threshold of basal voxels considered when dividing Prospero at cell division. The sum of apicalThreshold and basalThreshold should not exceed 1. */
57+
/**
58+
* Percent threshold of basal voxels considered when dividing Prospero at cell division. The sum
59+
* of apicalThreshold and basalThreshold should not exceed 1.
60+
*/
5561
final double basalThreshold;
5662

5763
/** Threshold ratio of Prospero to Deadpan in daughter cell to determine cell identity. */
@@ -163,7 +169,8 @@ public PottsModuleFlyStemProliferation(PottsCellFlyStem cell) {
163169
}
164170

165171
if (apicalThreshold + basalThreshold > 1 || apicalThreshold < 0 || basalThreshold < 0) {
166-
throw new InvalidParameterException("Apical and basal thresholds should be nonnegative and not overlap (check that apicalThreshold + basalThreshold <= 1)");
172+
throw new InvalidParameterException(
173+
"Apical and basal thresholds should be nonnegative and not overlap (check that apicalThreshold + basalThreshold <= 1)");
167174
}
168175

169176
volumeBasedCriticalVolumeMultiplier =

src/arcade/potts/util/PottsUtilities.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package arcade.potts.util;
22

3-
import arcade.potts.env.location.PottsLocation;
4-
import arcade.potts.env.location.Voxel;
3+
import java.util.ArrayList;
54
import sim.util.Bag;
65
import ec.util.MersenneTwisterFast;
7-
8-
import java.util.ArrayList;
6+
import arcade.potts.env.location.PottsLocation;
7+
import arcade.potts.env.location.Voxel;
98

109
/** Utility class providing static helper methods for Potts simulations. */
1110
public final class PottsUtilities {
@@ -29,7 +28,6 @@ public static void splitBagDupesRandomly(
2928
}
3029
}
3130

32-
3331
/**
3432
* Calculates the fraction of voxels in a daughter cell to distribute transcription factors.
3533
* Returns 0 if the voxels Bag is empty.

test/arcade/potts/util/PottsUtilitiesTest.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
package arcade.potts.util;
22

3-
import ec.util.MersenneTwisterFast;
4-
import org.junit.jupiter.api.Test;
5-
import sim.util.Bag;
6-
import arcade.patch.agent.cell.PatchCell;
7-
import arcade.patch.agent.cell.PatchCellTissue;
8-
import arcade.patch.env.location.PatchLocation;
9-
103
import java.util.ArrayList;
114
import java.util.List;
12-
5+
import org.junit.jupiter.api.Test;
6+
import sim.util.Bag;
7+
import ec.util.MersenneTwisterFast;
138
import static org.junit.jupiter.api.Assertions.*;
149
import static org.mockito.Mockito.*;
1510

@@ -21,7 +16,8 @@ public void constructor_called_throwsException() {
2116
}
2217

2318
@Test
24-
public void splitBagDupesRandomly_allDuplicatesallRandomFalse_firstBagEmptiedSecondBagUnchanged() {
19+
public void
20+
splitBagDupesRandomly_allDuplicatesallRandomFalse_firstBagEmptiedSecondBagUnchanged() {
2521
Bag firstBag = new Bag();
2622
Bag secondBag = new Bag();
2723
Object a = new Object();
@@ -95,7 +91,8 @@ public void splitBagDupesRandomly_someDuplicates_mixedRandomOutcomes() { // path
9591
}
9692

9793
@Test
98-
public void splitBagDupesRandomly_someDuplicatesallRandomTrue_itemsRemovedFromSecondBagFirstBagUnchanged() {
94+
public void
95+
splitBagDupesRandomly_someDuplicatesallRandomTrue_itemsRemovedFromSecondBagFirstBagUnchanged() {
9996
Bag firstBag = new Bag();
10097
Bag secondBag = new Bag();
10198
Object a = new Object();

0 commit comments

Comments
 (0)