Skip to content

Commit a891ffe

Browse files
authored
Merge pull request #63 from JuliaAstro/juliacon
Redesign of `AstroPeriod` née `Period` and other small refactorings
2 parents 8e0936b + 4fdb65a commit a891ffe

21 files changed

+473
-315
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: CI
22
on:
33
pull_request:
44
branches:
5-
- master
5+
- main
66
push:
77
branches:
8-
- master
8+
- main
99
tags: '*'
1010
jobs:
1111
test:
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
version:
18-
- '1.0' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
18+
- '1.3' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
1919
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
2020
- 'nightly'
2121
os:

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "AstroTime"
22
uuid = "c61b5328-d09d-5e37-a9a8-0eb41c39009c"
3-
version = "0.6.2"
3+
version = "0.7.0"
44

55
[deps]
66
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
@@ -12,15 +12,15 @@ MuladdMacro = "46d2c3a1-f734-5fdb-9937-b9b9aeba4221"
1212
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1313

1414
[compat]
15-
ERFA = "0.5, 0.6"
15+
ERFA = "0.5, 0.6, 1.0"
1616
EarthOrientation = "0.7"
1717
ItemGraphs = "0.4"
1818
LeapSeconds = "1.1"
1919
MacroTools = "0.5"
20-
Measurements = "2.2"
20+
Measurements = "2"
2121
MuladdMacro = "0.2"
2222
Reexport = "0.2, 1"
23-
julia = "1"
23+
julia = "1.3"
2424

2525
[extras]
2626
ERFA = "17511681-8477-586a-8d98-4cfd5a1f2ec3"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ julia> import Pkg; Pkg.add("AstroTime")
2424
# Create an Epoch based on the TT (Terrestial Time) scale
2525
tt = TTEpoch("2018-01-01T12:00:00")
2626

27-
# Transform to UTC (Universal Time Coordinated)
28-
utc = UTCEpoch(tt)
27+
# Transform to TAI (International Atomic Time)
28+
tai = TAIEpoch(tt)
2929

3030
# Transform to TDB (Barycentric Dynamical Time)
31-
utc = TDBEpoch(utc)
31+
tdb = TDBEpoch(tai)
3232

3333
# Shift an Epoch by one day
3434
another_day = tt + 1days

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "~0.26"
5+
Documenter = "~0.27"

docs/src/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ julia> import Pkg; Pkg.add("AstroTime")
1919
# Create an Epoch based on the TT (Terrestial Time) scale
2020
tt = TTEpoch("2018-01-01T12:00:00")
2121

22-
# Transform to UTC (Universal Time Coordinated)
23-
utc = UTCEpoch(tt)
22+
# Transform to TAI (International Atomic Time)
23+
tai = TAIEpoch(tt)
2424

2525
# Transform to TDB (Barycentric Dynamical Time)
26-
utc = TDBEpoch(utc)
26+
tdb = TDBEpoch(tai)
2727

2828
# Shift an Epoch by one day
2929
another_day = tt + 1days

0 commit comments

Comments
 (0)