Commit c1d7ea89 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

use re.fullmatch

parent b9013088
Pipeline #280 failed with stages
in 8 seconds
......@@ -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
)
File mode changed from 100644 to 100755
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
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!"
#!/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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment