Help
wzelazo edited this page Jul 13, 2018
·
12 revisions
Help
- First download newest pankus code at: https://github.com/mk45/pankus/archive/master.zip
- Find out where the file has been downloaded.
- Unpack files from
master.zip
. It should createpankus-master
folder - Go to python console (anywhere where You have access to python command) Ex. Start > Anaconda > Anaconda prompt
- Enter directory
cd pankus-master
- Type
python setup.py install
and hit 'ENTER'. That tellsPython
to runsetup.py
with additional parameterinstall
. This installs newest pankus to system - The newest
pankus
library is installed - Each time you want to update the installed library you have to repeat steps from 1 to 7.
- Go to python console (anywhere where You have access to python command) Ex. Start > Anaconda > Anaconda prompt
- Go to directory (by using
cd
command) where Your workspace is. - Type in
jupyter notebook
- This opens up the new window in the default browser
- You will see your workspace directory layout. You can browse further to the desired location. You can create directories as well.
- Create new notebook. Go to
New > Python3
- The browser will open a new tab with an Untitled notebook
- You should rename Notebook to easily find it and manage it. Click
Untitled1
name
You should prepare sd.geojson
and net.geojson
file.
- The
sd.geojson
file must contain point layer geometry with at leastsd_id
,src
andst
fields. - The
net.geojson
file must contain line layer geometry with at leastweight
field.
from taurus import Taurus
# this enables Taurus class; we can use Taurus class since now
T=Taurus()
# the newly created T object represents our workspace and data management
T.import_sd_geojson()