Skip to content

Commit

Permalink
fix: remove FunctionGeneration reference
Browse files Browse the repository at this point in the history
When the model data is not available, the error message that was
generated was still using the removed `FunctionGeneration` module. This
has now been fixed.
  • Loading branch information
fjebaker committed Nov 7, 2024
1 parent 8b9bbd1 commit acffd5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model-data-io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ mkdir_if_not_exists(path) = !ispath(path) && mkdir(path)

function ensure_model_data(M::Type)
if !_is_model_data_downloaded(M)
@warn "Model data for $(FunctionGeneration.model_base_name(M)) is not present!\nRequisite model data may be fetched with `SpectralFitting.download_model_data($(FunctionGeneration.model_base_name(M)))`."
@warn "Model data for $(Base.typename(M).name) is not present!\nRequisite model data may be fetched with `SpectralFitting.download_model_data($(Base.typename(M).name))`."
error("Missing data.")
end
end
Expand Down

0 comments on commit acffd5e

Please sign in to comment.