safenax 0.4.5__tar.gz → 0.4.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.
Files changed (29) hide show
  1. {safenax-0.4.5 → safenax-0.4.6}/PKG-INFO +1 -1
  2. {safenax-0.4.5 → safenax-0.4.6}/pyproject.toml +1 -1
  3. {safenax-0.4.5 → safenax-0.4.6}/safenax/frozen_lake/frozen_lake_v2.py +7 -1
  4. {safenax-0.4.5 → safenax-0.4.6}/uv.lock +1 -1
  5. {safenax-0.4.5 → safenax-0.4.6}/.gitignore +0 -0
  6. {safenax-0.4.5 → safenax-0.4.6}/.pre-commit-config.yaml +0 -0
  7. {safenax-0.4.5 → safenax-0.4.6}/.python-version +0 -0
  8. {safenax-0.4.5 → safenax-0.4.6}/LICENSE +0 -0
  9. {safenax-0.4.5 → safenax-0.4.6}/PUBLISHING.md +0 -0
  10. {safenax-0.4.5 → safenax-0.4.6}/README.md +0 -0
  11. {safenax-0.4.5 → safenax-0.4.6}/safenax/__init__.py +0 -0
  12. {safenax-0.4.5 → safenax-0.4.6}/safenax/eco_ant/__init__.py +0 -0
  13. {safenax-0.4.5 → safenax-0.4.6}/safenax/eco_ant/eco_ant_v1.py +0 -0
  14. {safenax-0.4.5 → safenax-0.4.6}/safenax/eco_ant/eco_ant_v2.py +0 -0
  15. {safenax-0.4.5 → safenax-0.4.6}/safenax/fragile_ant.py +0 -0
  16. {safenax-0.4.5 → safenax-0.4.6}/safenax/frozen_lake/__init__.py +0 -0
  17. {safenax-0.4.5 → safenax-0.4.6}/safenax/frozen_lake/frozen_lake_v1.py +0 -0
  18. {safenax-0.4.5 → safenax-0.4.6}/safenax/portfolio_optimization/__init__.py +0 -0
  19. {safenax-0.4.5 → safenax-0.4.6}/safenax/portfolio_optimization/po_crypto.py +0 -0
  20. {safenax-0.4.5 → safenax-0.4.6}/safenax/portfolio_optimization/po_garch.py +0 -0
  21. {safenax-0.4.5 → safenax-0.4.6}/safenax/wrappers/__init__.py +0 -0
  22. {safenax-0.4.5 → safenax-0.4.6}/safenax/wrappers/brax.py +0 -0
  23. {safenax-0.4.5 → safenax-0.4.6}/safenax/wrappers/log.py +0 -0
  24. {safenax-0.4.5 → safenax-0.4.6}/scripts/setup_dev.sh +0 -0
  25. {safenax-0.4.5 → safenax-0.4.6}/tests/__init__.py +0 -0
  26. {safenax-0.4.5 → safenax-0.4.6}/tests/test_eco_ant_v1.py +0 -0
  27. {safenax-0.4.5 → safenax-0.4.6}/tests/test_eco_ant_v2.py +0 -0
  28. {safenax-0.4.5 → safenax-0.4.6}/tests/test_frozen_lake_v1.py +0 -0
  29. {safenax-0.4.5 → safenax-0.4.6}/tests/test_frozen_lake_v2.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: safenax
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: Constrained environments with a gymnax interface
5
5
  Project-URL: Homepage, https://github.com/0xprofessooor/safenax
6
6
  Project-URL: Repository, https://github.com/0xprofessooor/safenax
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "safenax"
7
- version = "0.4.5"
7
+ version = "0.4.6"
8
8
  description = "Constrained environments with a gymnax interface"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -224,7 +224,13 @@ class FrozenLakeV2(environment.Environment):
224
224
 
225
225
  new_state = EnvState(pos=next_pos, time=new_time)
226
226
 
227
- return self.get_obs(new_state, params), new_state, reward, done, {"cost": cost}
227
+ return (
228
+ self.get_obs(new_state, params),
229
+ new_state,
230
+ reward,
231
+ done,
232
+ {"cost": cost, "tile_type": tile_type},
233
+ )
228
234
 
229
235
  def reset_env(
230
236
  self,
@@ -1501,7 +1501,7 @@ wheels = [
1501
1501
 
1502
1502
  [[package]]
1503
1503
  name = "safenax"
1504
- version = "0.4.4"
1504
+ version = "0.4.6"
1505
1505
  source = { editable = "." }
1506
1506
  dependencies = [
1507
1507
  { name = "brax" },
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
File without changes