Skip to content

Commit ffd2ba0

Browse files
committed
update README
1 parent d663ae9 commit ffd2ba0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PSFModels.jl
22

3-
[![Build Status](https://github.com/juliaastro/PSFModels.jl/workflows/CI/badge.svg)](https://github.com/juliaastro/PSFModels.jl/actions)
3+
[![Build Status](https://github.com/juliaastro/PSFModels.jl/workflows/CI/badge.svg?branch=master)](https://github.com/juliaastro/PSFModels.jl/actions)
44
[![PkgEval](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/P/PSFModels.svg)](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html)
55
[![Coverage](https://codecov.io/gh/juliaastro/PSFModels.jl/branch/master/graph/badge.svg?branch=master)](https://codecov.io/gh/juliaastro/PSFModels.jl)
66
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -90,8 +90,7 @@ m .* arr
9090
# get overlapped cutouts for the PSF and the array
9191
inds = map(intersect, axes(arr), axes(m))
9292
arr_stamp = @view arr[inds...]
93-
# use `amp * m` to create ScaledPSFModel (could also just broadcast)
93+
m_stamp = @view m[inds...]
9494
amp = 1.24
95-
m_stamp = @view (amp * m)[inds...]
96-
resid = sum(abs2, arr_stamp .- m_stamp) # chi-square loss
95+
resid = sum(abs2, arr_stamp .- amp .* m_stamp) # chi-square loss
9796
```

0 commit comments

Comments
 (0)