-
Notifications
You must be signed in to change notification settings - Fork 26
Packaged code for PyPI by [jafarkmi] #4
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
base: main
Are you sure you want to change the base?
Packaged code for PyPI by [jafarkmi] #4
Conversation
README.md
Outdated
## Installing the package | ||
|
||
### Using pip3 to install from PyPI | ||
|
||
`` pip3 install jafarkmi_diffusion2d`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this really work? Remember that you deployed your package to TestPyPI and not PyPI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right Ishaan, it should be
pip install -i https://test.pypi.org/simple/ jafarkmi-diffusion2d==0.0.7
## Running this package | ||
|
||
```python | ||
from jafarkmi_diffusion2d import solve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command did not work for me:
>>> from jafarkmi_diffusion2d import solve
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'solve' from 'jafarkmi_diffusion2d' (/usr/local/lib/python3.8/dist-packages/jafarkmi_diffusion2d/__init__.py)
instead, from jafarkmi_diffusion2d.diffusion2d import solve
worked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right, it should be either :
`from jafarkmi_diffusion2d import diffusion2d
diffusion2d.solve(dx,dy,D)`
or
`from jafarkmi_diffusion2d. diffusion2d import solve
solve(dx,dy,D)`
Uh oh!
There was an error while loading. Please reload this page.