Skip to content

Commit

Permalink
Merge pull request #38 from LSSTDESC/lynn/nersc-data
Browse files Browse the repository at this point in the history
Download tarfile from NERSC
  • Loading branch information
sschmidt23 authored Oct 24, 2023
2 parents 13719c7 + 6bcfe80 commit 6fbbd2a
Showing 1 changed file with 31 additions and 12 deletions.
43 changes: 31 additions & 12 deletions examples/BPZ_lite_with_custom_SEDs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,32 @@
"id": "f6adf3d9-0f22-49d5-bc79-f40af8b294a3",
"metadata": {},
"source": [
"## action needed before running the notebook:\n",
"\n",
"## action needed before running the notebook:"
]
},
{
"cell_type": "markdown",
"id": "0c7e49d7",
"metadata": {},
"source": [
"To download the tarfile from NERSC, **uncomment the cell below and execute it**"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "cfe0cdbb",
"metadata": {},
"outputs": [],
"source": [
"#!rail get-data --bpz-demo-data"
]
},
{
"cell_type": "markdown",
"id": "a9a7463d",
"metadata": {},
"source": [
"To actually untar and copy the files, **uncomment the lines in the cell below and execute the cell**"
]
},
Expand All @@ -37,8 +61,11 @@
"import os\n",
"custom_data_path = RAILDIR + '/rail/examples_data/estimation_data/data'\n",
"sedpath = RAILDIR + '/rail/examples_data/estimation_data/data/SED'\n",
"tarpath = RAILDIR + '/rail/examples_data/estimation_data/data/nonphysical_dc2_templates.tar'\n",
"\n",
"#os.environ['tempbpzsedpath'] = sedpath\n",
"#!tar -xvf nonphysical_dc2_templates.tar\n",
"#os.environ['tempbpztarpath'] = tarpath\n",
"#!tar -xvf $tempbpztarpath\n",
"#!mv DC2_DONOTUSE*.sed $tempbpzsedpath\n",
"#!mv baddc2templates.list $tempbpzsedpath"
]
Expand Down Expand Up @@ -525,14 +552,6 @@
"source": [
"Yes, in our one example PDF, number 109, we see almost no peak at high redshift, but rather a new peak at z~0.6, again demonstrating just how large of an impact the SED template set used has on photo-z results."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3a86e660-0bf5-4bd6-b9aa-27bc94f3b8e4",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -551,7 +570,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 6fbbd2a

Please sign in to comment.