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-pipeline
csst_common
Commits
5d22de31
Commit
5d22de31
authored
Dec 14, 2023
by
BO ZHANG
🏀
Browse files
add p.init_file and p.new_file
parent
5b03f95c
Pipeline
#2312
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_common/pipeline.py
View file @
5d22de31
...
...
@@ -5,7 +5,7 @@ import warnings
from
typing
import
Any
from
astropy
import
time
from
.file
import
File
from
.ccds
import
CCDS
from
.dfs
import
DFS
from
.logger
import
get_logger
...
...
@@ -105,6 +105,12 @@ class Pipeline:
# Reset warning filters
warnings
.
resetwarnings
()
def
init_file
(
self
,
file_path
):
return
File
(
file_path
,
new_dir
=
self
.
dir_output
)
def
new_file
(
self
,
file_name
=
"test.fits"
):
return
os
.
path
.
join
(
self
.
dir_output
,
file_name
)
# class ErrorTrace:
# """Write error trace to file."""
...
...
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