Skip to content

Commit 96057d5

Browse files
authored
Merge pull request #342 from ckarwin/v0.3.x
now showing plots in dataIO tutorial
2 parents b4749eb + bcf1fd6 commit 96057d5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/tutorials/DataIO/DataIO_example.ipynb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@
553553
}
554554
],
555555
"source": [
556-
"analysis.get_raw_spectrum()"
556+
"analysis.get_raw_spectrum(show_plots=True)"
557557
]
558558
},
559559
{
@@ -581,7 +581,7 @@
581581
],
582582
"source": [
583583
"# LC in plot below is normalized to initial time. \n",
584-
"analysis.get_raw_lightcurve()"
584+
"analysis.get_raw_lightcurve(show_plots=True)"
585585
]
586586
},
587587
{
@@ -678,7 +678,7 @@
678678
],
679679
"source": [
680680
"analysis = BinnedData(\"inputs.yaml\")\n",
681-
"analysis.get_binned_data(unbinned_data=\"unbinned_data.hdf5\", output_name=\"binned_data\", make_binning_plots=True)"
681+
"analysis.get_binned_data(unbinned_data=\"unbinned_data.hdf5\", output_name=\"binned_data\", make_binning_plots=True, show_plots=True)"
682682
]
683683
},
684684
{
@@ -804,8 +804,8 @@
804804
}
805805
],
806806
"source": [
807-
"analysis.get_raw_spectrum(binned_data=\"binned_data.hdf5\", output_name=\"crab_spec\")\n",
808-
"analysis.get_raw_lightcurve(binned_data=\"binned_data.hdf5\", output_name=\"crab_lc\")"
807+
"analysis.get_raw_spectrum(binned_data=\"binned_data.hdf5\", output_name=\"crab_spec\", show_plots=True)\n",
808+
"analysis.get_raw_lightcurve(binned_data=\"binned_data.hdf5\", output_name=\"crab_lc\", show_plots=True)"
809809
]
810810
},
811811
{
@@ -928,8 +928,8 @@
928928
}
929929
],
930930
"source": [
931-
"analysis.get_raw_spectrum(binned_data=\"combined_binned_data.hdf5\", output_name=\"crab_spec_3x\")\n",
932-
"analysis.get_raw_lightcurve(binned_data=\"combined_binned_data.hdf5\", output_name=\"crab_lc_3x\")"
931+
"analysis.get_raw_spectrum(binned_data=\"combined_binned_data.hdf5\", output_name=\"crab_spec_3x\", show_plots=True)\n",
932+
"analysis.get_raw_lightcurve(binned_data=\"combined_binned_data.hdf5\", output_name=\"crab_lc_3x\", show_plots=True)"
933933
]
934934
},
935935
{
@@ -1162,8 +1162,8 @@
11621162
}
11631163
],
11641164
"source": [
1165-
"analysis.get_raw_spectrum(binned_data=\"selected_combined_binned_data.hdf5\", output_name=\"selected_crab_spec_3x\")\n",
1166-
"analysis.get_raw_lightcurve(binned_data=\"selected_combined_binned_data.hdf5\", output_name=\"selected_crab_lc_3x\")"
1165+
"analysis.get_raw_spectrum(binned_data=\"selected_combined_binned_data.hdf5\", output_name=\"selected_crab_spec_3x\", show_plots=True)\n",
1166+
"analysis.get_raw_lightcurve(binned_data=\"selected_combined_binned_data.hdf5\", output_name=\"selected_crab_lc_3x\", show_plots=True)"
11671167
]
11681168
},
11691169
{
@@ -1397,15 +1397,15 @@
13971397
],
13981398
"source": [
13991399
"analysis = BinnedData(\"inputs.yaml\")\n",
1400-
"analysis.get_binned_data(unbinned_data=\"unbinned_data.hdf5\",event_range=[0,1e6],make_binning_plots=True)"
1400+
"analysis.get_binned_data(unbinned_data=\"unbinned_data.hdf5\",event_range=[0,1e6],make_binning_plots=True, show_plots=True)"
14011401
]
14021402
}
14031403
],
14041404
"metadata": {
14051405
"kernelspec": {
1406-
"display_name": "Python [conda env:cosi_nomegalib]",
1406+
"display_name": "Python [conda env:COSIPY_new]",
14071407
"language": "python",
1408-
"name": "conda-env-cosi_nomegalib-py"
1408+
"name": "conda-env-COSIPY_new-py"
14091409
},
14101410
"language_info": {
14111411
"codemirror_mode": {
@@ -1417,7 +1417,7 @@
14171417
"name": "python",
14181418
"nbconvert_exporter": "python",
14191419
"pygments_lexer": "ipython3",
1420-
"version": "3.9.6"
1420+
"version": "3.10.16"
14211421
}
14221422
},
14231423
"nbformat": 4,

0 commit comments

Comments
 (0)