Closed stetie closed 5 years ago
Thanks for the report! I will need to investigate and fix or remove it, but not during the next few weeks.
I was just looking into this and realizing, that the simextent
option does not make any sense for px
nor py
. simextent
shall force the created field to match the extent of the simulationbox. But within a PIC only x
, y
, and z
actually have a properly bound domain which is the simulationbox. px
, py
or pz
are unbound. Therefore simextent=True
fails to retrieve the min and max values for px
. So it actually does what it should.
But I agree that the error message is not helpful at all. I need to figure out how to deal with that best. Ideas are welcome!
@stetie do you think, that #244 is sufficient to close this issue?
@skuschel Yes, that seems like a good solution. Thanks!
I'm using the current postpic master 69fbf8c I've loaded a simulation with particles and
ms
is aMultiSpecies
object on a particle species. If I runx = ms.createField('px', 'py')
everything works as expected. Butx = ms.createField('px', 'py', simextent=True)
gives a error messagewhich is totally misleading. It took me 1.5h and a hint from @Ablinne to figure out that the
simextent
option is incompatible with the new interface. I strongly suggest that eithersimextent
is ignored if it's used with incompatible options, or at the very least a sensible error message should be provided to the user.