-
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.
🏗️ Cleans up the respository structure
- Loading branch information
Showing
19 changed files
with
96 additions
and
71 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,3 +0,0 @@ | ||
[submodule "simzoo/envs/ex3_ekf"] | ||
path = simzoo/envs/ex3_ekf | ||
url = ../ex3_ekf.git | ||
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,34 +1 @@ | ||
"""The Simzoo Gym environments.""" | ||
import importlib | ||
import sys | ||
|
||
# Import simzoo stand-alone package or name_space package (mlc) | ||
if "simzoo" in sys.modules: | ||
from simzoo.envs.oscillator.oscillator import Oscillator | ||
from simzoo.envs.ex3_ekf.ex3_ekf import Ex3_EKF | ||
from simzoo.envs.cart_pole.CartPole import CartPoleCustom | ||
elif importlib.util.find_spec("simzoo") is not None: | ||
Oscillator = getattr( | ||
importlib.import_module("simzoo.envs.oscillator.oscillator"), "Oscillator" | ||
) | ||
Ex3_EKF = getattr(importlib.import_module("simzoo.envs.ex3_ekf.ex3_ekf"), "Ex3_EKF") | ||
CartPole = getattr(importlib.import_module("simzoo.envs.ex3_ekf.cart_pole"), "CartPoleCustom") | ||
else: | ||
Oscillator = getattr( | ||
importlib.import_module( | ||
"bayesian_learning_control.simzoo.simzoo.envs.oscillator.oscillator" | ||
), | ||
"Oscillator", | ||
) | ||
Ex3_EKF = getattr( | ||
importlib.import_module( | ||
"bayesian_learning_control.simzoo.simzoo.envs.ex3_ekf.ex3_ekf" | ||
), | ||
"Ex3_EKF", | ||
) | ||
CartPole = getattr( | ||
importlib.import_module( | ||
"bayesian_learning_control.simzoo.simzoo.envs.cart_pole.CartPole" | ||
), | ||
"CartPoleCustom", | ||
) |
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,21 @@ | ||
"""Import biological environments onto namespace | ||
""" | ||
|
||
import sys | ||
import importlib | ||
|
||
# NOTE: Makes sure that it works both in the Simzoo stand-alone package and the name_space package (blc) | ||
if "simzoo" in sys.modules: | ||
from simzoo.envs.biological.oscillator.oscillator import Oscillator | ||
elif importlib.util.find_spec("simzoo") is not None: | ||
Oscillator = getattr( | ||
importlib.import_module("simzoo.envs.biological.oscillator.oscillator"), | ||
"Oscillator", | ||
) | ||
else: | ||
Oscillator = getattr( | ||
importlib.import_module( | ||
"bayesian_learning_control.simzoo.simzoo.envs.biological.oscillator.oscillator" | ||
), | ||
"Oscillator", | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,34 @@ | ||
"""Import classical_control environments onto namespace | ||
""" | ||
|
||
import sys | ||
import importlib | ||
|
||
# NOTE: Makes sure that it works both in the Simzoo stand-alone package and the name_space package (blc) | ||
if "simzoo" in sys.modules: | ||
from simzoo.envs.classic_control.ex3_ekf.ex3_ekf import Ex3EKF | ||
from simzoo.envs.classic_control.cart_pole_cost.cart_pole_cost import CartPoleCost | ||
elif importlib.util.find_spec("simzoo") is not None: | ||
Ex3EKF = getattr( | ||
importlib.import_module("simzoo.envs.classic_control.ex3_ekf.ex3_ekf"), | ||
"Ex3EKF", | ||
) | ||
CartPoleCost = getattr( | ||
importlib.import_module( | ||
"simzoo.envs.classic_control.cart_pole_cost.cart_pole_cost" | ||
), | ||
"CartPoleCost", | ||
) | ||
else: | ||
Ex3EKF = getattr( | ||
importlib.import_module( | ||
"bayesian_learning_control.simzoo.simzoo.envs.classic_control.ex3_ekf.ex3_ekf" | ||
), | ||
"Ex3EKF", | ||
) | ||
CartPoleCost = getattr( | ||
importlib.import_module( | ||
"bayesian_learning_control.simzoo.simzoo.envs.classic_control.cart_pole_cost.cart_pole_cost" | ||
), | ||
"CartPoleCost", | ||
) |
File renamed without changes.
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
File renamed without changes.
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,18 @@ | ||
"""Noisy master slave system (Ex3EKF) gym environment.""" | ||
import sys | ||
import importlib | ||
|
||
# Import simzoo stand-alone package or name_space package (blc) | ||
if "simzoo" in sys.modules: | ||
from simzoo.envs.classic_control.ex3_ekf.ex3_ekf import Ex3EKF | ||
elif importlib.util.find_spec("simzoo") is not None: | ||
Ex3EKF = getattr( | ||
importlib.import_module("simzoo.envs.classic_control.ex3_ekf.ex3_ekf"), "Ex3EKF" | ||
) | ||
else: | ||
Ex3EKF = getattr( | ||
importlib.import_module( | ||
"bayesian_learning_control.simzoo.simzoo.envs.classic_control.ex3_ekf.ex3_ekf" | ||
), | ||
"Ex3EKF", | ||
) |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.