Skip to content

Commit

Permalink
WIPPITY WIP NB
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Jul 18, 2024
1 parent 5289761 commit 8daeb9a
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions test-stuff.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "54eb4f40-8bde-45c1-9508-99944a3b5684",
"metadata": {},
"outputs": [],
"source": [
"import ipywidgets as ipw\n",
"from stellarphot.gui_tools.comparison_functions import ComparisonViewer\n",
"from stellarphot.gui_tools.seeing_profile_functions import SeeingProfileWidget\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "a0d3f825-f4f4-4b55-83e2-6f3584056cdf",
"metadata": {},
"outputs": [],
"source": [
"seeing_profile = SeeingProfileWidget(width=400)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "513754c9-84ac-41da-885a-84746395489a",
"metadata": {},
"outputs": [],
"source": [
"bright_mag_limit = 9\n",
"dim_mag_limit = 16\n",
"Cmag = 10\n",
"\n",
"# 👉 File to save photometry apertures in\n",
"apertures_file = \"aperture_locations.ecsv\"\n",
"comp_viewer = ComparisonViewer(\n",
" directory=\"..\",\n",
" target_mag=Cmag,\n",
" bright_mag_limit=bright_mag_limit,\n",
" dim_mag_limit=dim_mag_limit,\n",
" targets_from_file=None,\n",
" photom_apertures_file=apertures_file,\n",
" overwrite_outputs=True,\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4d354255-34ca-4295-8bea-fa215f7bbd5f",
"metadata": {},
"outputs": [],
"source": [
"tabs = ipw.Tab(children=[seeing_profile.box, comp_viewer.box], titles=[\"Seeing profile\", \"Comparison stars\"])\n",
"tabs"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "648a0bc4-8aa0-41bf-847c-9bd03854963b",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit 8daeb9a

Please sign in to comment.