Skip to content

Commit

Permalink
Clean notebook outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
camposandro committed Jun 13, 2024
1 parent aab3ba0 commit 150842a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/data/generate_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,27 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import lsdb\n",
"from astropy.table import Table\n",
"\n",
"\n",
"def construct_df_from_fits(file_path):\n",
" dat = Table.read(file_path, format=\"fits\")\n",
" return dat.to_pandas()\n",
"\n",
"\n",
"def generate_catalog(catalog_name):\n",
" raw_fits = f\"./raw/{catalog_name}.fits\"\n",
" catalog = lsdb.from_dataframe(\n",
" construct_df_from_fits(raw_fits),\n",
" catalog_name=catalog_name,\n",
" catalog_type=\"object\",\n",
" )\n",
" catalog.to_hipscat(catalog_name)\n",
" "
" catalog.to_hipscat(catalog_name)"
]
},
{
Expand All @@ -42,7 +43,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -59,7 +60,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down

0 comments on commit 150842a

Please sign in to comment.