Skip to content

Commit a49f149

Browse files
committed
version: release v1.0.0
1 parent cc653b0 commit a49f149

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

CellTracker/stardistwrapper.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def load_stardist_model(model_name: str = "stardist", basedir: str = STARDIST_MO
4242
return model
4343

4444

45+
def imread_pillow(image_paths):
46+
images = [np.asarray(Image.open(path)) for path in image_paths]
47+
return np.stack(images, axis=0)
48+
49+
4550
def load_2d_slices_at_time(images_path: str | dict, t: int, do_normalize: bool = True):
4651
"""Load all 2D slices at time t and normalize the resulted 3D image"""
4752
if isinstance(images_path, str):
@@ -50,7 +55,7 @@ def load_2d_slices_at_time(images_path: str | dict, t: int, do_normalize: bool =
5055
slice_paths_at_t = sorted(glob(images_path % t))
5156
if len(slice_paths_at_t) == 0:
5257
raise FileNotFoundError(f"No image at time {t} was found")
53-
x = imread(slice_paths_at_t)
58+
x = imread_pillow(slice_paths_at_t)
5459
elif isinstance(images_path, dict):
5560
file_extension = os.path.splitext(images_path["h5_file"])[1]
5661
assert file_extension in [".h5", ".hdf5"], "Currently only TIFF sequences or HDF5 dataset are supported"

LOG.MD

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### 2024.02.27
2+
3DeeCellTracker v1.0.0 has been released
3+
4+
### 2023.04.24
5+
3DeeCellTracker v0.5.2-alpha has been released
6+
- fixed a potential bug related to matplotlib
7+
18
### 2023.04.24
29
3DeeCellTracker v0.5.1-alpha was released with following issues fixed
310
- updated versions of some packages in the requirements.txt and setup.cfg

README.md

+3-13
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,8 @@
55
**3DeeCellTracker** is a deep-learning based pipeline for tracking cells in 3D time-lapse images of deforming/moving organs ([eLife, 2021](https://elifesciences.org/articles/59187)).
66

77
## Updates:
8-
**3DeeCellTracker v0.5.2-alpha has been released**
9-
- fixed a potential bug related to matplotlib
10-
11-
**3DeeCellTracker v0.5.1-alpha has been released**
12-
- Updated versions of some packages in requirements.txt and setup.cfg
13-
14-
**3DeeCellTracker v0.5.0-alpha has been released**
15-
- Allows you to use [StarDist3D](https://github.com/stardist/stardist) for segmentation
16-
- Reduces the requirements for fine-tuning parameters
17-
- Decouples the code to facilitate reuse by third-party developers.
18-
19-
8+
**3DeeCellTracker v1.0.0 has been released**
9+
- Fixed some bugs in v0.5
2010

2111
## Installation
2212

@@ -44,7 +34,7 @@ To install 3DeeCellTracker, please follow the instructions below:
4434
3. Install the 3DeeCellTracker package by running the following command in your terminal:
4535

4636
```console
47-
$ pip install 3DeeCellTracker==0.5.2a0
37+
$ pip install 3DeeCellTracker==1.0.0
4838
```
4939
4. Once the installation is complete, you can start using 3DeeCellTracker for your 3D cell tracking tasks within the Jupyter notebooks provided in the GitHub repository.
5040

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ install_requires =
1818
stardist==0.8.3
1919
scikit-learn==1.1.2
2020
notebook==6.0.0
21+
numpy~=1.19.5
2122

2223
python_requires = >=3.6

0 commit comments

Comments
 (0)