I installed the dependencies in example.py file with cuda and pip.
When i run example.py i get error:
Traceback (most recent call last):
File "C:\Users\mihab\Documents\GeometricNetworks\example.py", line 22, in
gn.construct_paths(points, links, has_parents)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mihab\Documents\GeometricNetworks\geometric_networks.py", line 229, in construct_paths
if points[current_idx].linked_to.paths == []:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: The truth value of an empty array is ambiguous. Use array.size > 0 to check that an array is not empty.
Thank you for the provided code.
Also there is no requirements.txt file or similar so this is my set up:
name: myenv
channels:
- anaconda
- esri
- conda-forge
- defaults
dependencies:
- _openmp_mutex=4.5=2_gnu
- blas=1.0=mkl
- brotli-python=1.0.9=py313h5da7b33_9
- bzip2=1.0.8=h2bbff1b_6
- ca-certificates=2025.7.15=haa95532_0
- cairo=1.18.4=h5782bbf_0
- click=8.2.1=py313haa95532_0
- colorama=0.4.6=py313haa95532_0
- contourpy=1.3.1=py313h214f63a_0
- cycler=0.11.0=pyhd3eb1b0_0
- double-conversion=3.3.1=h5da7b33_0
- expat=2.7.1=h8ddb27b_0
- font-ttf-dejavu-sans-mono=2.37=hd3eb1b0_0
- font-ttf-inconsolata=2.001=hcb22688_0
- font-ttf-source-code-pro=2.030=hd3eb1b0_0
- font-ttf-ubuntu=0.83=h8b1ccd4_0
- fontconfig=2.15.0=h765892d_1
- fonts-anaconda=1=h8fa9717_0
- fonts-conda-ecosystem=1=hd3eb1b0_0
- fonttools=4.55.3=py313h827c3e9_0
- freetype=2.13.3=h57928b3_1
- graphite2=1.3.14=hd77b12b_1
- harfbuzz=11.0.0=h9e37d49_0
- icc_rt=2022.1.0=h6049295_2
- icu=75.1=he0c23c2_0
- intel-openmp=2023.1.0=h59b6b97_46320
- kiwisolver=1.4.8=py313h5da7b33_0
- krb5=1.21.3=h885b0b7_4
- lazrs-python=0.6.2=py313_0
- lcms2=2.17=hbcf6048_0
- lerc=4.0.0=h5da7b33_0
- libclang13=20.1.8=default_hadf22e1_0
- libdeflate=1.22=h2466b09_0
- libexpat=2.7.1=hac47afa_0
- libffi=3.4.4=hd77b12b_1
- libfreetype=2.13.3=h57928b3_1
- libfreetype6=2.13.3=h0b5ce68_1
- libgcc=15.1.0=h1383e82_4
- libglib=2.84.0=h7025463_0
- libgomp=15.1.0=h1383e82_4
- libiconv=1.18=hc1393d2_2
- libintl=0.22.5=h5728263_3
- libjpeg-turbo=3.1.1=h02ab6af_0
- libkrb5=1.21.3=h885b0b7_4
- libmpdec=4.0.0=h827c3e9_0
- libpng=1.6.50=h7351971_1
- libsqlite=3.50.4=hf5d6505_0
- libtiff=4.7.0=hfc51747_1
- libwebp-base=1.6.0=h4d5522a_0
- libwinpthread=12.0.0.r4.gg4f2fc60ca=h57928b3_9
- libxcb=1.17.0=h0e4246c_0
- libxml2=2.13.8=h741aa76_1
- libxslt=1.1.41=h0739af5_0
- libzlib=1.3.1=h2466b09_2
- markdown-it-py=2.2.0=py313haa95532_1
- matplotlib=3.10.5=py313hfa70ccb_0
- matplotlib-base=3.10.5=py313he1ded55_0
- mdurl=0.1.0=py313haa95532_0
- mkl=2023.1.0=h6b88ed4_46358
- mkl-service=2.4.0=py313h827c3e9_2
- mkl_fft=1.3.11=py313h827c3e9_0
- mkl_random=1.2.8=py313hce38976_0
- numpy=2.3.1=py313ha127e54_0
- numpy-base=2.3.1=py313haaa8b43_0
- openjpeg=2.5.3=h24db6dd_1
- openssl=3.5.2=h725018a_0
- packaging=25.0=py313haa95532_0
- pcre2=10.44=h99c9b8b_2
- pillow=11.3.0=py313h641beac_0
- pip=25.1=pyhc872135_2
- pixman=0.46.4=h4043f72_0
- pthread-stubs=0.3=h3c9f919_1
- pygments=2.19.1=py313haa95532_0
- pyparsing=3.2.0=py313haa95532_0
- pyside6=6.9.0=py313hb43cee3_0
- python=3.13.0=hf5aa216_101_cp313
- python-dateutil=2.9.0post0=py313haa95532_2
- python_abi=3.13=0_cp313
- qhull=2020.2=h59b6b97_2
- qt6-main=6.9.0=h83cda92_0
- rich=13.9.4=py313haa95532_0
- scipy=1.16.0=py313h242c13b_0
- setuptools=72.1.0=py313haa95532_0
- shellingham=1.5.0=py313haa95532_0
- six=1.17.0=py313haa95532_0
- sqlite=3.50.2=hda9a48d_1
- tbb=2021.8.0=h59b6b97_0
- tk=8.6.13=h2c6b04d_2
- tornado=6.5.1=py313h827c3e9_0
- typer=0.9.0=py313haa95532_0
- typing-extensions=4.12.2=py313haa95532_0
- typing_extensions=4.12.2=py313haa95532_0
- tzdata=2025b=h04d1e81_0
- ucrt=10.0.22621.0=haa95532_0
- vc=14.3=h2df5915_10
- vc14_runtime=14.44.35208=h4927774_10
- vs2015_runtime=14.44.35208=ha6b5a95_10
- wheel=0.45.1=py313haa95532_0
- xorg-libxau=1.0.12=h0e40799_0
- xorg-libxdmcp=1.1.5=h0e40799_0
- xz=5.6.4=h4754444_1
- zlib=1.3.1=h2466b09_2
- zstd=1.5.7=hbeecb71_2
- pip:
- laspy==1.7.1
- pylas==0.4.3
I installed the dependencies in example.py file with cuda and pip.
When i run example.py i get error:
Thank you for the provided code.
Also there is no requirements.txt file or similar so this is my set up: