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_proto
Commits
c1d7ea89
Commit
c1d7ea89
authored
Mar 29, 2023
by
BO ZHANG
🏀
Browse files
use re.fullmatch
parent
b9013088
Pipeline
#280
failed with stages
in 8 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_proto/flip_image.py
View file @
c1d7ea89
...
...
@@ -63,6 +63,6 @@ def flip_multiple_images_mp(imgs: list, n_jobs: int) -> list:
def
flip_multiple_images_jl
(
imgs
:
list
,
n_jobs
:
int
)
->
list
:
""" parallel with joblib """
return
joblib
.
Parallel
(
n_jobs
=
n_jobs
)(
return
joblib
.
Parallel
(
n_jobs
=
n_jobs
,
backend
=
"multiprocessing"
)(
joblib
.
delayed
(
flip_image
)(
img
)
for
img
in
imgs
)
doc/preview.sh
100644 → 100755
View file @
c1d7ea89
File mode changed from 100644 to 100755
doc/source/ch11_data_products.rst
0 → 100644
View file @
c1d7ea89
Data
.. code-block:: python
import re
pattern = re.compile(
r"(?P<telescope>[A-Z]+)_"
r"(?P<instrument>[A-Z]+)_"
r"(?P<project>[A-Z]+)_"
r"(?P<data_type>[A-Z]+)_"
r"(?P<exp_start>[0-9]{14})_"
r"(?P<exp_stop>[0-9]{14})_"
r"(?P<obs_id>[0-9]{11})_"
r"(?P<detector>[0-9]{2})_"
r"L(?P<level>[0-9]{1}+)_"
r"V(?P<version>[0-9]{2}+).fits"
)
mo = re.fullmatch(pattern, r"CSST_MSC_MS_SCI_20270626203558_20270626203828_100000066_01_L0_1.fits")
print(mo.groupdict())
\ No newline at end of file
install.sh
deleted
100644 → 0
View file @
b9013088
echo
"CSST-PROTO Installer"
echo
"=============================================="
pip uninstall csst_proto
-y
echo
"Installing CSST-PROTO"
echo
"➡==============================================="
pip
install
git+https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto.git
echo
"➡==============================================="
echo
"🇨🇳🇨🇳🇨🇳🚀🚀🚀Done!"
install_local.sh
deleted
100644 → 0
View file @
b9013088
#!/usr/bin/env bash
rm
-rf
build
rm
-rf
dist
python setup.py build_ext
#python setup.py install
python setup.py sdist
pip
install
dist/
*
.tar.gz
--force-reinstall
rm
-rf
./
*
.egg-info
\ No newline at end of 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