Open fdrgsp opened 4 days ago
This will overwrite anything that the user inputs as max_width and max_height...shouldn't it be executed only if max_width and max_height are not provided?
yes that would have been better.
The primary goal there was to "relax" the requirements for declaring a random points plan. prior to that PR, you couldn't make a random points plan without providing all of width, height, shape, etc... but doing that in the context of a plate plan felt silly, since the plate itself can already provide all of that information. However, you're absolutely right that someone should be able to manually provide that information and have it not be overridden. Sorry if it took you a while to track that one down 😅
closed by #171 right @fdrgsp?
closed by #171 right @fdrgsp?
Yes sorry I forgot to pin it.
Hey @tlambert03 , what do you do this here? Is it because the
max_width
andmax_height
default value isnp.inf
?https://github.com/pymmcore-plus/useq-schema/blob/6bed705d4e5c67838db2913ae8b644b385013a08/src/useq/_plate.py#L167-L177
This will overwrite anything that the user inputs as
max_width
andmax_height
...shouldn't it be executed only ifmax_width
andmax_height
are not provided?As an example: