mettagrid 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.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.

Potentially problematic release.


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

mettagrid/grid.hpp CHANGED
@@ -83,12 +83,17 @@ class Grid {
83
83
  GridObject* obj2 = objects[id2];
84
84
  GridLocation loc1 = obj1->location;
85
85
  GridLocation loc2 = obj2->location;
86
+ Layer layer1 = obj1->location.layer;
87
+ Layer layer2 = obj2->location.layer;
88
+
86
89
  obj1->location = loc2;
87
90
  obj2->location = loc1;
88
-
89
91
  // Keep the layer the same
90
- grid[loc1.r][loc1.c][loc2.layer] = id2;
91
- grid[loc2.r][loc2.c][loc1.layer] = id1;
92
+ obj1->location.layer = layer2;
93
+ obj2->location.layer = layer1;
94
+
95
+ grid[loc1.r][loc1.c][loc1.layer] = id2;
96
+ grid[loc2.r][loc2.c][loc2.layer] = id1;
92
97
  }
93
98
 
94
99
  inline GridObject* object(GridObjectId obj_id) {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mettagrid
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A fast grid-based open-ended MARL environment
5
5
  Home-page: https://daveey.github.io
6
6
  License: MIT
@@ -207,7 +207,7 @@ mettagrid/event.pxd,sha256=-NTNGBu2ESVihtvp5CvmOICtvEZHKU8_d89-9mZ9isw,1110
207
207
  mettagrid/event.pyx,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
208
208
  mettagrid/grid.cpp,sha256=7iYUHvvcBnu2EMkb8yiqxwIdKOPpRcYXLQ-D4cu8HrY,20
209
209
  mettagrid/grid.cpython-311-darwin.so,sha256=7G4qtvzw8b_rcrLYNyRkkfsdq5JnDbyWTYGL9T_Ulqw,16744
210
- mettagrid/grid.hpp,sha256=lErxCdd32jue11jT9uGg2Zll7zM11_kxVJ9TscK52WM,6329
210
+ mettagrid/grid.hpp,sha256=GRiUM5-82bJcBozR6wDqWSbgmoO86twwZnjiMnSxAVc,6514
211
211
  mettagrid/grid.pxd,sha256=wKNHILQsToB1eqGp42pmSuVG-hQrANYjSD4RbNYoV1w,1794
212
212
  mettagrid/grid_agent.pxd,sha256=JRPk0TAJabTdxV4wlUoP3PeOnVkXNcAlMWqPnnXfwTE,134
213
213
  mettagrid/grid_agent.pyx,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -320,7 +320,7 @@ tests/regen_track_last_action_trace.py,sha256=a1QdBRkvvBC7C0ZANQiwknb3QFQa6iHkNm
320
320
  tests/test_basic.py,sha256=moICNw_9L_lfSQRT2k7LWdEIEC9x2kwK1o46ClVvz2Q,4861
321
321
  tests/test_kinship.py,sha256=TvyPBbVazgYMGP-KbkWqKoo1QO1d3iT2uPwccyKypss,2406
322
322
  tests/test_leaks.py,sha256=Uo-L5h68knTDVcnSUZ8rNXeb-rcMTOqZNOB0SYTC5_I,570
323
- mettagrid-0.1.2.dist-info/LICENSE,sha256=_0ZygdDOImEUQjXap6LgAetwhuvlOfOqcMDmNlAdjLo,1070
324
- mettagrid-0.1.2.dist-info/METADATA,sha256=YfnOnGPCb2fcdw4zIZS7m_AF5IZ0ivWIs9LAirMxoHQ,7166
325
- mettagrid-0.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
326
- mettagrid-0.1.2.dist-info/RECORD,,
323
+ mettagrid-0.1.3.dist-info/LICENSE,sha256=_0ZygdDOImEUQjXap6LgAetwhuvlOfOqcMDmNlAdjLo,1070
324
+ mettagrid-0.1.3.dist-info/METADATA,sha256=ufVd6N0CuhNWi9y1a1XN5TRRbZh9XaSwwAlwSKm6tMA,7166
325
+ mettagrid-0.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
326
+ mettagrid-0.1.3.dist-info/RECORD,,