Skip to content

Commit

Permalink
Merge pull request #55 from Serapieum-of-alex/hpc-version
Browse files Browse the repository at this point in the history
Hpc version
  • Loading branch information
MAfarrag authored Apr 23, 2023
2 parents 300e04f + 61f0f80 commit cc0e4ab
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,7 @@ dmypy.json
.pyre/
.idea/cleopatra.iml
.idea/*
*.avi
*.gif
*.mov
*.mp4
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ History
0.3.1 (2023-04-17)
------------------
* plot RGB plots

0.3.2 (2023-04-23)
------------------
* bump up hpc version
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pip install git+https://github.com/MAfarrag/cleopatra
## pip
to install the last release you can easly use pip
```
pip install cleopatra==0.3.1
pip install cleopatra==0.3.2
```

Quick start
Expand Down
2 changes: 1 addition & 1 deletion cleopatra/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import numpy as np
from hpc.filter import get_indices2
from hpc.indexing import get_indices2

# from matplotlib import gridspec
from matplotlib.animation import FuncAnimation
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
dependencies:
- python >=3.9,<3.11
- numpy >=1.24.1
- hpc >=0.1.0
- hpc >=0.1.1
- pip >=22.3.1
- matplotlib >=3.6.2
- ffmpeg-python
Expand Down
8 changes: 7 additions & 1 deletion examples/array_plot_examples.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import matplotlib

matplotlib.use("TkAgg")
# import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
import numpy as np
from cleopatra.array import Array

# from matplotlib.transforms import blended_transform_factory
#%%
arr = np.load("tests/data/s2a.npy")
arr = np.moveaxis(arr, 0, -1)
arr2 = arr[:, :, [3, 2, 1]]
rgb = np.clip(arr2 / 10000, 0, 1)
plt.imshow(rgb)
#%%
arr = np.load("tests/data/arr.npy")
exclude_value = arr[0, 0]
cmap = "terrain"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ffmpeg-python
hpc-utils >=0.1.0
hpc-utils >=0.1.1
matplotlib >=3.6.2
numpy >=1.24.1
pip >=22.3.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="cleopatra",
version="0.3.1",
version="0.3.2",
description="visualization package",
author="Mostafa Farrag",
author_email="[email protected]",
Expand Down

0 comments on commit cc0e4ab

Please sign in to comment.