Skip to content

Commit

Permalink
infty -> inf; bump python version for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-j committed Aug 27, 2024
1 parent 258b6b1 commit 7648e67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.11"]
os: [ubuntu-latest, macos-latest]
steps:
- name: Clone the repo
Expand Down
4 changes: 2 additions & 2 deletions prospect/fitting/fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def lnprobfn(theta, model=None, observations=None, sps=None,
"""
if residuals:
ndof = np.sum([obs["ndof"] for obs in observations])
lnnull = np.zeros(ndof) - 1e18 # -np.infty
lnnull = np.zeros(ndof) - 1e18 # -np.inf
else:
lnnull = -np.infty
lnnull = -np.inf

# --- Calculate prior probability and exit if not within prior ---
lnp_prior = model.prior_product(theta, nested=nested)
Expand Down

0 comments on commit 7648e67

Please sign in to comment.