Skip to content

Commit 9976fa8

Browse files
authored
Merge pull request #149 from pysat/v0.0.2rc
Version 0.0.2 Release Candidate
2 parents 597c91e + 040e9c4 commit 9976fa8

39 files changed

Lines changed: 830 additions & 476 deletions

.github/workflows/main.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
19-
python-version: ["3.10", "3.11", "3.12"]
19+
python-version: ["3.11", "3.12"]
2020
numpy_ver: ["latest"]
2121
test_config: ["latest"]
2222
include:
2323
# NEP29 compliance settings
24-
- python-version: "3.9"
25-
numpy_ver: "1.23"
24+
- python-version: "3.10"
25+
numpy_ver: "1.24"
2626
os: ubuntu-latest
2727
test_config: "NEP29"
2828
# Operational compliance settings
@@ -70,22 +70,25 @@ jobs:
7070
run: flake8 . --count --exit-zero --max-complexity=10 --statistics
7171

7272
- name: Test with pytest
73-
run: pytest
73+
run: pytest --cov=pysatSpaceWeather --cov-report xml
7474

75-
- name: Publish results to coveralls
76-
env:
77-
GITHUB_TOKEN: ${{ secrets.github_token }}
78-
COVERALLS_PARALLEL: true
79-
run: coveralls --rcfile=pyproject.toml --service=github
75+
- name: Coveralls Parallel
76+
uses: coverallsapp/github-action@v2
77+
with:
78+
github-token: ${{ secrets.GITHUB_TOKEN }}
79+
flag-name: run=${{ join(matrix.*, '-') }}
80+
parallel: true
81+
format: cobertura
82+
debug: true
8083

8184
finish:
8285
name: Finish Coverage Analysis
8386
needs: build
87+
if: ${{ always() }}
8488
runs-on: ubuntu-latest
8589
steps:
8690
- name: Coveralls Finished
87-
env:
88-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89-
run: |
90-
pip install --upgrade coveralls
91-
coveralls --service=github --finish
91+
uses: coverallsapp/github-action@v2
92+
with:
93+
github-token: ${{ secrets.GITHUB_TOKEN }}
94+
parallel-finished: true

.github/workflows/pysat_rc.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
15-
python-version: ["3.11"]
15+
python-version: ["3.12"]
1616

1717
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
1818
runs-on: ${{ matrix.os }}
@@ -35,9 +35,25 @@ jobs:
3535
python -c "import pysat; pysat.params['data_dirs'] = 'pysatData'"
3636
3737
- name: Test with pytest
38-
run: pytest
38+
run: pytest --cov=pysatSpaceWeather --cov-report xml
3939

40-
- name: Publish results to coveralls
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
run: coveralls --rcfile=setup.cfg --service=github
40+
- name: Coveralls Parallel
41+
uses: coverallsapp/github-action@v2
42+
with:
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
flag-name: run=${{ join(matrix.*, '-') }}
45+
parallel: true
46+
format: cobertura
47+
debug: true
48+
49+
finish:
50+
name: Finish Coverage Analysis
51+
needs: build
52+
if: ${{ always() }}
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Coveralls Finished
56+
uses: coverallsapp/github-action@v2
57+
with:
58+
github-token: ${{ secrets.GITHUB_TOKEN }}
59+
parallel-finished: true

.zenodo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"orcid": "0000-0001-8321-6074"
2525
},
2626
{
27-
"affiliation": "Stoneris LLC",
27+
"affiliation": "Cosmic Studio",
2828
"name": "Stoneback, Russell",
2929
"orcid": "0000-0001-7216-4336"
3030
},

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ Change Log
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](https://semver.org/).
55

6+
[0.2.0] - 2024-08-30
7+
--------------------
8+
* Enhancements
9+
* Added an instrument for the daily Nobeyama Radio Polarimeters solar flux
10+
* Maintenance
11+
* Removed unneeded keyword arguments from Kp method functions
12+
* Replaces `fillna` with `asfreq` to maintain the same behaviour
13+
* Implemented `iloc` in pandas Series and DataFrame index access
14+
* Added `verify=False` to GFZ requests
15+
* Updated documentation links and fixed intersphinx mapping
16+
* Replaced `utcnow` with `now` and the UTC timezone
17+
* Removed support for deprecated Kp tag, ''
18+
* Updated minimum supported pysat version to 3.2.0+.
19+
* Bugs
20+
* Fixed errors introduced by assuming files will be present when combining
21+
F10.7 or Kp data in `combine_f107` and `combine_kp` functions.
22+
623
[0.1.0] - 2024-02-16
724
--------------------
825
* Enhancements

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Python 3.7+.
2626

2727
| Common modules | Community modules |
2828
| -------------- | ----------------- |
29-
| netCDF4 | pysat >= 3.1.0 |
29+
| netCDF4 | pysat >= 3.2.0 |
3030
| numpy | |
3131
| pandas | |
3232
| requests | |

docs/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
author = ', '.join([auth['name'] for auth in zenodo['creators']])
6666
description = 'Tools for space weather indices.'
6767
category = 'Space Physics'
68-
copyright = ', '.join(['2022', author])
68+
copyright = ', '.join(['2024', author])
6969

7070
# The short X.Y version
7171
version = info.project['version'].base_version
@@ -177,8 +177,9 @@
177177
epub_exclude_files = ['search.html']
178178

179179
# Example configuration for intersphinx: refer to the Python standard library.
180-
intersphinx_mapping = {'https://docs.python.org/': None}
180+
intersphinx_mapping = {'<name>': ('https://docs.python.org/', None)}
181181

182182
# Links to ignore when checking for stability
183183
linkcheck_ignore = ['https://lasp.colorado.edu/space_weather/dsttemerin/',
184-
'https://*QUERY']
184+
'https://*QUERY',
185+
'https://datapub.gfz-potsdam.de/download/10.5880.Kp.0001/*']

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Python 3.6 and 3.9+.
2424
============== =================
2525
Common modules Community modules
2626
============== =================
27-
netCDF4 pysat >= 3.1.0
27+
netCDF4 pysat >= 3.2.0
2828
numpy
2929
pandas
3030
requests

docs/supported_instruments.rst

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,30 @@ Supports ACE Solar Wind Electron Proton Alpha Monitor data.
6666
:members:
6767

6868

69+
.. _norp-inst:
70+
NoRP
71+
----
72+
73+
The Nobeyama Radio Polarameters (NoRP) platform encompasses solar flux
74+
measurements provided by the Japanese Solar Science Observatory.
75+
`NoRP <https://solar.nro.nao.ac.jp/norp/index.html>`_ provides
76+
additional information and processing tools on their website.
77+
78+
.. _norp-rf-inst:
79+
80+
RF
81+
^^^
82+
83+
RF is the radio flux measured from the sun at different wavelengths. This
84+
provides a different measure of solar activity and has been corrected to be
85+
in solar flux units at 1 AU. The daily data set currently starts in Nov 1951
86+
and is updated to extend to the current period, but not in real-time.
87+
88+
89+
.. automodule:: pysatSpaceWeather.instruments.norp_rf
90+
:members:
91+
92+
6993
.. _sw-inst:
7094
SW
7195
---
@@ -179,10 +203,9 @@ Dst
179203
^^^
180204

181205
The Disturbance Storm Time (Dst) Index is a measure of magnetic activity
182-
associated with the ring current. The National Geophysical Data Center (NGDC)
183-
maintains the
184-
`current database <https://www.ngdc.noaa.gov/stp/geomag/dst.html>`_ from which
185-
the historic Dst is downloaded.
206+
associated with the ring current. The National Centers for Environmental
207+
Information (NCEI), formerly the National Geophysical Data Center (NGDC),
208+
maintains the current database from which the historic Dst is downloaded.
186209
`LASP <https://lasp.colorado.edu/space_weather/dsttemerin/dsttemerin.html>`_
187210
performs the calculates and provides the predicted Dst for the last 96 hours.
188211
You can learn more about the Dst Index at the

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pysatSpaceWeather"
7-
version = "0.1.0"
7+
version = "0.2.0"
88
description = 'pysat support for Space Weather Indices'
99
readme = "README.md"
1010
requires-python = ">=3.6"
@@ -22,7 +22,6 @@ classifiers = [
2222
"Natural Language :: English",
2323
"Programming Language :: Python :: 3",
2424
"Programming Language :: Python :: 3.6",
25-
"Programming Language :: Python :: 3.9",
2625
"Programming Language :: Python :: 3.10",
2726
"Programming Language :: Python :: 3.11",
2827
"Programming Language :: Python :: 3.12",
@@ -44,13 +43,12 @@ dependencies = [
4443
"numpy",
4544
"packaging",
4645
"pandas",
47-
"pysat>=3.1.0",
46+
"pysat>=3.2.0",
4847
"requests",
4948
"xarray"]
5049

5150
[project.optional-dependencies]
5251
test = [
53-
"coveralls < 3.3",
5452
"flake8",
5553
"flake8-docstrings",
5654
"hacking >= 1.0",
@@ -65,7 +63,7 @@ doc = [
6563
"numpydoc",
6664
"pyproject_parser",
6765
"sphinx",
68-
"sphinx_rtd_theme >= 1.2.2,<2.0.0"
66+
"sphinx_rtd_theme >= 1.2.2, < 2.0.0"
6967
]
7068

7169
[project.urls]
@@ -75,7 +73,6 @@ Source = "https://github.com/pysat/pysatSpaceWeather"
7573
[tool.coverage.report]
7674

7775
[tool.pytest.ini_options]
78-
addopts = "--cov=pysatSpaceWeather"
7976
markers = [
8077
"all_inst",
8178
"download",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from pysatSpaceWeather.instruments import methods # noqa F401
22

3-
__all__ = ['ace_epam', 'ace_mag', 'ace_sis', 'ace_swepam', 'sw_ae', 'sw_al',
4-
'sw_au', 'sw_ap', 'sw_apo', 'sw_cp', 'sw_dst', 'sw_f107', 'sw_flare',
5-
'sw_hpo', 'sw_kp', 'sw_mgii', 'sw_polarcap', 'sw_sbfield', 'sw_ssn',
6-
'sw_stormprob']
3+
__all__ = ['ace_epam', 'ace_mag', 'ace_sis', 'ace_swepam', 'norp_rf', 'sw_ae',
4+
'sw_al', 'sw_au', 'sw_ap', 'sw_apo', 'sw_cp', 'sw_dst', 'sw_f107',
5+
'sw_flare', 'sw_hpo', 'sw_kp', 'sw_mgii', 'sw_polarcap',
6+
'sw_sbfield', 'sw_ssn', 'sw_stormprob']
77

88
for inst in __all__:
99
exec("from pysatSpaceWeather.instruments import {inst}".format(inst=inst))

0 commit comments

Comments
 (0)