Skip to content

1.4.0

Compare
Choose a tag to compare
@virgesmith virgesmith released this 26 Aug 18:49
· 4 commits to main since this release

Packaging changes

The package now contains the following optional dependencies/extras:

  • geospatial: geospatial graph functionality based on nextworkx, osmnx, geopandas etc
  • parallel: MPI
  • dev: for local package development

which can be installed like so, e.g.

pip install neworder[parallel]

Functional changes

  • neworder.geospatial.GeoSpatialGraph is now available - if the geospatial extra has been selected. (Previously the implementation was in an example)
  • Changes to the mpi submodule:
    • the functions rank() and size() are now attributes: RANK and SIZE.
    • there is a new COMM attribute, which is either an mpi4py.MPI.Intracomm instance or None depending on whether the parallel extra was installed.
  • In the time submodule, the following functions are now attributes:
    • never() becomes NEVER
    • distant_past() becomes DISTANT_PAST
    • far_future() becomes FAR_FUTURE.

Internal changes

  • Model.modify() no longer takes an integer argument. Access neworder.mpi.RANK from within the function.
  • seeder functions no longer take an integer argument. Access neworder.mpi.RANK from within a custom implementation function if necessary.
  • packaging and CI improvements