-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Documenter.jl
committed
Sep 7, 2023
0 parents
commit f187a6e
Showing
879 changed files
with
996,235 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>API · CLIMAParameters.jl</title><script data-outdated-warner src="../assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.045/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL=".."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../assets/documenter.js"></script><script src="../siteinfo.js"></script><script src="../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href="../">CLIMAParameters.jl</a></span></div><form class="docs-search" action="../search/"><input class="docs-search-query" id="documenter-search-query" name="q" type="text" placeholder="Search docs"/></form><ul class="docs-menu"><li><a class="tocitem" href="../">Home</a></li><li><a class="tocitem" href="../toml/">TOML file interface</a></li><li><a class="tocitem" href="../toml_dicts/">TOML dicts</a></li><li class="is-active"><a class="tocitem" href>API</a><ul class="internal"><li><a class="tocitem" href="#Parameter-dictionaries"><span>Parameter dictionaries</span></a></li><li><a class="tocitem" href="#File-parsing-and-parameter-logging"><span>File parsing and parameter logging</span></a></li></ul></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>API</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>API</a></li></ul></nav><div class="docs-right"><a class="docs-edit-link" href="https://github.com/CliMA/CLIMAParameters.jl/blob/main/docs/src/API.md" title="Edit on GitHub"><span class="docs-icon fab"></span><span class="docs-label is-hidden-touch">Edit on GitHub</span></a><a class="docs-settings-button fas fa-cog" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-sidebar-button fa fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a></div></header><article class="content" id="documenter-page"><h1 id="API"><a class="docs-heading-anchor" href="#API">API</a><a id="API-1"></a><a class="docs-heading-anchor-permalink" href="#API" title="Permalink"></a></h1><h2 id="Parameter-dictionaries"><a class="docs-heading-anchor" href="#Parameter-dictionaries">Parameter dictionaries</a><a id="Parameter-dictionaries-1"></a><a class="docs-heading-anchor-permalink" href="#Parameter-dictionaries" title="Permalink"></a></h2><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.AbstractTOMLDict" href="#CLIMAParameters.AbstractTOMLDict"><code>CLIMAParameters.AbstractTOMLDict</code></a> — <span class="docstring-category">Type</span></header><section><div><pre><code class="language-julia hljs">AbstractTOMLDict{FT <: AbstractFloat}</code></pre><p>Abstract parameter dict. Two subtypes:</p><ul><li><a href="#CLIMAParameters.ParamDict"><code>ParamDict</code></a></li><li><a href="#CLIMAParameters.AliasParamDict"><code>AliasParamDict</code></a></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L1-L7">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.ParamDict" href="#CLIMAParameters.ParamDict"><code>CLIMAParameters.ParamDict</code></a> — <span class="docstring-category">Type</span></header><section><div><pre><code class="language-julia hljs">ParamDict(data::Dict, override_dict::Union{Nothing,Dict})</code></pre><p>Structure to hold information read-in from TOML file, as well as a parametrization type <code>FT</code>.</p><p>Uses the name to search</p><p><strong>Fields</strong></p><ul><li><p><code>data</code>: dictionary representing a default/merged parameter TOML file</p></li><li><p><code>override_dict</code>: either a nothing, or a dictionary representing an override parameter TOML file</p></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L13-L24">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.AliasParamDict" href="#CLIMAParameters.AliasParamDict"><code>CLIMAParameters.AliasParamDict</code></a> — <span class="docstring-category">Type</span></header><section><div><pre><code class="language-julia hljs">AliasParamDict(data::Dict, override_dict::Union{Nothing,Dict})</code></pre><p>Structure to hold information read-in from TOML file, as well as a parametrization type <code>FT</code>.</p><p>Uses the alias to search</p><p><strong>Fields</strong></p><ul><li><p><code>data</code>: dictionary representing a default/merged parameter TOML file</p></li><li><p><code>override_dict</code>: either a nothing, or a dictionary representing an override parameter TOML file</p></li><li><p><code>alias_to_name_map</code>: Alias->name map</p></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L32-L43">source</a></section></article><h2 id="File-parsing-and-parameter-logging"><a class="docs-heading-anchor" href="#File-parsing-and-parameter-logging">File parsing and parameter logging</a><a id="File-parsing-and-parameter-logging-1"></a><a class="docs-heading-anchor-permalink" href="#File-parsing-and-parameter-logging" title="Permalink"></a></h2><h3 id="User-facing-functions:"><a class="docs-heading-anchor" href="#User-facing-functions:">User facing functions:</a><a id="User-facing-functions:-1"></a><a class="docs-heading-anchor-permalink" href="#User-facing-functions:" title="Permalink"></a></h3><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.create_toml_dict" href="#CLIMAParameters.create_toml_dict"><code>CLIMAParameters.create_toml_dict</code></a> — <span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">create_toml_dict(FT; | ||
override_file, | ||
default_file, | ||
dict_type="alias" | ||
)</code></pre><p>Creates a <code>ParamDict{FT}</code> struct, by reading and merging upto two TOML files or Julia Dicts with override information taking precedence over default information.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L400-L410">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.get_parameter_values!" href="#CLIMAParameters.get_parameter_values!"><code>CLIMAParameters.get_parameter_values!</code></a> — <span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">get_parameter_values!( | ||
pd::AbstractTOMLDict, | ||
names::Union{String,Vector{String}}, | ||
component::String | ||
)</code></pre><p>(Note the <code>!</code>) Gets the parameter values, and logs the component (if given) where parameters are used.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L216-L225">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.get_parameter_values" href="#CLIMAParameters.get_parameter_values"><code>CLIMAParameters.get_parameter_values</code></a> — <span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">get_parameter_values(pd::AbstractTOMLDict, names)</code></pre><p>Gets the parameter values only.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L244-L248">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.float_type" href="#CLIMAParameters.float_type"><code>CLIMAParameters.float_type</code></a> — <span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">float_type(::AbstractTOMLDict)</code></pre><p>The float type from the parameter dict.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L63-L67">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.log_parameter_information" href="#CLIMAParameters.log_parameter_information"><code>CLIMAParameters.log_parameter_information</code></a> — <span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">log_parameter_information( | ||
pd::AbstractTOMLDict, | ||
filepath; | ||
strict::Bool = false | ||
)</code></pre><p>Writes the parameter log file at <code>filepath</code>; checks that override parameters are all used.</p><p>If <code>strict = true</code>, errors if override parameters are unused.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L349-L360">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.write_log_file" href="#CLIMAParameters.write_log_file"><code>CLIMAParameters.write_log_file</code></a> — <span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">write_log_file(pd::AbstractTOMLDict, filepath)</code></pre><p>Writes a log file of all used parameters of <code>pd</code> at the <code>filepath</code>. This file can be used to rerun the experiment.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L330-L335">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="CLIMAParameters.merge_toml_files" href="#CLIMAParameters.merge_toml_files"><code>CLIMAParameters.merge_toml_files</code></a> — <span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">merge_toml_files(filepaths; override)</code></pre><p>Parses and merges all of the given TOML filepaths and returns them as a Dict. This allows a toml_dict to be constructed from multiple TOML files. By default, non-unique TOML entries are not allowed, but this can be changed by setting <code>override = true</code>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CliMA/CLIMAParameters.jl/blob/cea8a2cd266530c1c6a952df9047abf60e4c3aad/src/file_parsing.jl#L255-L262">source</a></section></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../toml_dicts/">« TOML dicts</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Thursday 7 September 2023 21:06">Thursday 7 September 2023</span>. Using Julia version 1.8.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html> |
Oops, something went wrong.