Following advice from @mikesmic and @aplowman , lattice_strain function should take phase_idx, phase_mask, elastic strain tensors and orientation data as inputs rather than defining them from the workflow dict. Instead, another function should be called which outputs these parameters given the workflow file.
Following advice from @mikesmic and @aplowman ,
lattice_strainfunction should takephase_idx,phase_mask, elastic strain tensors and orientation data as inputs rather than defining them from the workflow dict. Instead, another function should be called which outputs these parameters given the workflow file.