PyAutoLens icon indicating copy to clipboard operation
PyAutoLens copied to clipboard

Unit test failing due to from_dict

Open Jammy2211 opened this issue 3 years ago • 1 comments

tracer = <autolens.lens.ray_tracing.Tracer object at 0x7f6fb2cf6b80>
tracer_dict = {'cosmology': <class 'autogalaxy.cosmology.wrap.Planck15'>, 'planes': [<autogalaxy.plane.plane.Plane object at 0x7f6fb561cc70>, <autogalaxy.plane.plane.Plane object at 0x7f6fb561cbe0>], 'profiling_dict': None}

    def test_from_dict(tracer, tracer_dict):
>       assert tracer.from_dict(tracer_dict) == tracer
E       AssertionError: assert <autolens.lens.ray_tracing.Tracer object at 0x7f6fb561cd00> == <autolens.lens.ray_tracing.Tracer object at 0x7f6fb2cf6b80>
E        +  where <autolens.lens.ray_tracing.Tracer object at 0x7f6fb561cd00> = <function Tracer.from_dict at 0x7f6fb8f91700>({'cosmology': <class 'autogalaxy.cosmology.wrap.Planck15'>, 'planes': [<autogalaxy.plane.plane.Plane object at 0x7f6fb561cc70>, <autogalaxy.plane.plane.Plane object at 0x7f6fb561cbe0>], 'profiling_dict': None})
E        +    where <function Tracer.from_dict at 0x7f6fb8f91700> = <autolens.lens.ray_tracing.Tracer object at 0x7f6fb2cf6b80>.from_dict

test_autolens/lens/test_dict.py:85: AssertionError

Jammy2211 avatar Jun 24 '22 18:06 Jammy2211

The PR didnt seem to fix this or lead to another issue:

https://github.com/Jammy2211/PyAutoLens/actions/runs/2685051806

Jammy2211 avatar Jul 17 '22 09:07 Jammy2211