pycityagent 2.0.0a72__cp39-cp39-macosx_11_0_arm64.whl → 2.0.0a73__cp39-cp39-macosx_11_0_arm64.whl

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.
@@ -51,6 +51,7 @@ class ControlSimEnv:
51
51
  log_dir: str,
52
52
  min_step_time: int = 1000,
53
53
  timeout: int = 5,
54
+ max_process: int = 32,
54
55
  sim_addr: Optional[str] = None,
55
56
  ):
56
57
  """
@@ -67,6 +68,7 @@ class ControlSimEnv:
67
68
  self._log_dir = log_dir
68
69
  self._min_step_time = min_step_time
69
70
  self._timeout = timeout
71
+ self._max_procs = max_process
70
72
 
71
73
  self._sim_config = _generate_yaml_config(map_file, start_step, total_step)
72
74
  # sim
@@ -99,6 +101,7 @@ class ControlSimEnv:
99
101
  assert self._sim_proc is None
100
102
  self.sim_port = find_free_port()
101
103
  config_base64 = encode_to_base64(self._sim_config)
104
+ os.environ["GOMAXPROCS"] = str(self._max_procs)
102
105
  self._sim_proc = Popen(
103
106
  [
104
107
  "pycityagent-sim",
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pycityagent
3
- Version: 2.0.0a72
3
+ Version: 2.0.0a73
4
4
  Summary: LLM-based city environment agent building library
5
5
  Author-email: Yuwei Yan <pinkgranite86@gmail.com>, Junbo Yan <yanjb20thu@gmali.com>, Jun Zhang <zhangjun990222@gmali.com>
6
6
  License: MIT License
@@ -1,10 +1,10 @@
1
- pycityagent-2.0.0a72.dist-info/RECORD,,
2
- pycityagent-2.0.0a72.dist-info/LICENSE,sha256=n2HPXiupinpyHMnIkbCf3OTYd3KMqbmldu1e7av0CAU,1084
3
- pycityagent-2.0.0a72.dist-info/WHEEL,sha256=md3JO_ifs5j508p3TDNMgtQVtnQblpGEt_Wo4W56l8Y,107
4
- pycityagent-2.0.0a72.dist-info/entry_points.txt,sha256=BZcne49AAIFv-hawxGnPbblea7X3MtAtoPyDX8L4OC4,132
5
- pycityagent-2.0.0a72.dist-info/top_level.txt,sha256=yOmeu6cSXmiUtScu53a3s0p7BGtLMaV0aff83EHCTic,43
6
- pycityagent-2.0.0a72.dist-info/METADATA,sha256=ZyrCMaJZ5v0vIlHPLpxZ5MRpqLSWyq4UUDY1Gs96A8A,9110
7
- pycityagent/pycityagent-sim,sha256=yqy-8H0iJLcPk2yR-JDtvM6OZR2w-8y4uzre748OTa8,35884466
1
+ pycityagent-2.0.0a73.dist-info/RECORD,,
2
+ pycityagent-2.0.0a73.dist-info/LICENSE,sha256=n2HPXiupinpyHMnIkbCf3OTYd3KMqbmldu1e7av0CAU,1084
3
+ pycityagent-2.0.0a73.dist-info/WHEEL,sha256=md3JO_ifs5j508p3TDNMgtQVtnQblpGEt_Wo4W56l8Y,107
4
+ pycityagent-2.0.0a73.dist-info/entry_points.txt,sha256=BZcne49AAIFv-hawxGnPbblea7X3MtAtoPyDX8L4OC4,132
5
+ pycityagent-2.0.0a73.dist-info/top_level.txt,sha256=yOmeu6cSXmiUtScu53a3s0p7BGtLMaV0aff83EHCTic,43
6
+ pycityagent-2.0.0a73.dist-info/METADATA,sha256=6YwxQbl14QnhjbHMwMPu4RoaBquNt8mSIXGJFaoD_CQ,9110
7
+ pycityagent/pycityagent-sim,sha256=MYlRyvlpybVbiqKehzfV3GUbhatuQHNrxNWRBOs3nsU,35884466
8
8
  pycityagent/__init__.py,sha256=PUKWTXc-xdMG7px8oTNclodsILUgypANj2Z647sY63k,808
9
9
  pycityagent/pycityagent-ui,sha256=Ur95yZygIaZ5l_CDqP9394M5GQ66iV5PkcNPYFWqzvk,41225346
10
10
  pycityagent/metrics/mlflow_client.py,sha256=-iyh4BPVnBkluhmfucUzibCUnBX2iftkz4tVJJVxwHw,6958
@@ -64,7 +64,7 @@ pycityagent/environment/utils/const.py,sha256=1LqxnYJ8FSmq37fN5kIFlWLwycEDzFa8SF
64
64
  pycityagent/environment/sim/pause_service.py,sha256=UUTa4pTBOX_MGKki9QDgKId7scch0waAWF9xRVmNlAs,1701
65
65
  pycityagent/environment/sim/person_service.py,sha256=T1pRi5jDcivSInX7iGZoHKYZmgO7_t5MYtLhU12_LC4,10793
66
66
  pycityagent/environment/sim/aoi_service.py,sha256=bYVJDrOfDn8hgOORDU7PxMaT-fpqXA5Z0A080l2EPBc,1242
67
- pycityagent/environment/sim/sim_env.py,sha256=7HO5thoWMPQU_eZU2MolTLRgdS_x7I6F7qqdCWYxJJU,4496
67
+ pycityagent/environment/sim/sim_env.py,sha256=aSdr3k3Scs2Mdd6PsBrABdz_7GKmV8kV4jo1Zw5N8nY,4625
68
68
  pycityagent/environment/sim/lane_service.py,sha256=bmf0zOWkxDzMEDlhTdHNRJRiTFGgzjbeqmex387gHZs,3964
69
69
  pycityagent/environment/sim/client.py,sha256=x4REWPRFG_C2s0-CWz8MnYalD_esfu2pPHf_vpsCG78,2852
70
70
  pycityagent/environment/sim/__init__.py,sha256=CyJc5Tey9MgzomZv0ynAcV0yaUlSE3bPbegYXar8wJc,601