Open Jashcraf opened 2 months ago
Say you want to initialize a spatially-varying polarizer
psg_polarizer = linear_diattenuator(angles, transmission)
if angles and transmission are arrays, then this errors out because the shape needs to be specified. e.g.
angles
transmission
psg_polarizer = linear_diattenuator(angles, transmission, shape=angles.shape)
I would prefer that the construction be smart enough to pull the shape from the input parameters. There’s some logic that goes into asserting that the input params all need to be the same shape for this to work.
@kenjim21 any interest in working on this?
Sure, I'll take a look and see what I can find
Say you want to initialize a spatially-varying polarizer
if
angles
andtransmission
are arrays, then this errors out because the shape needs to be specified. e.g.I would prefer that the construction be smart enough to pull the shape from the input parameters. There’s some logic that goes into asserting that the input params all need to be the same shape for this to work.
@kenjim21 any interest in working on this?