__PIPELINE CREATION__

We import and make pipelines as per usual, albeit we'll now be doing this for multiple pipelines!

We then run each pipeline, passing the results of previous pipelines to subsequent pipelines.
"""

from slam.imaging.no_lens_light.pipelines import source__parametric
from slam.imaging.no_lens_light.pipelines import source__inversion
from slam.imaging.no_lens_light.pipelines import mass__total
from slam.imaging.no_lens_light.pipelines import subhalo

source__parametric = source__parametric.make_pipeline(slam=slam,
                                                      settings=settings)
source_results = source__parametric.run(dataset=imaging, mask=mask)

source__inversion = source__inversion.make_pipeline(
    slam=slam, settings=settings, source_parametric_results=source_results)
source_results = source__inversion.run(dataset=imaging, mask=mask)

mass__total = mass__total.make_pipeline(slam=slam,
                                        settings=settings,
                                        source_results=source_results)
mass_results = mass__total.run(dataset=imaging, mask=mask)

subhalo = subhalo.make_pipeline_single_plane(slam=slam,
                                             settings=settings,
                                             mass_results=mass_results,
                                             end_stochastic=True)
subhalo.run(dataset=imaging, mask=mask)
    setup_hyper=hyper,
    pipeline_source_parametric=pipeline_source_parametric,
    pipeline_mass=pipeline_mass,
    setup_subhalo=setup_subhalo,
)
"""
__PIPELINE CREATION__

We import and make pipelines as per usual, albeit we'll now be doing this for multiple pipelines!

We then run each pipeline, passing the results of previous pipelines to subsequent pipelines.
"""

from slam.imaging.no_lens_light.pipelines import source__parametric
from slam.imaging.no_lens_light.pipelines import mass__total
from slam.imaging.no_lens_light.pipelines import subhalo

source__parametric = source__parametric.make_pipeline(slam=slam,
                                                      settings=settings)
source_results = source__parametric.run(dataset=imaging, mask=mask)

mass__total = mass__total.make_pipeline(slam=slam,
                                        settings=settings,
                                        source_results=source_results)
mass_results = mass__total.run(dataset=imaging, mask=mask)

subhalo = subhalo.make_pipeline_single_plane(slam=slam,
                                             settings=settings,
                                             mass_results=mass_results)
subhalo.run(dataset=imaging, mask=mask)