Comments (2)
Same issues, I am getting the following error from running pytest
:
============================= test session starts ==============================
platform linux -- Python 3.9.18, pytest-7.4.3, pluggy-1.3.0 -- /home/nialov/projects/LinkingLines/.venv/bin/python3-with-c-tooling
cachedir: .pytest_cache
rootdir: /home/nialov/projects/LinkingLines
configfile: pyproject.toml
plugins: anyio-4.2.0
collecting ... collected 0 items / 3 errors
==================================== ERRORS ====================================
__________________ ERROR collecting tests/clustering_test.py ___________________
ImportError while importing test module '/home/nialov/projects/LinkingLines/tests/clustering_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../nix-extra/result/lib/python3.9/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/clustering_test.py:12: in <module>
from clusterMod import AggCluster
E ModuleNotFoundError: No module named 'clusterMod'
________________ ERROR collecting tests/postProcessing_test.py _________________
ImportError while importing test module '/home/nialov/projects/LinkingLines/tests/postProcessing_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../nix-extra/result/lib/python3.9/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/postProcessing_test.py:7: in <module>
from fitRectangle import rotateXYShift
E ModuleNotFoundError: No module named 'fitRectangle'
_________________ ERROR collecting tests/preprocessing_test.py _________________
ImportError while importing test module '/home/nialov/projects/LinkingLines/tests/preprocessing_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../nix-extra/result/lib/python3.9/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/preprocessing_test.py:10: in <module>
from htMOD import HoughTransform, CyclicAngleDist, rotateData, HT_center
E ModuleNotFoundError: No module named 'htMOD'
=========================== short test summary info ============================
ERROR tests/clustering_test.py
ERROR tests/postProcessing_test.py
ERROR tests/preprocessing_test.py
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 3 errors in 2.37s ===============================
Following error from running the notebook:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 20
17 sys.path.append("/home/akh/myprojects/Dikes_Linking_Project/dikedata/spanish peaks")
19 # Packages written for the paper
---> 20 from htMOD import HoughTransform
21 from clusterMod import AggCluster
22 from plotmod import DotsLines, plotScatterHist, pltRec, DotsHT
ModuleNotFoundError: No module named 'htMOD'
These issues make it difficult to verify the stated functionality of the package. Furthermore, the tests and notebook should use data that is either provided with the repository such as the already included data/SpanishPeaks_3857.csv
or data that is downloaded during test initialisation. The first options is better but not suitable for larger files and binary data. Currently, I see use of absolute paths in the notebook:
dikeset=pd.read_csv('/home/akh/myprojects/Dikes_Linking_Project/dikedata/spanish peaks/SpanishPeaks_3857.csv')
More robust use would be akin to the following:
dikeset=pd.read_csv('data/SpanishPeaks_3857.csv')
from linkinglines.
closed with #29
from linkinglines.
Related Issues (9)
- Clean up repo with a .gitignore HOT 3
- Documentation links don't work and examples are not formatted HOT 1
- More generic API HOT 1
- Document the version of LinkingLines sent for review with tag HOT 1
- Document development dependencies in pyproject.toml HOT 1
- Add example with data other than dykes (e.g. fracture trace data) HOT 1
- Issue with running `DemoLinkingLines.ipynb` HOT 1
- Add short explanation inside `DemoFractures.ipynb` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkinglines.