MontePy icon indicating copy to clipboard operation
MontePy copied to clipboard

problem.surfaces.shift_x, y, z

Open MicahGale opened this issue 3 years ago • 2 comments

In GitLab by @tjlaboss on May 25, 2022, 11:25

Requires #32.

Once it is easy to shift a surface in x, y, z:

a numbered object collection like 'pz', 'c_z', etc. could be made, and called something like 'shiftable_z' or whatever.

Then a user can say for surf in problem.shiftable_z: surf.do_thing(dz)

MicahGale avatar May 25 '22 16:05 MicahGale

I like it. Not sure I like the name though.

Probably would need to make a new generator object.

Question: if there's a surface that we know should support this sort of translation but doesn't, should that raise an error?

MicahGale avatar May 25 '22 16:05 MicahGale

In GitLab by @tjlaboss on May 25, 2022, 11:59

Yes, a NotImplementedError

MicahGale avatar May 25 '22 16:05 MicahGale