Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8af44e8
Add cpu monitoring and memory usage tools.
jrhosk Feb 15, 2026
9410515
Add cpu monitoring and memory usage tools.
jrhosk Feb 20, 2026
1e9eb73
Add DisplayDict
jrhosk Feb 20, 2026
71935bc
Add additional feature.
jrhosk Feb 24, 2026
7c5cc6b
Add additional feature + tests?
jrhosk Feb 25, 2026
4c0d9f9
Add additional feature + tests?
jrhosk Feb 25, 2026
568c938
[black] Add additional feature + tests?
jrhosk Feb 25, 2026
716e77b
[black] Add even more additional feature + tests?
jrhosk Feb 25, 2026
67abb70
[black] Add even more additional feature + tests?
jrhosk Feb 25, 2026
277b918
[black] Add even more additional feature + tests?
jrhosk Feb 27, 2026
4dbf973
[black] Add even more additional feature + tests?
jrhosk Feb 27, 2026
3ecbbcd
[black] Add even more additional feature + tests?
jrhosk Feb 27, 2026
f43039b
[black] Add even more additional feature + tests?
jrhosk Feb 28, 2026
a9c3b67
[black] Add even more additional feature + tests?
jrhosk Feb 28, 2026
c105b90
[black] Add even more additional feature + tests?
jrhosk Feb 28, 2026
2cdeaa0
Fix small things in the notebooks.
jrhosk Mar 2, 2026
a35d940
Various fixes along with adding prototyping for graph creation.
jrhosk Mar 9, 2026
bb472d5
Add notebooks.
jrhosk Mar 9, 2026
bb7f9ed
Add xarray.
jrhosk Mar 9, 2026
1f465d4
Stupid notebook tests.
jrhosk Mar 9, 2026
b9f8534
Stupid notebook tests, part-II
jrhosk Mar 9, 2026
52de9a8
Updates~
jrhosk Mar 10, 2026
27c2136
Updates~ II
jrhosk Mar 10, 2026
e60bd81
Updates~ III
jrhosk Mar 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 12 additions & 22 deletions docs/add_entry.ipynb → add_entry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
"toolviper.utils.data.update(path=str(path))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0dda04ad-1ecc-4925-92bb-9a608f81d7e1",
"metadata": {},
"outputs": [],
"source": [
"toolviper.utils.data.get_file_size(str(path))"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -33,11 +43,11 @@
"entries = []\n",
"\n",
"entry = {\n",
" \"file\": str(path.joinpath(\"ngc5921-lsrk-cube.psf.zip\")),\n",
" \"file\": str(path.joinpath(\"upload/casa_no_sky_to_xds_true.zarr.zip\")),\n",
" \"path\": \"radps/image\",\n",
" \"dtype\": \"CASA image\",\n",
" \"telescope\": \"VLA\",\n",
" \"mode\": \"Interferometric\"\n",
" \"mode\": \"Simulated\"\n",
"}\n",
"\n",
"entries.append(entry)"
Expand All @@ -56,26 +66,6 @@
" versioning=\"patch\"\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a113bb2b-fed4-4ede-8d8b-353958f59602",
"metadata": {},
"outputs": [],
"source": [
"#toolviper.utils.data.update()\n",
"\n",
"#toolviper.utils.data.download(file=\"ngc5921-lsrk-cube.psf\", folder=\"test\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7df91b02-3e25-4989-a76e-20ca4b7a9cb2",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
5 changes: 1 addition & 4 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ API
.. toctree::
:maxdepth: 2

_api/autoapi/toolviper/dask/client/index
_api/autoapi/toolviper/graph_tools/coordinate_utils/index
_api/autoapi/toolviper/graph_tools/map/index
_api/autoapi/toolviper/graph_tools/reduce/index
_api/autoapi/toolviper/dask/client/index
4 changes: 2 additions & 2 deletions docs/client_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"outputs": [],
"source": [
"toolviper.utils.data.download(file=\"AA2-Mid-sim_00000.ms\")"
"toolviper.utils.data.download(file=\"AA2-Mid-sim_00000.ms\", folder=\"data\")"
]
},
{
Expand Down Expand Up @@ -197,7 +197,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.13"
"version": "3.12.12"
}
},
"nbformat": 4,
Expand Down
47 changes: 23 additions & 24 deletions docs/download_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@
"import toolviper"
]
},
{
"cell_type": "markdown",
"id": "01bc8397-af47-48df-8391-733bba286588",
"metadata": {},
"source": [
"## Getting download metadata version\n",
"#### This will retireve the current file download metadata version; if the file is not found it will attempt to update to the most recent version."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -31,50 +22,58 @@
},
{
"cell_type": "markdown",
"id": "fe18a0d9-bd21-4ce5-91fd-6348e5f1369e",
"id": "0351dda7-7559-449d-9ebb-c853beb0861e",
"metadata": {},
"source": [
"### Manually update metdata info."
"## Getting available downloadable file in a python list.\n",
"#### This will return an unordered list of the available file on the remote dropbox in a python list. This can be used as an input to thie download function as well."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "deeee662-94d9-44a0-95e7-f062f55223ca",
"id": "2912a5ae-7a4b-42f3-a633-cbe5ecaffc74",
"metadata": {},
"outputs": [],
"source": [
"toolviper.utils.data.update()"
"files = toolviper.utils.data.get_files()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "28c8b343-3a05-4217-a581-e51c7db95d02",
"metadata": {},
"outputs": [],
"source": [
"toolviper.utils.data.download(file=files[3:8], folder=\"data\")"
]
},
{
"cell_type": "markdown",
"id": "0351dda7-7559-449d-9ebb-c853beb0861e",
"id": "01bc8397-af47-48df-8391-733bba286588",
"metadata": {},
"source": [
"## Getting available downloadable file in a python list.\n",
"#### This will return an unordered list of the available file on the remote dropbox in a python list. This can be used as an input to thie download function as well."
"## Getting download metadata version\n",
"#### This will retireve the current file download metadata version; if the file is not found it will attempt to update to the most recent version."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2912a5ae-7a4b-42f3-a633-cbe5ecaffc74",
"cell_type": "markdown",
"id": "fe18a0d9-bd21-4ce5-91fd-6348e5f1369e",
"metadata": {},
"outputs": [],
"source": [
"files = toolviper.utils.data.get_files()\n",
"files"
"### Manually update metdata info."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "28c8b343-3a05-4217-a581-e51c7db95d02",
"id": "d521c952-7f30-4454-8548-de5ac5b98d82",
"metadata": {},
"outputs": [],
"source": [
"toolviper.utils.data.download(file=files[6:8], folder=\"data\")"
"toolviper.utils.data.update()"
]
},
{
Expand Down
File renamed without changes.
File renamed without changes.
59 changes: 35 additions & 24 deletions docs/file-manifest-update.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "33d17704-1b0c-40dc-929c-75338f83c3c2",
"metadata": {},
"outputs": [],
"source": [
"import toolviper\n",
"import pathlib"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": null,
"id": "7b0ca451-df41-4d13-ac4c-3e2b7601eba4",
"metadata": {},
"outputs": [],
"source": [
"def make_random_file(file):\n",
" import random\n",
Expand All @@ -27,46 +25,57 @@
" handle.write(random.randbytes(1024))\n",
"\n",
" subprocess.run([\"zip\", \"-r\", f\"{file}.zip\", file])"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": null,
"id": "937a9e64-cc8a-4283-a3d8-1f5118592d52",
"metadata": {},
"outputs": [],
"source": [
"path = pathlib.Path().cwd()\n",
"\n",
"toolviper.utils.data.update(path=str(path))"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": null,
"id": "8e66f912-d356-486b-8992-6e3ce62ad672",
"id": "8589d72e-c594-400a-8660-f54336b9c4d6",
"metadata": {},
"source": [
"_json = toolviper.utils.tools.open_json(\"file.download.json\")\n",
"toolviper.utils.display.DataDict.html(_json[\"metadata\"])"
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"id": "8e66f912-d356-486b-8992-6e3ce62ad672",
"metadata": {},
"source": [
"make_random_file(file=\"single-dish.ultra.calibrated.ms\")"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": null,
"id": "05c07272-88ee-424a-9219-78e3ea52a0d7",
"metadata": {},
"outputs": [],
"source": [
"make_random_file(file=\"alma.mega.uncalibrated.ms\")"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": null,
"id": "7fd8b0b1-302b-454d-921b-9929af36e44e",
"metadata": {},
"outputs": [],
"source": [
"entries = []\n",
"\n",
Expand All @@ -79,14 +88,14 @@
"}\n",
"\n",
"entries.append(entry)"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": null,
"id": "d2bc0fd4-64c3-42e4-9422-9c6dd69a9c32",
"metadata": {},
"outputs": [],
"source": [
"entry = {\n",
" \"file\": str(path.joinpath(\"alma.mega.uncalibrated.ms.zip\")),\n",
Expand All @@ -97,21 +106,23 @@
"}\n",
"\n",
"entries.append(entry)"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": null,
"id": "0e98fb83-eb71-408d-b476-1d821d14b7f0",
"metadata": {},
"outputs": [],
"source": [
"_ = toolviper.utils.tools.add_entry(\n",
" entries=entries,\n",
" manifest=str(path.joinpath(\"file.download.json\")),\n",
" versioning=\"patch\"\n",
")"
]
],
"outputs": [],
"execution_count": null
}
],
"metadata": {
Expand Down
Loading
Loading