v1 · Sweeps
Legacy v1 sweep construction, iteration, and supporting utilities.
These compatibility APIs ship with the selected source version. See the compatibility overview for other v1/v2 APIs, or migration when upgrading.
API index
| Name | Kind | Defined in |
|---|---|---|
dot_join | function | params_proto.v1.hyper |
key_items | function | params_proto.v1.hyper |
ProxyObject | class | params_proto.v1.hyper |
flatten_items | function | params_proto.v1.hyper |
Sweep | class | params_proto.v1.hyper |
sweep | singleton | params_proto.v1.hyper |
params_proto.v1.hyper
dot_join
dot_join(*keys)remove Nones from the keys, but not '',
Parameters
| Parameter | Type / default | Description |
|---|---|---|
*keys | —variadic | — |
key_items
key_items(d, prefix = None)Takes in tuples of [key, value], or [None, [[key, value], ...]] returns wtf
Parameters
| Parameter | Type / default | Description |
|---|---|---|
d | —required | — |
prefix | —= None | — |
ProxyObject
ProxyObject(hook, prefix = None)Parameters
| Parameter | Type / default | Description |
|---|---|---|
hook | —required | — |
prefix | —= None | — |
ProxyObject.__init__
ProxyObject.__init__(hook, prefix = None)Parameters
| Parameter | Type / default | Description |
|---|---|---|
hook | —required | — |
prefix | —= None | — |
flatten_items
flatten_items(row) → Iterable[Item]Parameters
| Parameter | Type / default | Description |
|---|---|---|
row | —required | — |
Returns
Iterable[Item]
Sweep
Sweep()Sweep.__init__
Sweep.__init__()Sweep.set_param
Sweep.set_param(name, params, prefix = None)Parameters
| Parameter | Type / default | Description |
|---|---|---|
name | —required | — |
params | —required | — |
prefix | —= None | — |
Sweep.product
Sweep.product(Strut: T) → ContextManager[T]Parameters
| Parameter | Type / default | Description |
|---|---|---|
Strut | Trequired | — |
Returns
ContextManager[T]
Sweep.zip
Sweep.zip(Strut: T) → ContextManager[T]Parameters
| Parameter | Type / default | Description |
|---|---|---|
Strut | Trequired | — |
Returns
ContextManager[T]
Sweep.set
Sweep.set(Strut: T) → ContextManager[T]Parameters
| Parameter | Type / default | Description |
|---|---|---|
Strut | Trequired | — |
Returns
ContextManager[T]
sweep
sweep = Sweep()sweep.__init__
sweep.__init__()sweep.set_param
sweep.set_param(name, params, prefix = None)Parameters
| Parameter | Type / default | Description |
|---|---|---|
name | —required | — |
params | —required | — |
prefix | —= None | — |
sweep.product
sweep.product(Strut: T) → ContextManager[T]Parameters
| Parameter | Type / default | Description |
|---|---|---|
Strut | Trequired | — |
Returns
ContextManager[T]
sweep.zip
sweep.zip(Strut: T) → ContextManager[T]Parameters
| Parameter | Type / default | Description |
|---|---|---|
Strut | Trequired | — |
Returns
ContextManager[T]
sweep.set
sweep.set(Strut: T) → ContextManager[T]Parameters
| Parameter | Type / default | Description |
|---|---|---|
Strut | Trequired | — |
Returns
ContextManager[T]
Public imports
These symbols are available from this module. Their definitions are documented in the linked modules.
is_private—params_proto.v2.proto.is_private