Skip to content

Commit

Permalink
fix: fix warning with positional argument in from methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Nov 15, 2023
1 parent b4618a4 commit cff0b0d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
21 changes: 10 additions & 11 deletions notebooks/STMOC from time ranges.ipynb

Large diffs are not rendered by default.

22 changes: 9 additions & 13 deletions notebooks/query_vizier_table.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"metadata": {},
"outputs": [],
"source": [
"from mocpy import MOC\n",
"import astropy.units as u"
"import astropy.units as u\n",
"from mocpy import MOC"
]
},
{
Expand All @@ -28,15 +28,7 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: Keyword 'TTYPE1' found more than once in a same HDU! We use the first occurrence.\n"
]
}
],
"outputs": [],
"source": [
"moc = MOC.from_vizier_table(\"VIII/84/7c\", nside=64)"
]
Expand Down Expand Up @@ -108,7 +100,7 @@
"source": [
"# table = moc.query_simbad(10000)\n",
"table = moc.query_vizier_table(\"I/239/hip_main\", max_rows=100000)\n",
"print(table)"
"table"
]
},
{
Expand All @@ -135,7 +127,11 @@
}
],
"source": [
"moc_table = MOC.from_lonlat(table[\"_RAJ2000\"].T * u.deg, table[\"_DEJ2000\"].T * u.deg, 7)\n",
"moc_table = MOC.from_lonlat(\n",
" table[\"_RAJ2000\"].T * u.deg,\n",
" table[\"_DEJ2000\"].T * u.deg,\n",
" max_norder=7,\n",
")\n",
"moc_table.display_preview()"
]
}
Expand Down

0 comments on commit cff0b0d

Please sign in to comment.