Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
whuie2
experiment-control
Commits
39ae4f36
Commit
39ae4f36
authored
Jan 18, 2022
by
whooie
Browse files
code style
parent
f4c642f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/imaging.py
View file @
39ae4f36
...
...
@@ -318,13 +318,13 @@ def lmfit_gaussian(data, dA, k=None):
_Y
=
Y
[
sampler
,
sampler
]
def
model
(
params
:
lmfit
.
Parameters
):
A
=
params
[
"A"
]
x0
=
params
[
"x0"
]
sx
=
params
[
"sx"
]
y0
=
params
[
"y0"
]
sy
=
params
[
"sy"
]
th
=
params
[
"theta"
]
B
=
params
[
"B"
]
A
=
params
[
"A"
]
.
value
x0
=
params
[
"x0"
]
.
value
sx
=
params
[
"sx"
]
.
value
y0
=
params
[
"y0"
]
.
value
sy
=
params
[
"sy"
]
.
value
th
=
params
[
"theta"
]
.
value
B
=
params
[
"B"
]
.
value
_Xrel
=
_X
-
x0
_Yrel
=
_Y
-
y0
_Xrot
=
np
.
cos
(
th
)
*
_Xrel
+
np
.
sin
(
th
)
*
_Yrel
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment