From 0b411d461f61828bf8742ba0d860aafc8c418913 Mon Sep 17 00:00:00 2001 From: Jax Lang <62795415+JaxLang@users.noreply.github.com> Date: Wed, 24 Jun 2026 11:51:11 +0300 Subject: [PATCH 1/3] Fixed SOHO meta file handling Was producing an error with more than one energy channel provided. --- spatial_analysis/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spatial_analysis/__init__.py b/spatial_analysis/__init__.py index 88a7f98..7141975 100644 --- a/spatial_analysis/__init__.py +++ b/spatial_analysis/__init__.py @@ -975,8 +975,8 @@ def load_sc_data(spacecraft, proton_channels, dates, data_path, resampling): bin_width = [] energy_range = [] + soho_meta = soho_meta['channels_dict_df_p'] for n in range(bin_list[0], bin_list[1]+1): - soho_meta = soho_meta['channels_dict_df_p'] bin_start = soho_meta.loc[n, 'lower_E'] bin_end = soho_meta.loc[n, 'upper_E'] From 8efb1ae40757695e1eb896fa47cf8703b9a675a0 Mon Sep 17 00:00:00 2001 From: Jax Lang <62795415+JaxLang@users.noreply.github.com> Date: Wed, 24 Jun 2026 13:59:14 +0300 Subject: [PATCH 2/3] Fixed incorrect bins listed for PSP 32 MeV range. --- SEP_Spatial-Distribution.ipynb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SEP_Spatial-Distribution.ipynb b/SEP_Spatial-Distribution.ipynb index ab59b8e..288561e 100644 --- a/SEP_Spatial-Distribution.ipynb +++ b/SEP_Spatial-Distribution.ipynb @@ -937,7 +937,7 @@ "For options on utilising other energy ranges, refer to the channels listed in the following table:\n", "| Spacecraft-Instrument |\t~14 MeV Protons |\t25-40 MeV Protons |\n", "|---|---|---|\n", - "| PSP /EpiHi-HET |\t`[3,4]` |\t`[8,9]`|\n", + "| PSP /EpiHi-HET |\t`[3,4]` |\t`[7,10]`|\n", "| SOHO /ERNE-HED |\t`[0]` |\t`[3,4]`|\n", "| Solar Orbiter /EPD-HET |\t`[10,12]` |\t`[19,24]` |\n", "| STEREO A /HET |\t`[0]` |\t`[5,8]` |\n", @@ -1090,9 +1090,9 @@ ], "metadata": { "kernelspec": { - "display_name": "SEP Tools", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "sep_tools" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -1103,7 +1103,8 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3" + "pygments_lexer": "ipython3", + "version": "3.12.4" } }, "nbformat": 4, From 5839ee5ae4b8a418652c95bd7ddf5919b274d94e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 11:44:46 +0000 Subject: [PATCH 3/3] [skip actions][pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- SEP_Spatial-Distribution.ipynb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SEP_Spatial-Distribution.ipynb b/SEP_Spatial-Distribution.ipynb index 288561e..720522a 100644 --- a/SEP_Spatial-Distribution.ipynb +++ b/SEP_Spatial-Distribution.ipynb @@ -1090,9 +1090,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "SEP Tools", "language": "python", - "name": "python3" + "name": "sep_tools" }, "language_info": { "codemirror_mode": { @@ -1103,8 +1103,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.4" + "pygments_lexer": "ipython3" } }, "nbformat": 4,