Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test failing due to from_dict #190

Open
Jammy2211 opened this issue Jun 24, 2022 · 1 comment
Open

Unit test failing due to from_dict #190

Jammy2211 opened this issue Jun 24, 2022 · 1 comment
Assignees

Comments

@Jammy2211
Copy link
Owner

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
Copy link
Owner Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants