Skip to content

Commit

Permalink
small doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici committed Dec 8, 2023
1 parent c544abf commit 725361e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/name_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The constructor checks for bijection, so mappings are guaranteed to be unique.
This mapping allows developers to use short custom names when retrieving parameters.

The primary way to retrieve parameters is with `get_parameter_values`.
To use this, pass in the `toml_dict` and the short names of the parameters you wish to retrieve.
By default, `get_parameter_values` takes in a `ParamDict` and short names of parameters, finds their corresponding TOML entries from the default parameter name map, and returns a NamedTuple with the short names and their corresponding values:
```julia
toml_dict = CP.create_toml_dict(Float64)

Expand All @@ -29,7 +29,7 @@ params.Omega
```
#### How do I know which short names to use?

Here, no name mapping is explicitly being used. If no name map is provided, the default mapping will be used.
In the example above, no name mapping is explicitly being used. If no name map is provided, the default mapping will be used.
The default mapping is made from the parameters names to corresponding former aliases, and
can be accessed via `default_param_name_map()`

Expand Down

0 comments on commit 725361e

Please sign in to comment.