Skip to content

Commit

Permalink
test crossing time
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsavel committed Aug 18, 2024
1 parent a0eaf0e commit 29a2be2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/scope/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_crossing_time_moremassive_star(self):
"""
low_mass_time, _, _, _ = calc_crossing_time()

high_mass_time, _, _, _ = calc_crossing_time(10 * self.mstar)
high_mass_time, _, _, _ = calc_crossing_time(mstar=10 * self.mstar)
assert low_mass_time > high_mass_time

def test_crossing_time_moremassive_star(self):
Expand All @@ -219,7 +219,7 @@ def test_crossing_time_moremassive_star(self):
"""
short_period_time, _, _, _ = calc_crossing_time()

long_period_time, _, _, _ = calc_crossing_time(10 * self.period)
long_period_time, _, _, _ = calc_crossing_time(period=10 * self.period)
assert short_period_time < long_period_time

def test_crossing_time_pixel_per_res(self):
Expand All @@ -228,7 +228,9 @@ def test_crossing_time_pixel_per_res(self):
"""
_, few_pixels_per_element, _, _ = calc_crossing_time()

_, many_pixels_per_element, _, _ = calc_crossing_time(10 * self.pix_per_res)
_, many_pixels_per_element, _, _ = calc_crossing_time(
pix_per_res=10 * self.pix_per_res
)
assert many_pixels_per_element < few_pixels_per_element

def test_crossing_time_resolution(self):
Expand All @@ -237,5 +239,5 @@ def test_crossing_time_resolution(self):
"""
low_resolution_time, _, _, _ = calc_crossing_time()

high_resolution_time, _, _, _ = calc_crossing_time(10 * self.resolution)
assert high_resolution_time < high_resolution_time
high_resolution_time, _, _, _ = calc_crossing_time(R=10 * self.R)
assert high_resolution_time < low_resolution_time

0 comments on commit 29a2be2

Please sign in to comment.