From 5d44851fa57c3850a97e9011278bf025e420fa30 Mon Sep 17 00:00:00 2001 From: shoulinwei Date: Tue, 27 Jun 2023 13:29:33 +0800 Subject: [PATCH] add object_name --- csst_dfs_api/facility/level1.py | 1 + csst_dfs_api/functional/{msc.py => mbi.py} | 0 tests/mbi/test_mbi_level2.py | 4 ++++ tools/csst-dfs-api-install.sh | 12 ++++++------ 4 files changed, 11 insertions(+), 6 deletions(-) rename csst_dfs_api/functional/{msc.py => mbi.py} (100%) diff --git a/csst_dfs_api/facility/level1.py b/csst_dfs_api/facility/level1.py index c764a44..f2bdd16 100644 --- a/csst_dfs_api/facility/level1.py +++ b/csst_dfs_api/facility/level1.py @@ -26,6 +26,7 @@ class Level1DataApi(object): pipeline_id: [str], detector_no: [str], filter: [str], + object_name: [str], limit: limits returns the number of records,default 0:no-limit :returns: csst_dfs_common.models.Result diff --git a/csst_dfs_api/functional/msc.py b/csst_dfs_api/functional/mbi.py similarity index 100% rename from csst_dfs_api/functional/msc.py rename to csst_dfs_api/functional/mbi.py diff --git a/tests/mbi/test_mbi_level2.py b/tests/mbi/test_mbi_level2.py index 3ce9127..8f62fb4 100644 --- a/tests/mbi/test_mbi_level2.py +++ b/tests/mbi/test_mbi_level2.py @@ -15,6 +15,10 @@ class MBILevel2DataTestCase(unittest.TestCase): create_time = ("2022-06-15 11:12:13","2022-06-16 11:12:13")) print('find:', recs) + def test_find_existed_brick_ids(self): + recs = self.api.find_existed_brick_ids() + print('find_existed_brick_ids:', recs) + def test_catalog_query(self): result = self.api.catalog_query( obs_id = '100000133', diff --git a/tools/csst-dfs-api-install.sh b/tools/csst-dfs-api-install.sh index 79d703e..6fd6b2e 100755 --- a/tools/csst-dfs-api-install.sh +++ b/tools/csst-dfs-api-install.sh @@ -12,15 +12,15 @@ pip uninstall csst-dfs-api -y echo "Installing CSST DFS API with Version:$version" echo "➑===============================================" -echo " πŸ›° 1️⃣/5️⃣" +echo " πŸ›° 1️⃣ /5️⃣" pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-commons.git$version -echo " πŸ›° 2️⃣/5️⃣" +echo " πŸ›° 2️⃣ /5️⃣" pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-proto-py.git$version -echo " πŸ›° 3️⃣/5️⃣" +echo " πŸ›° 3️⃣ /5️⃣" pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api-local.git$version -echo " πŸ›° 4️⃣/5️⃣" +echo " πŸ›° 4️⃣ /5️⃣" pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api-cluster.git$version -echo " πŸ›° 5️⃣/5️⃣" +echo " πŸ›° 5️⃣ /5️⃣" pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api.git$version echo "➑===============================================" -echo "πŸ‡¨πŸ‡³πŸ‡¨πŸ‡³πŸ‡¨πŸ‡³πŸš€πŸš€πŸš€Done!" \ No newline at end of file +echo "πŸ‡¨πŸ‡³ πŸ‡¨πŸ‡³ πŸ‡¨πŸ‡³ πŸš€ πŸš€ πŸš€ Done!" \ No newline at end of file -- GitLab