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
a267c84e
Commit
a267c84e
authored
2 years ago
by
xin
Browse files
Options
Download
Email Patches
Plain Diff
target position bug for config file in demo
parent
d4827682
master
develop
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
example/sim_demo1.py
+1
-1
example/sim_demo1.py
with
1 addition
and
1 deletion
+1
-1
example/sim_demo1.py
+
1
-
1
View file @
a267c84e
...
...
@@ -15,7 +15,7 @@ if __name__ == '__main__':
config
=
Config
(
dataDir
=
dataDir
)
sedFn
=
dataDir
+
'sed/sed_44575.txt'
psf
=
galsim
.
Gaussian
(
fwhm
=
0.39
)
specG
=
SpecGenerator
(
sedFn
=
sedFn
,
grating
=
'GI'
,
beam
=
'A'
,
aper
=
2.0
,
xcenter
=
5
000
,
ycenter
=
5000
,
p_size
=
0.074
,
psf
=
psf
,
skybg
=
0.3
,
dark
=
0.02
,
readout
=
5
,
t
=
150
,
expNum
=
1
,
config
=
config
)
specG
=
SpecGenerator
(
sedFn
=
sedFn
,
grating
=
'GI'
,
beam
=
'A'
,
aper
=
2.0
,
xcenter
=
2
000
,
ycenter
=
5000
,
p_size
=
0.074
,
psf
=
psf
,
skybg
=
0.3
,
dark
=
0.02
,
readout
=
5
,
t
=
150
,
expNum
=
1
,
config
=
config
)
specTab
,
specImg
,
img
,
fluxRa
=
specG
.
generateSpec1dforStar
()
fits
.
writeto
(
"specImg.fits"
,
specImg
,
overwrite
=
True
)
...
...
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