FABLE-3DXRD / ImageD11

ImageD11 is a python code for identifying individual grains in spotty area detector X-ray diffraction images.
https://imaged11.readthedocs.io/
GNU General Public License v2.0
15 stars 25 forks source link

Fix bug with creating PBPMap from multi-layer TensorMap #350

Closed jadball closed 2 weeks ago

jadball commented 2 weeks ago

Unlikely to have caused problems in current usage - regular notebook workflow doesn't initiate a refinement from a TensorMap with more than one z layer (z stacking comes later). In the previous code, mi was always 0, because recon_index_to_map (correctly) defaults to a 2D slice. We should be checking the self.phase_ids phase mask at the user-supplied z_layer value rather than 0.