bucky.model.graph
¶
Class to read and store all the data from the bucky input graph.
Module Contents¶
Classes¶
Contains and preprocesses all the data imported from an input graph file. |
Functions¶
|
Read an attribute from every node into a cupy/numpy array and optionally clip and/or diff it. |
|
scatter_add() thats cached by joblib. |
Attributes¶
- class bucky.model.graph.buckyGraphData(G, spline_smooth=True, force_diag_Aij=False)[source]¶
Contains and preprocesses all the data imported from an input graph file.
- Nj(self)[source]¶
Total population per adm2.
Notes
\[N_j = \sum_i N_{ij}\]- Return type
numpy.ndarray
orcupy.ndarray
if using CuPy