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
csst-sims
csst_ifs_sim
Commits
4716160c
Commit
4716160c
authored
1 year ago
by
Yan Zhaojun
Browse files
Options
Download
Email Patches
Plain Diff
more case test
parent
b4201fbc
develop
main
master
yanzhaojun-develop-patch-92489
No related merge requests found
Pipeline
#4070
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
csst_ifs_sim/CTI/CTI.py
+2
-2
csst_ifs_sim/CTI/CTI.py
csst_ifs_sim/csst_ifs_sim.py
+22
-22
csst_ifs_sim/csst_ifs_sim.py
with
24 additions
and
24 deletions
+24
-24
csst_ifs_sim/CTI/CTI.py
+
2
-
2
View file @
4716160c
...
...
@@ -87,8 +87,8 @@ class CDM03bidir():
Set up the logger.
"""
self
.
logger
=
True
if
self
.
log
is
None
:
self
.
logger
=
False
#
if self.log is None:
#
self.logger = False
def
applyRadiationDamage
(
self
,
data
,
iquadrant
=
0
):
...
...
This diff is collapsed.
Click to expand it.
csst_ifs_sim/csst_ifs_sim.py
+
22
-
22
View file @
4716160c
...
...
@@ -573,32 +573,32 @@ def dt2hmd(dt):
return
str_h
+
':'
+
str_m
+
':'
+
str_d
###############################################################################
def
float2char
(
a
,
z
):
"""
#
def float2char(a, z):
#
"""
Parameters
----------
a : TYPE
DESCRIPTION.
z : TYPE
DESCRIPTION.
Returns
-------
TYPE
DESCRIPTION.
# Parameters
# ----------
# a : TYPE
# DESCRIPTION.
# z : TYPE
# DESCRIPTION.
"""
# a is input float value
# transfer float a to chars and save z bis
b
=
str
(
a
)
n
=
len
(
b
)
# Returns
# -------
# TYPE
# DESCRIPTION.
if
z
>=
n
:
return
b
else
:
return
b
[:
z
]
# """
# # a is input float value
# # transfer float a to chars and save z bis
# b = str(a)
# n = len(b)
# if z >= n:
# return b
# else:
# return b[:z]
###############################################################################
...
...
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