Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
name: Docs ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
pull_request:
push:
schedule:
- cron: "0 3 * * 1" # Runs 03:00 UT on Mondays
- cron: "0 3 * * 1" # Runs 03:00 UT on Mondays

jobs:
build:
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
meson setup build
ninja -j 2 -C build
cd build
meson install --destdir=${{ env.Python3_ROOT_DIR }}
meson install --destdir=${{ env.Python3_ROOT_DIR }}

- name: Test PEP8 compliance
run: flake8 . --count --show-source --statistics
Expand Down Expand Up @@ -121,18 +121,6 @@ jobs:
parallel: true
format: cobertura

- name: Create a Windows wheel
if: ${{ matrix.os == 'windows-latest' }}
run: |
mkdir dist
pip wheel . -w dist

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
path: dist/*.whl
if-no-files-found: warn

finish:
name: Finish Coverage Analysis
needs: build
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

2.1.1 (2025-XX-XX)
------------------
* Updated GitHub Actions versions and removed unused wheel upload
* Fixed broken doc link

2.1.0 (2025-01-07)
------------------
* Adapted codebase to read IRGF coefficients from a file (updated to IGRF-14)
Expand Down
9 changes: 4 additions & 5 deletions docs/examples/ex_gc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ equation layed out in equation 3-28 of Snyder [2]_.
gd_lat = np.arctan(np.tan(np.radians(gc_lat)) / (1.0 - e_sq))
return np.degrees(gd_lat)


The function above requires the first eccentricity of the reference ellipsoid.
This example uses the ``pyproj`` library [3]_ to get the WGS84 ellipsoid data,
but the function shown will take any float. This lets you decide the level of
Expand All @@ -70,7 +70,7 @@ then from apex to quasi-dipole.
::

import apexpy

# Define the starting values
year = 2015.3
gc_lat = 45.0
Expand All @@ -85,9 +85,8 @@ then from apex to quasi-dipole.


.. [1] Snay and Soler (1999) Modern Terrestrial Reference Systems (Part 1),
`Professional Surveyor <https://www.ngs.noaa.gov/CORS/Articles/
Reference-Systems-Part-1.pdf>`_.
`Professional Surveyor <https://prltap.org/eng/wp-content/uploads/2016/09/Modern-Terrestrial-Reference-Systems-Part-1-to-Part-4.pdf>`_.
.. [2] Snyder, J. P. Map projections — A working manual. Professional Paper
1395, U.S. Geological Survey, 1987.
`doi:10.3133/pp1395 <https://pubs.er.usgs.gov/publication/pp1395>`_.
.. [3] `pyproj GitHub page <https://github.com/pyproj4/pyproj>`_.
.. [3] `pyproj GitHub page <https://github.com/pyproj4/pyproj>`_.
24 changes: 0 additions & 24 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,30 +107,6 @@ Install against an incompatible numpy version
pip install apexpy --no-build-isolation --no-cache


Installation using CI Wheels
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If your local set up is essentially identical to one of the CI test
environments, then you can use one of the wheel artifacts to install
:py:mod:`apexpy`. The list of artifacts may be found
`here <https://api.github.com/repos/aburrell/apexpy/actions/artifacts>`_.

To download an artifact:

1. If you don't have a GitHub Personal Access Token, follow
`these instructions <https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token>`_
to create one.
2. Run ``curl -v -H "Authorization: token <GITHUB-ACCESS-TOKEN>" https://api.github.com/repos/aburrell/apexpy/actions/artifacts/<ARTIFACT-ID>/zip``, where
<ITEM> should be replaced with the appropriate item string.
3. Copy the URL from the ``Location`` output produced by the previous command
into a browser, which will download a zip archive into your standard
download location. Alternatively (or if this doesn't work) you can use
`wget` to retrieve the archive.
4. Copy the zip archive into the ``apexpy/dist`` directory and unzip.
5. Check the archive for the expected matrix of ``*.whl`` objects

To install, use ``pip install .``

.. _installation-build:

Build from Source
Expand Down