Fix models notebook
"metadata": {},
"outputs": [],
"source": [
- "from regions import write_ds9\n",
+ "from regions import Regions\n",
"\n",
- "regions = [gauss.to_region(), gauss_elongated.to_region()]\n",
+ "regions = Regions([gauss.to_region(), gauss_elongated.to_region()])\n",
"\n",
"filename = \"regions.reg\"\n",
- "write_ds9(\n",
- " regions,\n",
+ "regions.write(\n",
" filename,\n",
- " coordsys=\"galactic\",\n",
- " fmt=\".4f\",\n",
- " radunit=\"deg\",\n",
+ " format=\"ds9\",\n",
" overwrite=True,\n",
")"
]
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.7.12"
+ "version": "3.9.12"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
