Skip to content

Feature/fetch_CDSE update - #8

Open
jerrychlun wants to merge 36 commits into
mainfrom
feature/fetch_CDSE
Open

Feature/fetch_CDSE update#8
jerrychlun wants to merge 36 commits into
mainfrom
feature/fetch_CDSE

Conversation

@jerrychlun

@jerrychlun jerrychlun commented Jan 16, 2026

Copy link
Copy Markdown
Collaborator

金鑰.env.example需要建立與討論。
ingestion而來的input需要確認。
fetch_CDSE的output也需要細節確認。
目前先skip掉csv儲存在data/的pytest。
流程細節待建立。

@YenCheng1226 YenCheng1226 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

核心的event process 和save 大致沒有問題,但有一些bug 需要修正,再麻煩仔細看一下。另外這裡應該不用處理 event list 的input,下次開會會一起討論修正這塊

Comment thread tests/real_test_cdse.py Outdated
Comment thread tests/real_test_cdse.py Outdated
Comment thread src/search/fetch_CDSE.py Outdated
Comment thread src/search/fetch_CDSE.py Outdated
Comment thread src/search/fetch_CDSE.py Outdated
Comment on lines +208 to +214
start_dt = datetime.strptime(event["start_date"], "%Y-%m-%d")
end_dt = datetime.strptime(event["end_date"], "%Y-%m-%d")
full_start = start_dt - timedelta(days=int(event["pre_event_days"]))
full_end = end_dt + timedelta(days=int(event["post_event_days"]))
date_range = (
f"{full_start.strftime('%Y-%m-%d')}/{full_end.strftime('%Y-%m-%d')}"
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這邊應該是 ingestion.py 要做的事,下次會議會一起討論這部分

Comment thread src/search/fetch_CDSE.py Outdated
Comment thread src/search/fetch_CDSE.py Outdated

@YenCheng1226 YenCheng1226 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大致的process 和save 沒有問題,但有一些bu師,vum 要修正,再麻煩仔細看一下 comments 。
另外event list 轉datetime,我在思考怎麼跟ingestion.py 整合會最有效率,應該可以不需要在這裡parse。

@YenCheng1226 YenCheng1226 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug fix and performance optimization

Comment thread output_images/mock/EVENT_S2/metadata/S1_IMAGE_001.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants