Skip to content

Conversation

groberts-flex
Copy link
Contributor

… slabs of zero thickness

is_2d = np.isclose(extents[self.axis], 0.0)
polyslab_2d = np.isclose(np.diff(self.slab_bounds), 0.0)
sim_2d = np.isclose(extents[self.axis], 0.0)
is_2d = polyslab_2d and sim_2d
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is failing a unit test - actually I think maybe we don't want to add the polyslab_2d check in here for cases like the unit test that's failing where the simulation is 2d but the polyslab isn't. in that case, the polyslab should still be integrated as if it was 2d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant