Skip to content

Commit c73590f

Browse files
committed
Fix examples flags
1 parent 53f0fa1 commit c73590f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

blobmodel/blobs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ def discretize_blob(
133133
# If one_dimensional, then Ly should be 0.
134134
assert (one_dimensional and Ly == 0) or not one_dimensional
135135

136-
if (self.width_perp > 0.1 * Ly or self.width_prop > 0.1 * Ly) and periodic_y:
137-
warnings.warn("blob width big compared to Ly")
136+
if (self.width_perp > Ly / 3 or self.width_prop > Ly / 3) and periodic_y:
137+
warnings.warn(
138+
"blob width big compared to Ly, mirrored blobs might become apparent."
139+
)
138140

139141
x_perp, y_perp = self._rotate(
140142
origin=(self.pos_x, self.pos_y), x=x, y=y, angle=-self._theta

examples/1d_animation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
DefaultBlobFactory,
55
BlobShapeImpl,
66
BlobShapeEnum,
7+
DistributionEnum,
78
)
89

910
# Example of a one-dimensional realization and animation.
1011

11-
bf = DefaultBlobFactory()
12+
bf = DefaultBlobFactory(vy_dist=DistributionEnum.zeros)
1213

1314
bm = Model(
1415
Nx=100,

0 commit comments

Comments
 (0)