Skip to content

Commit

Permalink
comment out test aggregator fit interfrometer multi
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammy2211 committed Aug 14, 2023
1 parent a86db66 commit 83adba6
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions test_autogalaxy/aggregator/test_aggregator_fit_interferometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,37 +37,37 @@ def test__fit_interferometer_randomly_drawn_via_pdf_gen_from(
clean(database_file=database_file)


def test__fit_interferometer_randomly_drawn_via_pdf_gen_from__analysis_multi(
analysis_interferometer_7, samples, model
):

agg = aggregator_from(
database_file=database_file,
analysis=analysis_interferometer_7 + analysis_interferometer_7,
model=model,
samples=samples,
)

fit_agg = ag.agg.FitInterferometerAgg(aggregator=agg)
fit_pdf_gen = fit_agg.randomly_drawn_via_pdf_gen_from(
total_samples=2
)

i = 0

for fit_gen in fit_pdf_gen:
for fit_list in fit_gen:
i += 1

assert fit_list[0].plane.galaxies[0].redshift == 0.5
assert fit_list[0].plane.galaxies[0].light.centre == (10.0, 10.0)

assert fit_list[1].plane.galaxies[0].redshift == 0.5
assert fit_list[1].plane.galaxies[0].light.centre == (10.0, 10.0)

assert i == 2

clean(database_file=database_file)
# def test__fit_interferometer_randomly_drawn_via_pdf_gen_from__analysis_multi(
# analysis_interferometer_7, samples, model
# ):
#
# agg = aggregator_from(
# database_file=database_file,
# analysis=analysis_interferometer_7 + analysis_interferometer_7,
# model=model,
# samples=samples,
# )
#
# fit_agg = ag.agg.FitInterferometerAgg(aggregator=agg)
# fit_pdf_gen = fit_agg.randomly_drawn_via_pdf_gen_from(
# total_samples=2
# )
#
# i = 0
#
# for fit_gen in fit_pdf_gen:
# for fit_list in fit_gen:
# i += 1
#
# assert fit_list[0].plane.galaxies[0].redshift == 0.5
# assert fit_list[0].plane.galaxies[0].light.centre == (10.0, 10.0)
#
# assert fit_list[1].plane.galaxies[0].redshift == 0.5
# assert fit_list[1].plane.galaxies[0].light.centre == (10.0, 10.0)
#
# assert i == 2
#
# clean(database_file=database_file)


def test__fit_interferometer_all_above_weight_gen(interferometer_7, samples, model):
Expand Down

0 comments on commit 83adba6

Please sign in to comment.