You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/aspire/source/micrograph.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -293,15 +293,15 @@ def __init__(
293
293
:param particles_per_micrograph: The amount of particles generated for each micrograph. Defaults to 10.
294
294
:param particle_amplitudes: Optional, amplitudes to pass to `Simulation`.
295
295
Default `None` uses `Simulation` defaults.
296
-
When provided must be array with size `particles_per_micrograph * particles_per_micrograph`.
296
+
When provided must be array with size `particles_per_micrograph * micrograph_count`.
297
297
:param projection_angles: Optional, projection rotation angles to pass to `Simulation`.
298
298
Default `None` uses `Simulation` defaults.
299
-
When provided must have shape `(particles_per_micrograph * particles_per_micrograph, 3)`.
299
+
When provided must have shape `(particles_per_micrograph * micrograph_count, 3)`.
300
300
301
301
:param seed: Random seed.
302
302
:param noise_adder: Append instance of NoiseAdder to generation pipeline.
303
303
:param ctf_filters: Optional list of `Filter` objects to apply to particles.
304
-
This list should be 1, n_micrographs, or particles_per_micrograph * particles_per_micrograph.
304
+
This list should be 1, n_micrographs, or particles_per_micrograph * micrograph_count.
305
305
These will apply filters to all particles, per-micrograph, or per-particle respectively.
306
306
Default `None` will not apply any additional filters.
307
307
:param boundary: Set boundaries for particle centers, positive values move the boundary inward from the edge of the micrograph. Defaults to half of the particle size (particle_box_size // 2).
@@ -331,7 +331,7 @@ def __init__(
331
331
332
332
ifself.particle_box_size>micrograph_size:
333
333
raiseValueError(
334
-
"The micrograph size must be larger or equal to the simulation's image size."
334
+
"The micrograph size must be larger or equal to the `particle_box_size`."
0 commit comments