Closed benoitgaudou closed 6 years ago
After digging a little bit, it seems related to the fix of the issue #2324 . It was itself related to the fix of issue #2239.
Any idea on how to kill these 3 issues with one stone ?
I have big big impression on the comment of Alexis about 2 different size environment "the results are unexpected when the sizes of the different environments (i.e. the shapes in which the topologies are defined) are different. To be frank, I havent tested it yet, and I wonder what would happen if you merge a micro-model in a 1000x1000 environment into a macro-model with a 10x10 environment..." In this comodel, urban and traffic have different size environement
This issue have the same phenomenon with the case that raster.gaml dont have right projection, i.e temove the prj of asc file. So it make me feel the current comodeling works but there is a case did not take into account. I try with some projection/topology now.
Note that I also tried to change the file setting the shape of the main model (I use the road shapefile of the other imported model). In this case, I do not have the exception anymore...
To conclude, i have commit the workaround for this NPE in this model. It still have the problem of scaling environment of different size (in fact, the grid topology did not work, for continuous topology can be manipulate in init, but the grid did not have that mechanism, once simulation is initialized).
Steps to reproduce
Launch the model: Library models / Toy Models / Comodels / Urbanization and Traffic Comodel
A NPE appears (even before the first step)
Expected behavior
No NPE
Actual behavior
The following NPE appears:
System and version
MACOSX, GAMA Git MArs & preRelease