Skip to content

Slam script incorrect ResultInterferometer and ResultImaging adapt_image calls #252

@AstroAaron

Description

@AstroAaron

Running the slam script source_pixelized.py on my own data, I found that line 77 in source_pix.py in slam/ produces the following error:
image
The issue may be that it calls the adapt_images from ResultInterferometer objects incorrectly. Looking into ResultInterferometer, I found that this class has the "adapt_images_from" function. Replacing any instance of "source_lp_results.last.adapt_images" in source_pix.py (and equivalent calls further down the pipeline!) with "source_lp_results.last.adapt_images_from(use_model_images=True)" appears to be a fix. However, I only see that the source_pix search is running and don't have results yet.

I tested if the adapt_image problem at least also appears for the imaging test data "simple__no_lens_light" and it produced the same error:
image

However, I don't have a workaround in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions