Skip to content

Commit

Permalink
Merge pull request #86 from JuliaActuary/artifacts
Browse files Browse the repository at this point in the history
leverage artifacts for bundled tables
  • Loading branch information
alecloudenback authored Oct 23, 2020
2 parents a633a35 + 379fc01 commit 17c5961
Show file tree
Hide file tree
Showing 283 changed files with 23 additions and 622,577 deletions.
1 change: 1 addition & 0 deletions .github/workflows/github_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.5'
Expand Down
6 changes: 6 additions & 0 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[SOA_Tables]
git-tree-sha1 = "52b77526be6e7c36ebf8e03009e04ef52f802925"

[[SOA_Tables.download]]
sha256 = "4542fd10f0f417f5980740371240070fd144c167a5ebf4d0631708bc4a3307f2"
url = "https://github.com/JuliaActuary/Artifacts/raw/master/SOA_Tables_20201022.tar.gz"
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ version = "0.12.1"
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
Parsers = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Transducers = "28d57a85-8fef-5791-bfe6-a80928e7c999"
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,9 @@ Sample of some of the included table sets:
If you would like more tables added by default, please open a GitHub issue with the request.
#### Load with bundled tables
#### Load custom set of tables
To add more tables for your use when loading with all of the other bundled tables, download the `.xml` [aka the (`XTbML` format)](https://mort.soa.org/About.aspx) version of the table from [mort.SOA.org](https://mort.soa.org) and place it in the directory the package is installed in. This is usually `~user/.julia/packages/MortalityTables/[changing hash value]/src/tables/`.
> :warning: *updating the package may remove your existing tables. Make a backup before updating your packages*
After placing packages in the folder above, restart Julia and the should be discoverable when you run `mt.Tables()`
Download the `.xml` [aka the (`XTbML` format)](https://mort.soa.org/About.aspx) version of the table from [mort.SOA.org](https://mort.soa.org) and place it in a directory of your choosing. Then call `MortaliyTables.tables(path_to_your_dir)`.
### [mort.SOA.org](https://mort.soa.org) Tables
Expand Down
1 change: 1 addition & 0 deletions src/MortalityTables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ using QuadGK
using Requires
using UnPack
using XMLDict
using Pkg.Artifacts

include("MetaData.jl")
include("death_distribution.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/XTbML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Loads the [XtbML](https://mort.soa.org/About.aspx) (the SOA XML data format for
"""
function tables(dir=nothing)
if isnothing(dir)
table_dir = joinpath(pkgdir(MortalityTables), "src", "tables", "SOA")
table_dir = artifact"SOA_Tables"
else
table_dir = dir
end
Expand Down
12 changes: 0 additions & 12 deletions src/tables/SOA/SOA Tables Terms of Use.md

This file was deleted.

Loading

0 comments on commit 17c5961

Please sign in to comment.