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-dfs
csst-dfs-api
Commits
da5c6fee
Commit
da5c6fee
authored
1 year ago
by
Wei Shoulin
Browse files
Options
Download
Email Patches
Plain Diff
s-v
parent
bad9d9f6
main
master
1.0.3
1.0.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
csst_dfs_api/common/utils.py
+4
-4
csst_dfs_api/common/utils.py
csst_dfs_api/facility/level0.py
+1
-1
csst_dfs_api/facility/level0.py
tests/mbi/test_mbi_level2co.py
+1
-1
tests/mbi/test_mbi_level2co.py
with
6 additions
and
6 deletions
+6
-6
csst_dfs_api/common/utils.py
+
4
-
4
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
...
...
This diff is collapsed.
Click to expand it.
csst_dfs_api/facility/level0.py
+
1
-
1
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],
...
...
This diff is collapsed.
Click to expand it.
tests/mbi/test_mbi_level2co.py
+
1
-
1
View file @
da5c6fee
import
unittest
from
csst_dfs_api.mbi
.level2co
import
Level2CoApi
from
csst_dfs_api.mbi
import
Level2CoApi
class
MBILevel2CoDataTestCase
(
unittest
.
TestCase
):
...
...
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