Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zhang Xin
Sls 1d Spec
Commits
b24b5ae9
Commit
b24b5ae9
authored
Aug 03, 2022
by
xin
Browse files
fix gen gal bug,lost self.t
parent
20c2993a
Changes
1
Show whitespace changes
Inline
Side-by-side
SpecGen/SpecGenerator.py
View file @
b24b5ae9
...
...
@@ -167,7 +167,7 @@ class SpecGenerator(object):
thp_w
=
thp_i
(
w
)
deltW
=
(
w
-
wave_pix
[
i
-
1
])
/
2
+
(
wave_pix
[
i
+
1
]
-
w
)
/
2
f
=
spec_pix
[
wave_pos
[
0
]
-
1
+
i
]
f
=
f
/
t
/
thp_w
/
deltW
/
self
.
expNum
f
=
f
/
self
.
t
/
thp_w
/
deltW
/
self
.
expNum
err
=
err2_pix
[
wave_pos
[
0
]
-
1
+
i
]
# err = err/ t / deltW
err
=
np
.
sqrt
(
err
)
/
self
.
t
/
deltW
/
thp_w
/
self
.
expNum
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment