Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/hya/braceexpand.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
r"""Implement a braceexpand resolver for brace expansion patterns.

This module provides OmegaConf resolvers that use the braceexpand library
to expand string patterns with brace notation (similar to bash brace expansion).
The resolver is registered only if the ``braceexpand`` package is available.
This module provides OmegaConf resolvers that use the braceexpand
library to expand string patterns with brace notation (similar to bash
brace expansion). The resolver is registered only if the ``braceexpand``
package is available.
"""

from __future__ import annotations
Expand Down
11 changes: 5 additions & 6 deletions src/hya/numpy.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
r"""Implement NumPy resolvers for array creation and manipulation.

This module provides OmegaConf resolvers that use NumPy for array operations.
The resolvers are registered only if the ``numpy`` package is available,
allowing users to create NumPy arrays directly from configuration files.
registry.register_resolvers()
This module provides OmegaConf resolvers that use NumPy for array
operations. The resolvers are registered only if the ``numpy`` package
is available, allowing users to create NumPy arrays directly from
configuration files. registry.register_resolvers()

# Then in your OmegaConf config:
# data: ${hya.np.array:[1, 2, 3]}
# Then in your OmegaConf config: # data: ${hya.np.array:[1, 2, 3]}
"""

from __future__ import annotations
Expand Down
8 changes: 4 additions & 4 deletions src/hya/torch.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
r"""Implement PyTorch resolvers for tensor creation and dtype handling.

This module provides OmegaConf resolvers that use PyTorch for tensor operations
and data type specifications. The resolvers are registered only if the ``torch``
package is available, enabling users to create PyTorch tensors and specify dtypes
directly from configuration files.
This module provides OmegaConf resolvers that use PyTorch for tensor
operations and data type specifications. The resolvers are registered
only if the ``torch`` package is available, enabling users to create
PyTorch tensors and specify dtypes directly from configuration files.
"""

from __future__ import annotations
Expand Down