Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonreusch committed Aug 15, 2023
1 parent 9f62b53 commit 6930d90
Showing 1 changed file with 67 additions and 65 deletions.
132 changes: 67 additions & 65 deletions tests/test_noisification.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,71 +70,73 @@ def test_noisification_csv(self):
df.sort_values(by=["obsmjd"], inplace=True)
mags = df.magpsf.values
reference_mags = [
20.8769946171293,
23.2297010733766,
24.5327924093533,
23.483461797024,
24.817103935496,
22.0753149522546,
22.6535606402272,
21.3577614903492,
21.363927213264,
21.3113925036992,
20.9168143754613,
20.5272894611439,
19.9966237872488,
19.8439164555649,
20.529910457209,
19.660455824037,
19.5313409890858,
19.4587169077071,
19.5892919245916,
20.7688632609073,
19.4293228277489,
19.5746926499075,
19.5222350322337,
20.7141412176996,
19.7623707330004,
19.5935373102277,
19.7798828078211,
20.7277867745584,
19.6901479709895,
19.9642109782873,
19.9495699073606,
20.2051962124932,
20.0574227332912,
20.4130322594424,
20.3269831505036,
21.1391046686123,
20.5867467557501,
21.2913840385192,
21.6514930870363,
20.3308610031804,
20.2434470163134,
20.9078429008369,
21.2112770495247,
20.349647746173,
21.0740875729334,
20.9650446097583,
21.3386966973734,
20.3194008576004,
21.0654014320268,
20.4037817088396,
20.516024704723,
21.6254069182172,
21.1765215991857,
21.6460987995769,
20.6615965525555,
21.7230048347192,
21.7527330144324,
21.6232711140658,
22.1668943157953,
21.9277361271447,
21.1347042909552,
21.6254872411587,
22.4590982017125,
21.3895346145094,
21.7264244456568,
20.8441333516679,
23.0428384270284,
22.3361328560728,
21.891844441017,
24.6258793611999,
22.9693164240199,
22.5331418225072,
22.402843093917,
22.3810015045769,
22.2366564452148,
21.5414180986661,
21.2231186286774,
21.2711180499247,
21.2342274051828,
21.2176177244074,
20.5653512827215,
20.5539113677205,
20.7776896403664,
20.0722946507605,
20.3702511077786,
19.9008369045443,
19.734931303138,
19.9527261644008,
20.2696107666537,
19.7148050782857,
19.7823696906336,
19.8892495623189,
20.015566245011,
20.1393488749641,
21.3747144565654,
20.1022049890303,
20.1660146696708,
20.3844328005527,
20.3033841862743,
20.3979200335415,
20.4386545415709,
21.6346780770264,
20.6075448924875,
20.7080863740433,
20.741039677494,
21.5104615666065,
21.0652872871537,
20.7413309573481,
21.1789265051537,
21.3725943339692,
21.610544017918,
20.6746444748398,
20.8608122584386,
22.0703410057646,
21.6514737163237,
21.0137037685049,
21.9315468152393,
20.7816733808444,
21.3105951387263,
21.3935822142343,
22.6814688354199,
21.4360049799304,
21.482178701566,
21.6489462897514,
22.7800350088775,
21.771910283692,
22.4665709831155,
21.1519000027794,
21.2051984992754,
22.531694273597,
21.7373170112264,
23.0049914868813,
]

np.testing.assert_almost_equal(df.magpsf.values, reference_mags, decimal=5)

0 comments on commit 6930d90

Please sign in to comment.