Skip to content

Commit

Permalink
Merge pull request #162 from siapy/fix
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
janezlapajne authored Oct 1, 2024
2 parents 564f193 + 368fdeb commit 21427ed
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ cd siapy
make install
```

### Verify Installation

To verify that siapy has been installed correctly, you can run:

```bash
python -c "import siapy; print(siapy.__version__)"
```

## Troubleshooting

If you encounter any issues during installation, consider the following solutions:
Expand Down
3 changes: 3 additions & 0 deletions siapy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .__version__ import __version__

__all__ = ["__version__"]
6 changes: 6 additions & 0 deletions siapy/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from importlib import metadata

try:
__version__ = metadata.version("siapy")
except metadata.PackageNotFoundError:
__version__ = "0.0.0"
5 changes: 3 additions & 2 deletions siapy/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import numpy as np
import pandas as pd
import spectral as sp
from numpy.typing import ArrayLike
from PIL.Image import Image

from siapy.entities import SpectralImage, SpectralImageSet
Expand Down Expand Up @@ -34,5 +35,5 @@
| np.uint64
)
ImageContainerType = SpectralImage | SpectralImageSet
ArrayLike1dType = np.ndarray | pd.Series | Sequence[Any]
ArrayLike2dType = np.ndarray | pd.DataFrame | Sequence[Any]
ArrayLike1dType = np.ndarray | pd.Series | Sequence[Any] | ArrayLike
ArrayLike2dType = np.ndarray | pd.DataFrame | Sequence[Any] | ArrayLike

0 comments on commit 21427ed

Please sign in to comment.