diff --git a/docs/requirements.txt b/docs/requirements.txt index 12e48c0..73e155c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -16,4 +16,5 @@ spacepy sphinx-rtd-theme sphinxcontrib-autoprogram sunpy -gfz-api-client \ No newline at end of file +gfz-api-client +supermag-api \ No newline at end of file diff --git a/kaipy/supermage.py b/kaipy/supermage.py index b6b1d53..28b9933 100644 --- a/kaipy/supermage.py +++ b/kaipy/supermage.py @@ -16,7 +16,7 @@ import pandas as pd #### NEED TO POINT TO SUPERMAG API SCRIPT #### /glade/p/hao/msphere/gamshare/supermag/supermag_api.py -import kaipy.supermag_api as smapi +import supermag_api as smapi #### # this warning is very annoying @@ -371,7 +371,7 @@ def ReadSimData(filename, quiet = True): first_step_name = "Step#%s" % sIds[0] data = f[first_step_name] - dBt, dBp = np.array(data['dBt'])[0], np.array(data['dBp'])[0] + dBt, dBp = np.array(data['dBt']), np.array(data['dBp']) BH = np.sqrt(dBt**2 + dBp**2) maglat = np.array(data['smlat'])[0].flatten() diff --git a/requirements.txt b/requirements.txt index d483b75..a363eeb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,4 +15,5 @@ spacepy sphinx-rtd-theme sphinxcontrib-autoprogram sunpy -gfz-api-client \ No newline at end of file +gfz-api-client +supermag-api \ No newline at end of file diff --git a/setup.py b/setup.py index dea9b70..0e313b2 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( packages=find_packages(), include_package_data=True, package_data={'kaipy': ['scripts/*', 'scripts/*/*']}, - python_requires='>=3.8,<=3.13', + python_requires='>=3.9,<=3.13', install_requires=[ 'alive_progress', 'astropy', @@ -33,8 +33,6 @@ setup( 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD 3-Clause', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12',