-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into issue/shpath_168
- Loading branch information
Showing
21 changed files
with
497 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ name: Build-wheels | |
# the GitHub website. Wheels should be uploaded manually to PyPI -- see CONTRIBUTING.md. | ||
|
||
# The Linux wheels cannot be generated using `ubuntu-latest` because they require a | ||
# special Docker image to ensure cross-Linux compatibility. There are at least a couple | ||
# special Docker image to provide cross-Linux compatibility. There are at least a couple | ||
# of third-party actions set up using the official image; we could switch to another if | ||
# this ever breaks. | ||
|
||
|
@@ -25,10 +25,9 @@ jobs: | |
# with: | ||
# ref: 'v0.6' # enable to check out prior version of codebase | ||
- name: Build wheels | ||
uses: RalfG/[email protected].3 | ||
uses: RalfG/[email protected].4 | ||
with: | ||
python-versions: 'cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39' | ||
build-requirements: 'cython numpy' | ||
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39' | ||
- name: Save artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -55,10 +54,10 @@ jobs: | |
- name: Set up environment | ||
run: | | ||
conda config --append channels conda-forge | ||
conda install cython numpy clang llvm-openmp | ||
conda install build clang llvm-openmp | ||
- name: Build wheel | ||
run: | | ||
python setup.py bdist_wheel | ||
python -m build --sdist --wheel | ||
- name: Save artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import sys | ||
import time | ||
|
||
import pandana | ||
|
||
import numpy as np | ||
import pandas as pd | ||
from pympler.asizeof import asizeof | ||
|
||
print() | ||
print("Loading data...") | ||
t0 = time.time() | ||
store = pd.HDFStore('examples/data/bayareanetwork.h5', 'r') | ||
nodes, edges = store.nodes, store.edges | ||
print(round(time.time()-t0, 1), ' sec.') | ||
|
||
print() | ||
print("Initializing network...") | ||
t0 = time.time() | ||
net = pandana.Network(nodes.x, nodes.y, edges.from_int, edges.to_int, edges[['weight']]) | ||
store.close() | ||
print(round(time.time()-t0, 1), ' sec.') | ||
|
||
print() | ||
print("Calculating nodes in 100m range...") | ||
t0 = time.time() | ||
r = net.nodes_in_range([53114882, 53107159], 100.0) | ||
print(round(time.time()-t0, 1), ' sec.') | ||
|
||
# print(net.node_idx.values) | ||
# print(net.node_idx.index.values) | ||
|
||
print(asizeof(r)) # 88.8 million bytes raw | ||
|
||
print() | ||
|
||
# dataframe.info() | ||
# dataframe.memory_usage(deep=True) | ||
# .set_index(['1','2'], inplace=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .network import Network | ||
|
||
version = __version__ = '0.6.1' | ||
version = __version__ = '0.7.dev0' |
Oops, something went wrong.