File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed
Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 3737 conda-remove-defaults : " true"
3838
3939
40- - name : Install dependencies for windows python 3.10
41- if : ${{ matrix.os == 'windows-latest' && matrix.python-version == '3.10' }}
42- run : |
43- conda run -n test conda info
44- conda run -n test conda install -c loop3d -c conda-forge "gdal=3.4.3" python=${{ matrix.python-version }} -y
45- conda run -n test conda install -c loop3d -c conda-forge --file dependencies.txt python=${{ matrix.python-version }} -y
46- conda run -n test conda install pytest python=${{ matrix.python-version }} -y
47-
48- - name : Install dependencies for other environments
49- if : ${{ matrix.os != 'windows-latest' || matrix.python-version != '3.10' }}
40+ - name : Install dependencies
5041 run : |
5142 conda run -n test conda info
52- conda run -n test conda install -c loop3d -c conda-forge gdal python=${{ matrix.python-version }} -y
5343 conda run -n test conda install -c loop3d -c conda-forge --file dependencies.txt python=${{ matrix.python-version }} -y
5444 conda run -n test conda install pytest python=${{ matrix.python-version }} -y
5545
Original file line number Diff line number Diff line change 1+ gdal>=3.6.2
12numpy
23scipy
34geopandas
4- shapely>=2
5+ shapely>=2.0.2
56networkx
67owslib
78loopprojectfile==0.2.2
Original file line number Diff line number Diff line change @@ -365,8 +365,7 @@ def compute(
365365 # calculate the length of the shortest line
366366 line_length = scipy .spatial .distance .euclidean (p1 , p2 )
367367 # find the indices of the points that are within 5% of the length of the shortest line
368- # indices = shapely.dwithin(short_line, interp_points, line_length * 0.25)
369- indices = numpy .array ([shapely .distance (short_line [0 ],point )<= (line_length * 0.25 ) for point in interp_points ])
368+ indices = shapely .dwithin (short_line , interp_points , line_length * 0.25 )
370369 # get the dip of the points that are within
371370 _dip = numpy .deg2rad (dip [indices ])
372371 _dips .append (_dip )
You can’t perform that action at this time.
0 commit comments