-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from rodrigo-arenas/0.6.Xdev
Parameterized tests
- Loading branch information
Showing
6 changed files
with
175 additions
and
226 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.5.0" | ||
__version__ = "0.6.0dev0" |
Empty file.
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,13 +1,17 @@ | ||
class BaseDimension(object): | ||
from abc import ABC, abstractmethod | ||
|
||
|
||
class BaseDimension(ABC): | ||
""" | ||
Base class for the space definition of data types | ||
""" | ||
|
||
@abstractmethod | ||
def sample(self): | ||
""" | ||
Sample a random value from the assigned distribution | ||
""" | ||
|
||
raise NotImplementedError( | ||
"The sample method must be defined according each data type handler" | ||
) | ||
) # pragma: no cover |
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
Oops, something went wrong.