Signal8 1.4__tar.gz → 1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of Signal8 might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Signal8
3
- Version: 1.4
3
+ Version: 1.6
4
4
  Summary: A multi-agent environment inspired by the Lewis Signaling Game, featuring eight unique problem configurations with both static and dynamic obstacles.
5
5
  Home-page: https://github.com/ethanmclark1/signal8
6
6
  Author: Ethan Clark
@@ -2,10 +2,10 @@ import math
2
2
  import numpy as np
3
3
 
4
4
  from gymnasium.utils import EzPickle
5
- from .utils.scenario import BaseScenario
6
- from .utils.core import Agent, Landmark, World, Action
7
- from .utils.simple_env import SimpleEnv, make_env
8
- from .utils.problems import get_problem, get_problem_list
5
+ from utils.scenario import BaseScenario
6
+ from utils.core import Agent, Landmark, World, Action
7
+ from utils.simple_env import SimpleEnv, make_env
8
+ from utils.problems import get_problem, get_problem_list
9
9
 
10
10
  class raw_env(SimpleEnv, EzPickle):
11
11
  def __init__(
@@ -83,7 +83,7 @@ class Scenario(BaseScenario):
83
83
  if agent.adversary:
84
84
  agent.color = np.array([0.5, 0, 0])
85
85
  agent.state.p_vel = np.zeros(world.dim_p)
86
- agent.state.p_pos = np_random.uniform(*zip(*world.dynamic_obctccoenstr[(i+1) % len(world.dynamic_obstacle_constr)]))
86
+ agent.state.p_pos = np_random.uniform(*zip(*world.dynamic_obstacle_constr[(i+1) % len(world.dynamic_obstacle_constr)]))
87
87
  agent.action_callback = self.get_scripted_action
88
88
  else:
89
89
  agent.color = np.array([0, 0.8, 0])
@@ -114,7 +114,7 @@ class Scenario(BaseScenario):
114
114
  world.static_obstacle_constr = problem['static_obs']
115
115
 
116
116
  if world.dynamic_obstacles:
117
- world.dynamic_obstacle_constrproblem['dynamic_obs']
117
+ world.dynamic_obstacle_constr = problem['dynamic_obs']
118
118
 
119
119
  # Get scripted action for adversarial agents s.t. they move in a straight line along their constraint
120
120
  def get_scripted_action(self, agent, world):
@@ -148,4 +148,4 @@ class Scenario(BaseScenario):
148
148
  else: # Otherwise, follow the direction of velocity
149
149
  action.u[1] = np.sign(agent.state.p_vel[1])
150
150
 
151
- return action
151
+ return action
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Signal8
3
- Version: 1.4
3
+ Version: 1.6
4
4
  Summary: A multi-agent environment inspired by the Lewis Signaling Game, featuring eight unique problem configurations with both static and dynamic obstacles.
5
5
  Home-page: https://github.com/ethanmclark1/signal8
6
6
  Author: Ethan Clark
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="Signal8",
5
- version="1.4",
5
+ version="1.6",
6
6
  packages=find_packages(),
7
7
  author="Ethan Clark",
8
8
  author_email="eclark715@gmail.com.com",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes