REMOVE files in data/obs/jupyter/*fits

jupyter
Jeff Moe 2022-09-10 15:16:58 -06:00
parent d689f49d87
commit aa47cd57b0
1 changed files with 16 additions and 1 deletions

View File

@ -508,7 +508,7 @@
" obsid = \"%s_%d/%s\" % (time.strftime(\"%Y%m%d\", trestart), device_id, time.strftime(\"%H%M%S\", trestart))\n",
" #filepath = os.path.join(path, obsid)\n",
" # XXX\n",
" filepath = (\"data/obs/jupyter\")\n",
" #filepath = (\"data/obs/jupyter\")\n",
" logger.info(\"Storing files in %s\" % filepath)\n",
" # Create output directory\n",
" if not os.path.exists(filepath):\n",
@ -918,6 +918,21 @@
" logger.info(\"Using config: %s\" % conf_file)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
" # XXX remove FITS files in jupyter dir XXX\n",
" filepath = (\"data/obs/jupyter\")\n",
" ffits = glob.glob(\"data/obs/jupyter/*.fits\", recursive=False)\n",
" for ffit in ffits:\n",
" print(\"Removing\", ffit)\n",
" os.remove(ffit)\n",
" ffits = glob.glob(\"data/obs/jupyter/*.fits\", recursive=False)"
]
},
{
"cell_type": "code",
"execution_count": null,