Skip to content

Commit

Permalink
Add more chronometers to generic.csv
Browse files Browse the repository at this point in the history
brenhinkeller committed Dec 31, 2024
1 parent 9056f56 commit afdffa1
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions examples/generic.csv
Original file line number Diff line number Diff line change
@@ -3,3 +3,7 @@ test1,hematite,3000,35,0.6071,122.3,,,150.37,5,,,,,,,,,,110.7,35.1,,,
test2,hematite,3000,135,0.6071,122.3,,,263.92,5,,,,,,,,,,110.7,35.1,,,
test3,feldspar,3000,35,59.98,205.94,917.84,5,,,,,,,,,,,,,,,16.34,
test4,feldspar,3000,135,59.98,205.94,1023.73,5,,,,,,,,,,,,,,,16.34,
test5,zircon,3000,35,,,,,380,5,,,,,,,,,,1107.1,177.76,38.13,,
test6,apatite,3000,35,,,,,120,5,,,,,,,,,,110.7,35.1,38.13,,
test7,apatite,3000,,,,,,,,300,5,,,,1.75,0.01,0.24,0.83,,,,,
test8,apatite,3000,,,,,,,,,,14,60,,1.75,0.01,0.24,0.83,,,,,
14 changes: 9 additions & 5 deletions test/testcomplete.jl
Original file line number Diff line number Diff line change
@@ -71,11 +71,15 @@ unconf = Constraint()
dsg = importdataset(joinpath(datapath, "generic.csv"), ',', importas=:Tuple);
chrons = chronometers(dsg, model)
@test chrons isa Vector{<:Chronometer}
@test length(chrons) == 4
@test length(chrons) == 8
@test count(x->isa(x,GenericHe), chrons) == 2
@test count(x->isa(x,GenericAr), chrons) == 2
@test get_age(chrons) [150.37, 263.92, 917.84, 1023.73]
@test get_age_sigma(chrons) [5,5,5,5]
@test count(x->isa(x,ZirconHe), chrons) == 1
@test count(x->isa(x,ApatiteHe), chrons) == 1
@test count(x->isa(x,ApatiteFT), chrons) == 1
@test count(x->isa(x,ApatiteTrackLength), chrons) == 1
@test get_age(chrons) [150.37, 263.92, 917.84, 1023.73, 380., 120., 300.]
@test get_age_sigma(chrons) [5,5,5,5,5,5,5]

dt = 10.0
tsteps = (0+dt/2 : dt : 3000-dt/2)
@@ -84,8 +88,8 @@ Tsteps = range(650, 0, length=length(tsteps))
calc = zeros(length(chrons))
calcuncert = zeros(length(chrons))
Thermochron.modelages!(calc, calcuncert, chrons, Tsteps, ZRDAAM(), RDAAM(), SimplifiedCurvilinear())
@test round.(calc, sigdigits=5) [121.57, 230.22, 902.57, 1011.0]
@test calcuncert zeros(length(chrons))
@test round.(calc, sigdigits=5) [121.57, 230.22, 902.57, 1011.0, 386.86, 122.81, 303.42, 14.318]
@test calcuncert [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.1710533944657444]

# Modern input format, Minnesota dataset
chrons = chronometers(ds, model)

2 comments on commit afdffa1

@brenhinkeller
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register
Release notes:

  • Add GenericHe and GenericAr chronometers

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/122423

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.11.3 -m "<description of version>" afdffa19cadbd5b2aaf75ae1e4c485308c1aa86f
git push origin v0.11.3

Please sign in to comment.