Skip to content

Commit

Permalink
Merge pull request #3 from mmcdermott/remove_poorly_supported_mixins
Browse files Browse the repository at this point in the history
Removed all mixins but `seedable` and `timeable` as they are not currently well supported.
  • Loading branch information
mmcdermott authored Sep 25, 2024
2 parents 8a303a3 + a1975d8 commit 54782bf
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 450 deletions.
29 changes: 1 addition & 28 deletions src/mixins/__init__.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,4 @@
from .debuggable import DebuggableMixin
from .multiprocessingable import MultiprocessingMixin
from .saveable import SaveableMixin
from .seedable import SeedableMixin
from .swapcacheable import SwapcacheableMixin
from .timeable import TimeableMixin

__all__ = [
"DebuggableMixin",
"MultiprocessingMixin",
"SaveableMixin",
"SeedableMixin",
"SwapcacheableMixin",
"TimeableMixin",
]

# Tensorable and Tqdmable rely on packages that may or may not be installed.

try:
from .tensorable import TensorableMixin # noqa

__all__.append("TensorableMixin")
except ImportError:
pass

try:
from .tqdmable import TQDMableMixin # noqa

__all__.append("TQDMableMixin")
except ImportError:
pass
__all__ = ["SeedableMixin", "TimeableMixin"]
47 changes: 0 additions & 47 deletions src/mixins/debuggable.py

This file was deleted.

32 changes: 0 additions & 32 deletions src/mixins/multiprocessingable.py

This file was deleted.

85 changes: 0 additions & 85 deletions src/mixins/saveable.py

This file was deleted.

74 changes: 0 additions & 74 deletions src/mixins/swapcacheable.py

This file was deleted.

39 changes: 0 additions & 39 deletions src/mixins/tensorable.py

This file was deleted.

27 changes: 0 additions & 27 deletions src/mixins/tqdmable.py

This file was deleted.

Loading

0 comments on commit 54782bf

Please sign in to comment.