Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maoppy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LAM-GRD-public
maoppy
Commits
ce8b303e
Commit
ce8b303e
authored
3 years ago
by
rfetick
Browse files
Options
Downloads
Patches
Plain Diff
replace _np by np (correct for bug)
parent
7e233e0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
maoppy/psfmodel.py
+5
-5
5 additions, 5 deletions
maoppy/psfmodel.py
with
5 additions
and
5 deletions
maoppy/psfmodel.py
+
5
−
5
View file @
ce8b303e
...
...
@@ -407,21 +407,21 @@ class ParametricPSFfromPSD(ParametricPSF):
self
.
fixed_k
=
fixed_k
self
.
system
=
system
self
.
npix
=
npix
# "_" to bypass the _computeXYarray update, that will be made with samp setter
self
.
_
npix
=
npix
# "_" to bypass the _computeXYarray update, that will be made with samp setter
self
.
samp
=
samp
# also init _computeXYarray and _otfDiffraction
self
.
nparam
=
nparam
self
.
_
nparam
=
nparam
self
.
bounds
=
((
-
np
.
inf
,)
*
nparam
,
(
np
.
inf
,)
*
nparam
)
@property
def
npix
(
self
):
"""
Number of required pixels for arrays
"""
return
self
.
npix
return
self
.
_
npix
@npix.setter
def
npix
(
self
,
value
):
self
.
npix
=
value
self
.
_
npix
=
value
self
.
_computeXYarray
()
self
.
_computeOtfDiffraction
()
...
...
@@ -508,7 +508,7 @@ class ParametricPSFfromPSD(ParametricPSF):
parampsd
=
np
.
array
(
parampsd
)
bdn
=
np
.
array
(
bdn
)
bup
=
np
.
array
(
bup
)
if
len
(
parampsd
)
!=
self
.
nparam
:
if
len
(
parampsd
)
!=
self
.
_
nparam
:
raise
ValueError
(
'
len(parampsd) is different from length of bounds
'
)
if
np
.
any
(
parampsd
<
bdn
):
raise
ValueError
(
'
Lower bounds are not respected
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment