REMOVE files in data/obs/jupyter/*fits
parent
d689f49d87
commit
aa47cd57b0
17
learn.ipynb
17
learn.ipynb
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue