-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
ba6152a
commit c2e5d84
Showing
5 changed files
with
27 additions
and
26 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
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
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
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 |
---|---|---|
@@ -1,21 +1,23 @@ | ||
from logging import getLogger | ||
|
||
import numpy as np | ||
from numpy.typing import NBitBase | ||
from numpy.typing import NDArray | ||
|
||
from mitosis._typing import ExpResults | ||
|
||
|
||
class Klass: | ||
@staticmethod | ||
def gen_data( | ||
length: int, extra: bool = False | ||
) -> dict[str, NDArray[np.floating[NBitBase]] | bool]: | ||
def gen_data(length: int, extra: bool = False) -> ExpResults: | ||
getLogger(__name__).info("This is run every time") | ||
getLogger(__name__).debug("This is run in debug mode only") | ||
|
||
return {"data": np.ones(length, dtype=np.float_), "extra": extra} | ||
return { | ||
"data": np.ones(length, dtype=np.float_), | ||
"extra": extra, | ||
"main": None, | ||
} # type: ignore | ||
|
||
|
||
def do_nothing(*args, **kwargs) -> dict[str, None]: | ||
def do_nothing(*args, **kwargs) -> ExpResults: | ||
"""An experiment step that accepts anything and produces nothing""" | ||
return {"main": None} |
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