Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzaniEdoardo committed Dec 18, 2024
1 parent afdd392 commit 2ade4bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/nemos/basis/_basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ def n_output_features(self) -> int | None:
-----
The number of output features can be determined only when the number of inputs
provided to the basis is known. Therefore, before the first call to ``compute_features``,
this property will return ``None``. After that call, or after setting the input shape with ``set_input_shape``, ``n_output_features`` will be available.
this property will return ``None``. After that call, or after setting the input shape with
``set_input_shape``, ``n_output_features`` will be available.
"""
if self._n_basis_input_ is not None:
return self.n_basis_funcs * self._n_basis_input_[0]
Expand Down
3 changes: 2 additions & 1 deletion src/nemos/basis/_basis_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def _check_input_shape_consistency(self, x: NDArray):
f" But got: {x.shape}.\n\n"
"Note: The number of samples (`n_samples`) can vary between calls of `compute_features`, "
"but all other dimensions must remain the same. If you need to process inputs with a "
"different shape, please create a new basis instance, or set a new input shape by calling `set_input_shape`."
"different shape, please create a new basis instance, or set a new input shape by calling "
"`set_input_shape`."
)


Expand Down

0 comments on commit 2ade4bd

Please sign in to comment.