1.4.0
Packaging changes
The package now contains the following optional dependencies/extras:
geospatial
: geospatial graph functionality based on nextworkx, osmnx, geopandas etcparallel
: MPIdev
: 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 thegeospatial
extra has been selected. (Previously the implementation was in an example)- Changes to the
mpi
submodule:- the functions
rank()
andsize()
are now attributes:RANK
andSIZE
. - there is a new
COMM
attribute, which is either anmpi4py.MPI.Intracomm
instance orNone
depending on whether theparallel
extra was installed.
- the functions
- In the
time
submodule, the following functions are now attributes:never()
becomesNEVER
distant_past()
becomesDISTANT_PAST
far_future()
becomesFAR_FUTURE
.
Internal changes
Model.modify()
no longer takes an integer argument. Accessneworder.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