pycityagent 2.0.0a71__cp312-cp312-macosx_11_0_arm64.whl → 2.0.0a73__cp312-cp312-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.0a71
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,4 +1,10 @@
1
- pycityagent/pycityagent-sim,sha256=hVQtSEhdZ3lFxl5i6ubPuDSv31hke_W0V_6gP8CMxBs,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=VujM3ypTCyUW6hcTDdK2ej0ARVMxlU1Djlh_zWnDgqk,109
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
2
8
  pycityagent/__init__.py,sha256=PUKWTXc-xdMG7px8oTNclodsILUgypANj2Z647sY63k,808
3
9
  pycityagent/pycityagent-ui,sha256=Ur95yZygIaZ5l_CDqP9394M5GQ66iV5PkcNPYFWqzvk,41225346
4
10
  pycityagent/metrics/mlflow_client.py,sha256=-iyh4BPVnBkluhmfucUzibCUnBX2iftkz4tVJJVxwHw,6958
@@ -58,7 +64,7 @@ pycityagent/environment/utils/const.py,sha256=1LqxnYJ8FSmq37fN5kIFlWLwycEDzFa8SF
58
64
  pycityagent/environment/sim/pause_service.py,sha256=UUTa4pTBOX_MGKki9QDgKId7scch0waAWF9xRVmNlAs,1701
59
65
  pycityagent/environment/sim/person_service.py,sha256=T1pRi5jDcivSInX7iGZoHKYZmgO7_t5MYtLhU12_LC4,10793
60
66
  pycityagent/environment/sim/aoi_service.py,sha256=bYVJDrOfDn8hgOORDU7PxMaT-fpqXA5Z0A080l2EPBc,1242
61
- pycityagent/environment/sim/sim_env.py,sha256=7HO5thoWMPQU_eZU2MolTLRgdS_x7I6F7qqdCWYxJJU,4496
67
+ pycityagent/environment/sim/sim_env.py,sha256=aSdr3k3Scs2Mdd6PsBrABdz_7GKmV8kV4jo1Zw5N8nY,4625
62
68
  pycityagent/environment/sim/lane_service.py,sha256=bmf0zOWkxDzMEDlhTdHNRJRiTFGgzjbeqmex387gHZs,3964
63
69
  pycityagent/environment/sim/client.py,sha256=x4REWPRFG_C2s0-CWz8MnYalD_esfu2pPHf_vpsCG78,2852
64
70
  pycityagent/environment/sim/__init__.py,sha256=CyJc5Tey9MgzomZv0ynAcV0yaUlSE3bPbegYXar8wJc,601
@@ -89,9 +95,3 @@ pycityagent/cityagent/blocks/mobility_block.py,sha256=YmKhJW_srC6b6n_LvJujSO-eB-
89
95
  pycityagent/survey/models.py,sha256=g3xni4GcA1Py3vlGt6z4ltutjgQ4G0uINYAM8vKRJAw,5225
90
96
  pycityagent/survey/__init__.py,sha256=rxwou8U9KeFSP7rMzXtmtp2fVFZxK4Trzi-psx9LPIs,153
91
97
  pycityagent/survey/manager.py,sha256=tHkdeq4lTfAHwvgf4-udsXri0z2l6E00rEbvwl7SqRs,3439
92
- pycityagent-2.0.0a71.dist-info/RECORD,,
93
- pycityagent-2.0.0a71.dist-info/LICENSE,sha256=n2HPXiupinpyHMnIkbCf3OTYd3KMqbmldu1e7av0CAU,1084
94
- pycityagent-2.0.0a71.dist-info/WHEEL,sha256=VujM3ypTCyUW6hcTDdK2ej0ARVMxlU1Djlh_zWnDgqk,109
95
- pycityagent-2.0.0a71.dist-info/entry_points.txt,sha256=BZcne49AAIFv-hawxGnPbblea7X3MtAtoPyDX8L4OC4,132
96
- pycityagent-2.0.0a71.dist-info/top_level.txt,sha256=yOmeu6cSXmiUtScu53a3s0p7BGtLMaV0aff83EHCTic,43
97
- pycityagent-2.0.0a71.dist-info/METADATA,sha256=_fzsl3HAFmBCT9RR8lJYhRfxfFIanoNp30WEROFPbWU,9110