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-client
Commits
c1199533
Commit
c1199533
authored
Dec 29, 2024
by
Wei Shoulin
Browse files
IO write
parent
e0c4aa35
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_level1.py
View file @
c1199533
...
...
@@ -35,11 +35,16 @@ class Level1TestCase(unittest.TestCase):
def
test_write
(
self
):
file_path
=
"/Users/wsl/temp/csst/import/CSST_MSC_MS_SCI_20240609181116_20240609181347_10109100157991_27_L1_V01.fits"
# from io import BytesIO
# with open(file_path, "rb") as file:
# file_path = BytesIO(file.read())
result
=
level1
.
write
(
local_file
=
file_path
,
module_id
=
"MSC"
,
level0_id
=
"1010910015799127"
,
level1_id
=
"1010910015799127"
,
pipeline_id
=
"csst-msc-l1-mbi"
,
file_name
=
"CSST_MSC_MS_SCI_20240609181116_20240609181347_10109100157991_27_L1_V01.fits"
,
pmapname
=
"csst_000128.pmap"
,
file_type
=
'SCI'
,
build
=
1
,
...
...
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