Skip to content

Commit

Permalink
Remove members
Browse files Browse the repository at this point in the history
  • Loading branch information
FDauphin committed Sep 12, 2024
1 parent bf96106 commit 15a9655
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions notebooks/WFC3/mast_api_psf/download_psf_cutouts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"With the `.tar.gz` file downloaded, we safely extract the cutouts. `get_safe_members` ensures only safe files are extracted."
"With the `.tar.gz` file downloaded, we safely extract the cutouts."
]
},
{
Expand All @@ -307,8 +307,6 @@
"with tarfile.open(filename_bundle, 'r:gz') as tar:\n",
" path_mast = tar.getnames()[0]\n",
" print(f'Path to MAST PSF Cutouts: {path_mast}')\n",
" members = tar.getmembers()\n",
" safe_members = get_safe_members(members)\n",
" tar.extractall(filter='data')"
]
},
Expand Down

0 comments on commit 15a9655

Please sign in to comment.