Skip to content

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

M-Jafarkhani
Copy link

@M-Jafarkhani M-Jafarkhani commented Nov 13, 2024

Screenshot 2024-11-13 at 19 24 59 Screenshot 2024-11-13 at 19 21 30

README.md Outdated
## Installing the package

### Using pip3 to install from PyPI

`` pip3 install jafarkmi_diffusion2d``
Copy link
Member

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.

Copy link
Author

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
Copy link
Member

@IshaanDesai IshaanDesai Dec 5, 2024

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.

Copy link
Author

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)`

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

Successfully merging this pull request may close these issues.

2 participants