What is the best place for static data in a package? The data in question is Waasmaier-Kirfel table of atomic X-ray formfactors. The current solution is to place the datafile in the subfolder “data” of the “src” folder, and load it at compile time in the following way:
function load_waaskirf() waaskirf_filepath = joinpath(@__DIR__, "data", "f0_WaasKirf.dat") t=readlines(waaskirf_filepath) # More code... end const wktab=load_waaskirf()
Is this the right way of doing things? In particular, is it OK to place the data in a subfolder of “src”?