DeepLearnPhysics / larcv3

Third version of larcv. This is a complete replacement for larcv2.
MIT License
11 stars 6 forks source link

Image to tensor #35

Closed marcodeltutto closed 5 years ago

marcodeltutto commented 5 years ago

This PR includes templating Image2D and EventImage2D. We now have: Image2D -> Tensor EventImage2D -> EventTensor Available Tensors (as well as EventTensors) are: Tensor1D, Tensor3D and Tensor4D. For the 2D case we still have Image2D for compatibility. Tests for all tensor dimensions have also been added in test_write_image2d.py.

The ability to write a Tensor1D has also been added to larcv_writer.py.

marcodeltutto commented 5 years ago

Thanks @coreyjadams for the comments! I took care of them, please let me know if there is any remaining issue!