Skip to content

Commit 8e8129b

Browse files
authored
Merge pull request #67 from CosmicStudioSoftware/main
Merge release back into develop
2 parents a6f4b0a + e1bcd49 commit 8e8129b

19 files changed

+46
-762
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,11 @@ jobs:
111111
rm -rf ./OMMBV
112112
mkdir new_dir
113113
cd new_dir
114-
115-
coverage run -m pytest ../
114+
coverage run -m --source=OMMBV --omit=__init__.py pytest ../tests
116115
coverage report
117116
coverage xml
118-
ls
119-
cp coverage.xml ../coverage.xml
120-
cat coverage.xml
117+
mkdir ../OMMBV
118+
mv coverage.xml ../OMMBV/coverage.xml
121119
122120
- name: Run unit and integration tests on Windows
123121
if: ${{ matrix.os == 'windows-latest' }}
@@ -130,20 +128,22 @@ jobs:
130128
coverage xml
131129
mv coverage.xml .\OMMBV\.
132130
133-
- name: Publish results to coveralls
134-
env:
135-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136-
COVERALLS_PARALLEL: true
137-
run: coveralls --service=github --verbose
131+
- name: Publish results to coveralls upon success
132+
uses: coverallsapp/github-action@v2
133+
with:
134+
github-token: ${{ secrets.GITHUB_TOKEN }}
135+
flag-name: run=${{ join(matrix.*, '-') }}
136+
parallel: true
137+
format: cobertura
138138

139139
finish:
140140
name: Finish Coverage Analysis
141141
needs: build
142+
if: ${{ always() }}
142143
runs-on: ubuntu-latest
143144
steps:
144145
- name: Coveralls Finished
145-
env:
146-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147-
run: |
148-
pip install --upgrade coveralls
149-
coveralls --service=github --finish --verbose
146+
uses: coverallsapp/github-action@v2
147+
with:
148+
github-token: ${{ secrets.GITHUB_TOKEN }}
149+
parallel-finished: true

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [1.1.0] - ?????
5+
## [1.1.0] - 2025-04-07
66
- Switched away from distutils to Meson for build system
77
- Updated coupling to coveralls
88
- Updated package version for security issue in sphinx
9-
- Added online unit testing for Linux and MacOS
9+
- Updated online unit testing
1010
- Updated to IGRF14
11+
- Updated documentation
12+
- Updated unit tests to latest standards
1113

1214
## [1.0.1] - 2022-01-04
1315
- Added pyproject.toml to support systems without numpy.

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
include LICENSE
2-
include CONTRIBUTING.md
2+
include CHANGELOG.md
33
include OMMBV/version.txt
4+
include meson.build
5+
include README.md

OMMBV/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
"""init routine for OMMBV."""
33

4-
__version__ = '1.0.2'
4+
__version__ = '1.1.0'
55

66
try:
77
from OMMBV import igrf

OMMBV/_core.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,6 @@ def calculate_mag_drift_unit_vectors_ecef(latitude, longitude, altitude,
292292
ecef_x, ecef_y, ecef_z = trans.geodetic_to_ecef(latitude, longitude,
293293
altitude)
294294

295-
# This shouldn't have been pushed to the repo
296-
# idx, = np.where(np.isnan(ecef_x))
297-
# if len(idx) > 0:
298-
# print("Encountered nan starting ecef locations ", ecef_x[idx],
299-
# ecef_y[idx], ecef_z[idx], latitude[idx], longitude[idx],
300-
# altitude[idx])
301-
302295
# Begin method calculation.
303296

304297
# Magnetic field at root location
@@ -358,13 +351,6 @@ def calculate_mag_drift_unit_vectors_ecef(latitude, longitude, altitude,
358351
ecef_input=True,
359352
**step_kwargs)
360353

361-
# This shouldn't be here
362-
# idx, = np.where(np.isnan(tzx))
363-
# if len(idx) > 0:
364-
# print("Encountered nan tzx values ", idx, ecef_x[idx],
365-
# ecef_y[idx], ecef_z[idx], tzx[idx], tzy[idx], tzz[idx],
366-
# latitude[idx], longitude[idx], altitude[idx])
367-
368354
if centered_diff:
369355
# Negative step
370356
ecef_xz2, ecef_yz2, ecef_zz2 = (ecef_x - step_size * tzx,
@@ -435,15 +421,6 @@ def calculate_mag_drift_unit_vectors_ecef(latitude, longitude, altitude,
435421
& (loop_num + 1 >= min_loops):
436422
# Reached terminating conditions
437423
repeat_flag = False
438-
# print('Using position ', location_info(ecef_xz, ecef_yz, ecef_zz,
439-
# datetimes,
440-
# return_geodetic=True,
441-
# ecef_input=True,
442-
# **step_kwargs)[3:], loop_num)
443-
# idx, = np.where(np.isnan(ecef_xz))
444-
# if len(idx) > 0:
445-
# print("Encountered nan apex locations ", ecef_xz[idx],
446-
# ecef_yz[idx], ecef_zz[idx])
447424
else:
448425
# Store info into calculation vectors to refine next loop
449426
tzx, tzy, tzz = tzx2, tzy2, tzz2
@@ -691,7 +668,6 @@ def step_along_mag_unit_vector(x, y, z, date, direction, num_steps=1,
691668

692669
if direction == 'meridional':
693670
centered_diff = True
694-
# print("False")
695671
else:
696672
centered_diff = False
697673

0 commit comments

Comments
 (0)