Commit d41f24f8 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

brick

parent e76c47ac
import os
import unittest
from astropy.io import fits
from csst_dfs_api.facility.level2producer import Level2ProducerApi
class FacilityLevel2ProducerTestCase(unittest.TestCase):
def setUp(self):
self.api = Level2ProducerApi()
def test_find(self):
recs = self.api.find(module_id="MSC",limit = 0)
print('find:', recs)
def test_get(self):
rec = self.api.get(id=17)
print('get:', rec)
rec = self.api.get(obs_id='0000017')
print('get:', rec)
def test_update_proc_status(self):
rec = self.api.update_proc_status(obs_id='0000017', status = 3, )
print('update_proc_status:', rec)
def test_update_qc0_status(self):
rec = self.api.update_qc0_status(obs_id='0000017', status = 3, )
print('update_qc0_status:', rec)
......@@ -2,6 +2,7 @@ echo "CSST-DFS-API Installer"
echo "=============================================="
version=""
user=""
pip uninstall csst-dfs-api-local -y
pip uninstall csst-dfs-api-cluster -y
......@@ -12,14 +13,14 @@ pip uninstall csst-dfs-api -y
echo "Installing CSST DFS API with Version:$version"
echo "➡==============================================="
echo " 🛰 1️⃣/5️⃣"
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-commons.git$version
pip install$user git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-commons.git$version
echo " 🛰 2️⃣/5️⃣"
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-proto-py.git$version
pip install$user git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-proto-py.git$version
echo " 🛰 3️⃣/5️⃣"
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-local.git$version
pip install$user git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-local.git$version
echo " 🛰 4️⃣/5️⃣"
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-cluster.git$version
pip install$user git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-cluster.git$version
echo " 🛰 5️⃣/5️⃣"
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api.git$version
pip install$user git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api.git$version
echo "➡==============================================="
echo "🇨🇳🇨🇳🇨🇳🚀🚀🚀Done!"
\ 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