-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(package): fewer dependencies with fewer version pins (#95)
* feat(cli): add builtin fragile swarm solver - drop dependency on fragile library since we need a fixed version, and its deps are OOOOOOOOLD. * feat(package): drop pydantic dependency - we aren't using it for anything (useful) * chore: fragile relative imports 🎉 - tests pass and CLI works and no more numpy/gym heck * chore: fix up numpy errors and test suite - we can swarm with no fragile dep or numpy version pinning :) * chore: drop unused fragile code * chore: fix tests * chore: drop lots more unused fragile code * chore: drop more unused fragile code * chore: more unused code * chore: drop networkx requirement and autoformat code - had to drop history tree 😭 but it will be fine * chore: drop data generation swarm example * feat(ci): add cron builds and matrix testing * chore: update codecov range for mathy repo
- Loading branch information
1 parent
145612e
commit 699d40e
Showing
27 changed files
with
4,377 additions
and
138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
coverage: | ||
status: | ||
patch: off | ||
patch: off | ||
precision: 2 | ||
round: down | ||
range: "50...100" |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"""Framework for FAI algorithms development.""" | ||
|
||
import warnings | ||
|
||
warnings.filterwarnings( | ||
"ignore", | ||
message=( | ||
"Using or importing the ABCs from 'collections' instead of from 'collections.abc' " | ||
"is deprecated since Python 3.3,and in 3.9 it will stop working" | ||
), | ||
) | ||
warnings.filterwarnings( | ||
"ignore", | ||
message=( | ||
"the imp module is deprecated in favour of importlib; see the module's " | ||
"documentation for alternative uses" | ||
), | ||
) | ||
warnings.filterwarnings( | ||
"ignore", | ||
message=( | ||
"Using or importing the ABCs from 'collections' instead of from " | ||
"'collections.abc' is deprecated, and in 3.8 it will stop working" | ||
), | ||
) | ||
warnings.filterwarnings( | ||
"ignore", | ||
message=( | ||
"The set_clim function was deprecated in Matplotlib 3.1 " | ||
"and will be removed in 3.3. Use ScalarMappable.set_clim " | ||
"instead." | ||
), | ||
) | ||
warnings.filterwarnings("ignore", message="Gdk.Cursor.new is deprecated") | ||
|
||
from .core.states import States # noqa: E402 | ||
from .core.walkers import Walkers # noqa: E402 | ||
from .version import __version__ # noqa: E402 |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Core base classes for developing FAI algorithms.""" | ||
from .base_classes import BaseCritic, BaseWrapper | ||
from .bounds import Bounds | ||
from .env import DiscreteEnv, Environment | ||
from .models import ( | ||
BinarySwap, | ||
ContinuousUniform, | ||
DiscreteUniform, | ||
Model, | ||
NormalContinuous, | ||
) | ||
from .states import OneWalker, States, StatesEnv, StatesModel, StatesWalkers | ||
from .swarm import Swarm | ||
from .walkers import Walkers | ||
from .wrappers import EnvWrapper |
Oops, something went wrong.