File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
# PSFModels.jl
2
2
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 )
4
4
[ ![ PkgEval] ( https://juliaci.github.io/NanosoldierReports/pkgeval_badges/P/PSFModels.svg )] ( https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html )
5
5
[ ![ Coverage] ( https://codecov.io/gh/juliaastro/PSFModels.jl/branch/master/graph/badge.svg?branch=master )] ( https://codecov.io/gh/juliaastro/PSFModels.jl )
6
6
[ ![ License] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
@@ -90,8 +90,7 @@ m .* arr
90
90
# get overlapped cutouts for the PSF and the array
91
91
inds = map (intersect, axes (arr), axes (m))
92
92
arr_stamp = @view arr[inds... ]
93
- # use `amp * m` to create ScaledPSFModel (could also just broadcast)
93
+ m_stamp = @view m[inds ... ]
94
94
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
97
96
```
You can’t perform that action at this time.
0 commit comments