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
csst-dfs
csst-dfs-api
Commits
da5c6fee
Commit
da5c6fee
authored
Jul 04, 2023
by
Wei Shoulin
Browse files
s-v
parent
bad9d9f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api/common/utils.py
View file @
da5c6fee
...
...
@@ -92,13 +92,13 @@ def tuple_fields_dtypes(rec: tuple):
if
type
(
f
)
==
int
:
dtypes
.
append
(
'i8'
)
elif
type
(
f
)
==
float
:
dtypes
.
append
(
'f8'
)
dtypes
.
append
(
'f8'
)
elif
type
(
f
)
==
str
:
dtypes
.
append
(
'
S2
'
)
dtypes
.
append
(
'
V
'
)
elif
type
(
f
)
==
list
:
dtypes
.
append
(
'(12,)f8'
)
dtypes
.
append
(
'(12,)f8'
)
else
:
dtypes
.
append
(
'
S2'
)
dtypes
.
append
(
'
V'
)
dtypes
=
tuple
(
dtypes
)
return
dtypes
...
...
csst_dfs_api/facility/level0.py
View file @
da5c6fee
...
...
@@ -82,7 +82,7 @@ class Level0DataApi(object):
def
write
(
self
,
**
kwargs
):
''' insert a level0 data record into database
:param kwargs: Parameter dictionary, key items support:
obs_id = [str],
detector_no = [str],
...
...
tests/mbi/test_mbi_level2co.py
View file @
da5c6fee
import
unittest
from
csst_dfs_api.mbi
.level2co
import
Level2CoApi
from
csst_dfs_api.mbi
import
Level2CoApi
class
MBILevel2CoDataTestCase
(
unittest
.
TestCase
):
...
...
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