Skip to content

Unit test failing due to from_dict #190

@Jammy2211

Description

@Jammy2211
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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions