Skip to content

Commit 079ece7

Browse files
committed
Merged latest-dev-branch into master.
2 parents cfa1146 + bf8f38a commit 079ece7

9 files changed

Lines changed: 22 additions & 9 deletions

File tree

CHANGELOG.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

4+
Version 0.10
5+
------------
6+
| **Date:** July 1, 2022
7+
| **Release:** v0.10
8+
| **Version of CHAOS:** CHAOS-7.11 (0711)
9+
10+
Features
11+
^^^^^^^^
12+
* Updated RC-index file to RC_1997-2022_June_v3.
13+
414
Version 0.9
515
-----------
616
| **Date:** April 1, 2022

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ The documentation of the current release is available on
1818
.. |pypi| image:: https://badge.fury.io/py/chaosmagpy.svg
1919
:target: https://badge.fury.io/py/chaosmagpy
2020

21-
.. |docs| image:: https://readthedocs.org/projects/chaosmagpy/badge/?version=stable
22-
:target: https://chaosmagpy.readthedocs.io/en/stable/?badge=stable
21+
.. |docs| image:: https://readthedocs.org/projects/chaosmagpy/badge/?version=master
22+
:target: https://chaosmagpy.readthedocs.io/en/master/?badge=master
2323
:alt: Documentation Status
2424

2525
.. |license| image:: https://img.shields.io/badge/License-MIT-blue.svg

chaosmagpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"basicConfig", "synth_values"
55
]
66

7-
__version__ = "0.9"
7+
__version__ = "0.10"
88

99
from .chaos import (
1010
CHAOS,

chaosmagpy/chaos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def power_spectrum(self, time, radius=None, **kwargs):
444444

445445
coeffs = self.synth_coeffs(time, **kwargs)
446446

447-
return mu.power_spectrum(coeffs, radius)
447+
return mu.power_spectrum(coeffs, radius, source=self.source)
448448

449449
def plot_power_spectrum(self, time, **kwargs):
450450
"""

chaosmagpy/config_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def check_version_string(s):
139139
lambda x: check_vector(x, len=3)],
140140
'params.ellipsoid': [np.array([6378.137, 6356.752]),
141141
lambda x: check_vector(x, len=2)],
142-
'params.CHAOS_version': ['7.10', check_version_string],
142+
'params.CHAOS_version': ['7.11', check_version_string],
143143
'params.cdf_to_mjd': [730485, check_int],
144144

145145
# location of coefficient files

chaosmagpy/lib/RC_index.h5

60.3 KB
Binary file not shown.

chaosmagpy/model_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def synth_from_pp(breaks, order, coeffs, time, radius, theta, phi, *,
309309
if nmax is None:
310310
nmax = nmax_coeffs
311311
elif nmax > nmax_coeffs:
312-
warnings.warn('Provided nmax = {0} is incompatible with number of '
312+
warnings.warn('Supplied nmax = {0} is incompatible with number of '
313313
'model coefficients. Using nmax = {1} instead.'.format(
314314
nmax, nmax_coeffs))
315315
nmax = nmax_coeffs
@@ -492,7 +492,7 @@ def synth_values(coeffs, radius, theta, phi, *, nmax=None, nmin=None,
492492

493493
if (theta_min <= 0.0) or (theta_max >= 180.0):
494494
if (theta_min == 0.0) or (theta_max == 180.0):
495-
warnings.warn('Provided coordinates include the poles.')
495+
warnings.warn('Supplied coordinates include the poles.')
496496
poles = True
497497
else:
498498
raise ValueError('Colatitude outside bounds [0, 180].')
@@ -724,7 +724,7 @@ def design_gauss(radius, theta, phi, nmax, *, nmin=None, mmax=None,
724724
# check if poles are included
725725
if (theta_min <= 0.0) or (theta_max >= 180.0):
726726
if (theta_min == 0.0) or (theta_max == 180.0):
727-
warnings.warn('Provided coordinates include the poles.')
727+
warnings.warn('Supplied coordinates include the poles.')
728728
poles = True
729729
else:
730730
raise ValueError('Colatitude outside bounds [0, 180].')

docs/source/configuration.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Change RC index file
2727

2828
Download a new RC-index file either directly as txt-file from
2929
`spacecenter.dk <http://www.spacecenter.dk/files/magnetic-models/RC/current/>`_
30-
or by using the function :func:`data_utils.save_RC_h5file` (saves as h5-file):
30+
or by using the function :func:`~.data_utils.save_RC_h5file` (saves as
31+
h5-file):
3132

3233
.. code-block:: python
3334

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ classifiers =
2525
Programming Language :: Python :: 3.6
2626
Programming Language :: Python :: 3.7
2727
Programming Language :: Python :: 3.8
28+
Programming Language :: Python :: 3.9
29+
Programming Language :: Python :: 3.10
2830
Topic :: Scientific/Engineering :: Physics
2931

3032
[options]

0 commit comments

Comments
 (0)