Skip to content

Commit

Permalink
feat: added skymodel and tests for them.
Browse files Browse the repository at this point in the history
fix: solved astro utils redshift check to find snaposhot
  • Loading branch information
MicheleDelliVeneri committed Dec 19, 2024
1 parent bf3e8cd commit 93aa510
Show file tree
Hide file tree
Showing 4 changed files with 640 additions and 8 deletions.
101 changes: 94 additions & 7 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/astro_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def redshift_to_snapshot(redshift):
}
snaps, redshifts = list(snap_db.keys())[::-1], list(snap_db.values())[::-1]
for i in range(len(redshifts) - 1):
if redshift >= redshifts[i] and redshift < redshifts[i + 1]:
if redshifts[i] <= redshift < redshifts[i + 1]:
return snaps[i]


Expand Down
Loading

0 comments on commit 93aa510

Please sign in to comment.