Skip to content

Commit 5b60873

Browse files
add ordering policy
1 parent df9a7bd commit 5b60873

File tree

3 files changed

+206
-80
lines changed

3 files changed

+206
-80
lines changed

bioio/bio_image.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
import datetime
54
import logging
65
from pathlib import Path
76
from typing import Any, Dict, List, Optional, Sequence, Tuple, Type, Union, get_args
@@ -1262,11 +1261,16 @@ def save(
12621261
)
12631262

12641263
def __str__(self) -> str:
1264+
"""
1265+
Summary of this BioImage.
1266+
1267+
If a plugin was used to construct the reader, we report the plugin
1268+
entrypoint name. Otherwise, we only show whether the image is in memory.
1269+
"""
12651270
if self._plugin is not None:
12661271
return (
12671272
f"<BioImage ["
1268-
f"plugin: {self._plugin.entrypoint.name} installed "
1269-
f"at {datetime.datetime.fromtimestamp(self._plugin.timestamp)}, "
1273+
f"plugin: {self._plugin.entrypoint.name}, "
12701274
f"Image-is-in-Memory: {self._xarray_data is not None}"
12711275
f"]>"
12721276
)

0 commit comments

Comments
 (0)