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
3fa20822
Commit
3fa20822
authored
Jun 28, 2022
by
xin
Browse files
fix bug disperse; add readme.pdf
parent
656f17cb
Changes
3
Show whitespace changes
Inline
Side-by-side
README.pdf
0 → 100644
View file @
3fa20822
File added
SpecDisperser/SpecDisperser.py
View file @
3fa20822
'''
Author: zx
Date: 2021-04-08 13:49:35
LastEditTime: 2022-0
5
-2
0 08:45:0
3
LastEditTime: 2022-0
6
-2
8 19:20:2
3
LastEditors: xin zhangxinbjfu@gmail.com
Description: In User Settings Edit
FilePath: /undefined/Users/zhangxin/Work/SlitlessSim/sls_lit_demo/SpecDisperser/SpecDisperser.py
...
...
SpecDisperser/disperse_c/interp.pyx
View file @
3fa20822
...
...
@@ -189,7 +189,7 @@ def interp_conserve_c(np.ndarray[DTYPE_t, ndim=1] x, np.ndarray[DTYPE_t, ndim=1]
if
(
templmid
[
k
+
1
]
==
tlam
[
i
])
&
(
i
<
ntlam
):
h
=
tlam
[
i
]
-
tlam
[
i
-
1
];
numsum
+=
h
*
(
tf
[
i
]
+
tf
[
i
-
1
]);
el
se
:
el
if
(
i
<
ntlam
)
:
i
-=
1
;
h
=
templmid
[
k
+
1
]
-
tlam
[
i
];
numsum
+=
h
*
(
tempfmid
[
k
+
1
]
+
tf
[
i
]);
...
...
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