Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
xin
Browse files
Options
Download
Email Patches
Plain Diff
fix gen gal bug,lost self.t
parent
20c2993a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
SpecGen/SpecGenerator.py
+1
-1
SpecGen/SpecGenerator.py
with
1 addition
and
1 deletion
+1
-1
SpecGen/SpecGenerator.py
+
1
-
1
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
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets