-
Notifications
You must be signed in to change notification settings - Fork 20
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
failed to load example assets/test_file.omf #75
Comments
Hi @rminhxm - this issue looks like it might be on the Where exactly did you download the What is your version of import omfvista, omf, properties
print('omfvista: ', omfvista.__version__)
print('omf: ', omf.__version__)
print('properties: ', properties.__version__) |
Hi @banesullivan , thanks for looking into this. Here with more info:
I followed the README guide and install all dependencies with pip. |
Thank you for sharing those details - I have reproduced this issue locally. This appears to be the result of a change that is present on the master branch of OMF (this repo) which I haven't corrected in |
To generalize this issue (adopted from the docs), the following example is failing when using the master branch of >>> import numpy as np
>>> import omf
>>>
>>> pts = omf.PointSetElement(
... name='Random Points',
... description='Just random points',
... geometry=omf.PointSetGeometry(
... vertices=np.random.rand(100, 3)
... ),
... data=[
... omf.ScalarData(
... name='rand data',
... array=np.random.rand(100),
... location='vertices'
... ),
... omf.ScalarData(
... name='More rand data',
... array=np.random.rand(100),
... location='vertices'
... )
... ],
... )
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
AttributeError: module 'omf' has no attribute 'PointSetGeometry' Immediate solution... revert to the stable version deployed on PyPI: |
Trying to run this example to load assets/test_file.omf but failed:
https://mybinder.org/v2/gh/OpenGeoVis/omfvista/master?filepath=Example.ipynb
Error messages:
The text was updated successfully, but these errors were encountered: