-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from sunpy/tweaks
Changelog plus doc tweaks/rename from pfsspy to pfss and remove fortran in plain text
- Loading branch information
Showing
28 changed files
with
89 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. _sunkit-magex-changelog: | ||
|
||
************** | ||
Full Changelog | ||
************** | ||
|
||
1.0.0 (2024-05-31) | ||
================== | ||
|
||
This is the first release and aims to keep the API the same from `pfsspy` to | ||
`sunkit_magex`. The main difference is that you will need to replace the | ||
import like so: | ||
|
||
.. code-block:: python | ||
# Before | ||
import pfsspy | ||
from pfsspy import tracing | ||
# After | ||
from sunkit_magex import pfss as pfsspy | ||
from sunkit_magex.pfss import tracing | ||
The main changes from the previous release of `pfsspy` are as follows: | ||
|
||
* The ``GongSynopticMap`` class has moved into `sunpy`, note that the new | ||
class in ``sunpy`` is slightly different in that it does not modify the | ||
header. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
API reference | ||
API Reference | ||
============= | ||
|
||
.. toctree:: | ||
|
||
pfsspy | ||
magex | ||
pfss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. automodapi:: sunkit_magex |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,12 @@ | ||
|
||
import astropy.units as u | ||
import astropy.io | ||
|
||
import sunpy.map | ||
|
||
import sunkit_magex.pfss.map | ||
|
||
|
||
def test_gong_source(gong_map): | ||
m = sunpy.map.Map(gong_map) | ||
# Check round-trip is robust against sunpy changes to the meta | ||
m = sunpy.map.Map(m.data, m.meta) | ||
assert m.date.isot == '2020-09-01T13:04:00.000' | ||
# Construct a WCS to check no warnings are thrown | ||
m.wcs | ||
# Check observer coordinate is populated | ||
observer = m.coordinate_frame.observer | ||
assert observer.obstime.isot == m.date.isot | ||
assert observer.lon == 0 * u.deg | ||
assert u.allclose(observer.lat, 7.20584924 * u.deg) | ||
assert u.allclose(observer.radius, 1.50953137e+11 * u.m) | ||
|
||
|
||
def test_adapt_map(adapt_test_file): | ||
import astropy.io | ||
adapt_fits = astropy.io.fits.open(adapt_test_file) | ||
for map_slice in adapt_fits[0].data: | ||
m = sunpy.map.Map((map_slice, adapt_fits[0].header)) | ||
assert isinstance(m, sunkit_magex.pfss.map.ADAPTMap) | ||
with astropy.io.fits.open(adapt_test_file) as adapt_fits: | ||
for map_slice in adapt_fits[0].data: | ||
m = sunpy.map.Map((map_slice, adapt_fits[0].header)) | ||
assert isinstance(m, sunkit_magex.pfss.map.ADAPTMap) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters