Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add minor test for _round_sig #152

Closed
jGaboardi opened this issue Nov 21, 2018 · 1 comment
Closed

add minor test for _round_sig #152

jGaboardi opened this issue Nov 21, 2018 · 1 comment
Assignees

Comments

@jGaboardi
Copy link
Member

jGaboardi commented Nov 21, 2018

something like this to directly test to functionality of spaghetti.Network._round_sig

import spaghetti as spgh
from libpysal import examples

shp =  examples.get_path('eberly_net.shp')
ntw = spgh.Network(shp, extractgraph=False)

x, y = (1215, 1865)

ntw.node_sig = 2
print(ntw._round_sig((x, y)))
#(1200, 1900)

ntw.node_sig = None
print(ntw._round_sig((x, y)))
#(1215, 1865)
@jGaboardi jGaboardi self-assigned this Nov 21, 2018
@jGaboardi jGaboardi added this to To do - minor in v1.2 release Nov 22, 2018
@jGaboardi
Copy link
Member Author

Resolved in #156

@jGaboardi jGaboardi moved this from To do - minor to Done in v1.2 release Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v1.2 release
  
Done
Development

No branches or pull requests

1 participant