Skip to content

Commit

Permalink
Bump database version
Browse files Browse the repository at this point in the history
  • Loading branch information
stillyslalom committed Jan 3, 2025
1 parent 191ddec commit 903b1af
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
["refractiveindex.info"]
git-tree-sha1 = "f88e84d8721f21c39d311cb8d253e82841b1643d"
git-tree-sha1 = "4804d1ffb1575407b24dbbe3a6e375c693c2ceec"

[["refractiveindex.info".download]]
sha256 = "caebd0abd61ef81ecca51c7a99fe4594e712034c6cb18f32193c2d839a04e89e"
url = "https://github.com/polyanskiy/refractiveindex.info-database/archive/v2024-08-14.tar.gz"
sha256 = "914b5a04f945ba986dad350a2f161af3228a372d52eec60ea38c024bfbd48983"
url = "https://github.com/polyanskiy/refractiveindex.info-database/archive/v2024-12-31.tar.gz"
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RefractiveIndex"
uuid = "97a43521-7681-4ec2-835f-5b8ab7e7617e"
authors = ["Alex Ames <[email protected]> and contributors"]
version = "0.4.2"
version = "0.4.3"

[deps]
BasicInterpolators = "26cce99e-4866-4b6d-ab74-862489e035e0"
Expand Down
4 changes: 4 additions & 0 deletions deps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Database update procedure
1. `cd` to `deps` directory and activate, then instantiate the environment.
2. Modify the `add_artifact.jl` script to reflect the new database release date and run it.
3. Update `DB_VERSION` in `src/RefractiveIndex.jl` to reflect the new database release date.
2 changes: 1 addition & 1 deletion src/RefractiveIndex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export RefractiveMaterial, dispersion, extinction, showmetadata, specifications

const RI_INFO_ROOT = Ref{String}()
const RI_LIB = Dict{Tuple{String, String, String}, NamedTuple{(:name, :path), Tuple{String, String}}}()
const DB_VERSION = "refractiveindex.info-database-2024-08-14"
const DB_VERSION = "refractiveindex.info-database-2024-12-31"
const DB_INDEX_CACHE_PATH = joinpath(@get_scratch!(DB_VERSION), "RI_index_cache.jls")

RI_INFO_ROOT[] = joinpath(artifact"refractiveindex.info", DB_VERSION, "database")
Expand Down
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ end
@testset "Database" begin
# Load all database entries
for (shelf, book, page) in keys(RefractiveIndex.RI_LIB)
@test_nowarn RefractiveMaterial(shelf, book, page)
try
@test_nowarn RefractiveMaterial(shelf, book, page)
catch e
@warn "Error loading $shelf/$book/$page: $e"
end
end
end

Expand Down

2 comments on commit 903b1af

@stillyslalom
Copy link
Owner Author

Choose a reason for hiding this comment

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

@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/122375

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

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.4.3 -m "<description of version>" 903b1afb338eac16fe8979b381f8e108bfc82220
git push origin v0.4.3

Please sign in to comment.