Skip to content
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

AttributeError: module 'teqpflsh' has no attribute 'sample_random' #4

Open
Matthew-Boyd opened this issue Jan 10, 2025 · 4 comments
Open

Comments

@Matthew-Boyd
Copy link
Collaborator

Running make html results in:

Notebook error:
CellExecutionError in polygons/polygonvalidity.ipynb:

And now sampling works after forcing validity

N = 10000
x = np.zeros((N, ))
y = np.zeros((N, ))
teqpflsh.sample_random(simpl, 10000, x, y)
plt.plot(x, y, '.', ms=1);


AttributeError Traceback (most recent call last)
Cell In[5], line 5
3 x = np.zeros((N, ))
4 y = np.zeros((N, ))
----> 5 teqpflsh.sample_random(simpl, 10000, x, y)
6 plt.plot(x, y, '.', ms=1);

AttributeError: module 'teqpflsh' has no attribute 'sample_random'

You can ignore this error by setting the following in conf.py:

nbsphinx_allow_errors = True
@ianhbell
Copy link
Collaborator

The docs are ahead of the 0.0.3 release. I added that function just yesterday. Gimme one sec to fire the wheels for 0.0.4 and push to pypi. That is why I have the build teqpflsh and build the docs github action.

@ianhbell
Copy link
Collaborator

The deployment instructions for teqp are functionally identical to those of teqpflsh

@ianhbell
Copy link
Collaborator

@ianhbell
Copy link
Collaborator

ianhbell commented Jan 10, 2025

I updated the PYPI module to 0.0.4 include those updates. Should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants