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-client
Commits
c1199533
Commit
c1199533
authored
3 months ago
by
Wei Shoulin
Browse files
Options
Download
Email Patches
Plain Diff
IO write
parent
e0c4aa35
main
20241229
1.0.2-20250101
1.0.1-202511
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_level1.py
+5
-0
tests/test_level1.py
with
5 additions
and
0 deletions
+5
-0
tests/test_level1.py
+
5
-
0
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
,
...
...
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