Skip to content

Commit

Permalink
Fixing remaining PEP8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rizeladiaz committed Jan 13, 2025
1 parent 50b05c5 commit b51681b
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions notebooks/NIRSPEC/ifu/JWPipeNB-NIRSpec-IFU.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "15465922-ba78-42c0-b816-5114e86f6498",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -140,7 +140,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": null,
"id": "0cc84e97-2e63-4bd2-8fea-28e8836ea65a",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -259,7 +259,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "3f758419-689e-418e-bb25-4116adaea1dd",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -355,7 +355,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "1c43cc51-ca82-4e83-9a5c-b16347711cf4",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -423,7 +423,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "2eee95e5",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -523,7 +523,7 @@
" if bg_observtn:\n",
" os.makedirs(uncal_bgdir, exist_ok=True)\n",
"else:\n",
" print('Running with user provided data. ')"
" print('Running with user provided data. ')"
]
},
{
Expand All @@ -540,7 +540,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"id": "8d030abc-85d6-4313-84dd-b750c0bfcae0",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -625,7 +625,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "6b6ad497-7d84-4c36-819e-857181a40cf3",
"metadata": {
"scrolled": true
Expand Down Expand Up @@ -666,7 +666,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": null,
"id": "aff8ef3c-9bcf-467d-846f-896be31f909b",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -767,7 +767,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": null,
"id": "f26281a0-e2a5-475f-9197-37aba48b5c32",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -887,7 +887,7 @@
"\n",
" print(\"Stage 1 has been completed for SCI data\\n\")\n",
"else:\n",
" print('Skipping Detector1 processing for SCI data')\n"
" print('Skipping Detector1 processing for SCI data')"
]
},
{
Expand Down Expand Up @@ -928,7 +928,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": null,
"id": "3d405cdd-2c36-47ce-a7d6-098d10b9ea61",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -964,7 +964,7 @@
"\n",
"if bg_dir:\n",
" rate_bg = sorted(glob.glob(det1_bgdir + '*_rate*.fits'))\n",
" print(f\"BACKGROUND | RATE[INTS] Files:\\n{'-'*20}\\n\" + \"\\n\".join(rate_bg))\n"
" print(f\"BACKGROUND | RATE[INTS] Files:\\n{'-'*20}\\n\" + \"\\n\".join(rate_bg))"
]
},
{
Expand Down Expand Up @@ -1036,7 +1036,7 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": null,
"id": "3f431732",
"metadata": {},
"outputs": [],
Expand All @@ -1046,7 +1046,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": null,
"id": "e22a8e4e-fbc1-427c-b94e-f47393647edf",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1139,7 +1139,7 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": null,
"id": "a7f35660-6211-44e0-8c49-0fdad6845d3d",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1190,7 +1190,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": null,
"id": "9ac78ac0-0a85-45eb-8474-300b5e311699",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1226,7 +1226,7 @@
" steps=spec2dict_sci,\n",
" output_dir=spec2_dir)\n",
" print(f\"\\nRun time: {round((time.time()-start)/60.0, 1)} min\")\n",
" print(\"Stage 2 has been completed for SCI data!\\n\")\n"
" print(\"Stage 2 has been completed for SCI data!\\n\")"
]
},
{
Expand All @@ -1244,7 +1244,7 @@
"metadata": {},
"outputs": [],
"source": [
" # ------------------------Background RATE files------------------------\n",
"# ------------------------Background RATE files------------------------\n",
"if dospec2bg & master_bg:\n",
"\n",
" for rate in rate_bg:\n",
Expand Down Expand Up @@ -1279,7 +1279,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": null,
"id": "829af5d9-1ce8-4e68-a2c7-3cb8447c3f8a",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1371,7 +1371,7 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": null,
"id": "9d83257d",
"metadata": {},
"outputs": [],
Expand All @@ -1381,7 +1381,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": null,
"id": "4f0164f8-2fd6-4344-be02-a0c64d540a0b",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1457,9 +1457,9 @@
"source": [
"if dospec3:\n",
" if demo_mode:\n",
" # Get list of ALL spec3 ASN files.\n",
" spec3_asn = glob.glob(f\"{asn_dir}*spec3*asn.json\")\n",
" print(f\"Stage 3 ASN Files:\\n{'-'*20}\\n\" + \"\\n\".join(spec3_asn))\n",
" # Get list of ALL spec3 ASN files.\n",
" spec3_asn = glob.glob(f\"{asn_dir}*spec3*asn.json\")\n",
" print(f\"Stage 3 ASN Files:\\n{'-'*20}\\n\" + \"\\n\".join(spec3_asn))\n",
"\n",
" else:\n",
" if master_bg and bg_dir != '':\n",
Expand All @@ -1485,7 +1485,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": null,
"id": "f5b0b631-b299-45e6-80d9-d21f7471e4c1",
"metadata": {},
"outputs": [],
Expand All @@ -1499,7 +1499,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": null,
"id": "535ee4b0-0de5-4861-8b95-3edee20e8b14",
"metadata": {
"scrolled": true
Expand Down Expand Up @@ -1558,7 +1558,7 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": null,
"id": "67f88525-7784-43b0-9db5-ffd8ccf0f7ee",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1614,7 +1614,7 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": null,
"id": "c22f9d8d",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1771,7 +1771,7 @@
},
{
"cell_type": "code",
"execution_count": 45,
"execution_count": null,
"id": "6c8c4011",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -2296,7 +2296,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "nirspec_mos12",
"display_name": "nirspec-ifu12",
"language": "python",
"name": "python3"
},
Expand Down

0 comments on commit b51681b

Please sign in to comment.