params-proto

v2 · Helpers

Legacy v2 partial application, dependency dictionaries, and formatting helpers.

These compatibility APIs ship with the selected source version. See the compatibility overview for other v1/v2 APIs, or migration when upgrading.

API index

NameKindDefined in
proto_partialfunctionparams_proto.v2.partial
clean_ansifunctionparams_proto.v2.utils
dot_to_depsfunctionparams_proto.v2.utils
read_depsfunctionparams_proto.v2.utils
flattenfunctionparams_proto.v2.utils

params_proto.v2.partial

proto_partial

functionparams_proto.v2.partial.proto_partialSource ↗
proto_partial(proto: ParamsProto, method = False)

Overrides the function with values from the Proto Object.

ParameterType / defaultDescription
protoParamsProto
required
method
= False

Public imports

These symbols are available from this module. Their definitions are documented in the linked modules.

params_proto.v2.utils

clean_ansi

functionparams_proto.v2.utils.clean_ansiSource ↗
clean_ansi(string: str)
ParameterType / defaultDescription
stringstr
required

dot_to_deps

functionparams_proto.v2.utils.dot_to_depsSource ↗
dot_to_deps(dot_dict, *prefixes)
ParameterType / defaultDescription
dot_dict
required
*prefixes
variadic

read_deps

functionparams_proto.v2.utils.read_depsSource ↗
read_deps(*path: str, should_flatten: bool = True) → dict

Read YAML configuration file with additional functionality for Fast NeRF.

Parameters

path: path to the config file should_flatten: whether to flatten dicts within the config file

Returns

Dict where the config is flattened and base configuration loaded, if applicable.

ParameterType / defaultDescription
*pathstr
variadic
should_flattenbool
= True
Keyword-only parameter.

dict

flatten

functionparams_proto.v2.utils.flattenSource ↗
flatten(nested_dict: dict, parent_key: str = '', sep: str = '.', generic_key: str = '_flatten') → dict

Flatten configuration dict. Use the "_flatten: False" key and value to flatten the dict in the YAML configuration files.

ParameterType / defaultDescription
nested_dictdict
required
parent_keystr
= ''
sepstr
= '.'
generic_keystr
= '_flatten'

dict