File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515# constants
1616CHUNK_SIZE = 1024
17- DEFAULT_VERSION = f"v{ __version__ } "
1817GITHUB_URL = "https://raw.githubusercontent.com/deshima-dev/rawdata"
18+ DEFAULT_TAG = f"v{ __version__ } "
1919
2020
2121def download (
@@ -24,21 +24,21 @@ def download(
2424 * ,
2525 dir : Path = Path (),
2626 progress : bool = True ,
27- version : str = DEFAULT_VERSION ,
27+ tag : str = DEFAULT_TAG ,
2828) -> Path :
2929 """Download DESHIMA raw data for given observation ID.
3030
3131 Args:
3232 obsid: Observation ID (YYYYmmddHHMMSS).
3333 dir: Directory where the raw data is saved.
3434 progress: Whether to show a progress bar.
35- version: Version of the raw data.
35+ tag: Git tag (or branch) of the raw data.
3636
3737 Returns:
3838 Path of the downloaded raw data.
3939
4040 """
41- url = f"{ GITHUB_URL } /{ version } /data/{ obsid } .tar.gz"
41+ url = f"{ GITHUB_URL } /{ tag } /data/{ obsid } .tar.gz"
4242
4343 if not (response := get (url , stream = True )).ok :
4444 response .raise_for_status ()
You can’t perform that action at this time.
0 commit comments