Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download tarfile from NERSC #38

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading