Closed gschlafly closed 6 months ago
The microlens index should be able to be successfully passed into the numpy and pytorch functions. Only the mask for the lenslet (0,0) is being used. However, when passing the mla_index argument, some of the tests fail. https://github.com/PolarizedLightFieldMicroscopy/GeoBirT/blob/f478893ad949a3b3f6e36fc86639c644dfbb0d62/VolumeRaytraceLFM/birefringence_implementations.py#L1389-L1397
mla_index
Have the function ret_and_azim_images() return self.ret_and_azim_images_torch(volume_in, microlens_offset, mla_index=mla_index) for the pytorch backend. Then, run the pytest test_forward_projection_different_volumes for single_voxel.
ret_and_azim_images()
self.ret_and_azim_images_torch(volume_in, microlens_offset, mla_index=mla_index)
test_forward_projection_different_volumes
single_voxel
Error message from the pytest:
Description
The microlens index should be able to be successfully passed into the numpy and pytorch functions. Only the mask for the lenslet (0,0) is being used. However, when passing the
mla_index
argument, some of the tests fail. https://github.com/PolarizedLightFieldMicroscopy/GeoBirT/blob/f478893ad949a3b3f6e36fc86639c644dfbb0d62/VolumeRaytraceLFM/birefringence_implementations.py#L1389-L1397Files
To Reproduce
Have the function
ret_and_azim_images()
returnself.ret_and_azim_images_torch(volume_in, microlens_offset, mla_index=mla_index)
for the pytorch backend. Then, run the pytesttest_forward_projection_different_volumes
forsingle_voxel
.Error message from the pytest:
Tasks
mla_index
variable passed into the following function. https://github.com/PolarizedLightFieldMicroscopy/GeoBirT/blob/f478893ad949a3b3f6e36fc86639c644dfbb0d62/VolumeRaytraceLFM/birefringence_implementations.py#L1546-L1569