Skip to content

Commit 64678ea

Browse files
committed
Merge open_object and open_objects methods to load_from_files
1 parent 5875909 commit 64678ea

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# DataLab Simple Client Releases #
22

3+
## Version 0.10.0 ##
4+
5+
DataLab Simple Client is fully compatible with **DataLab 0.15.0** and above.
6+
With older versions of the DataLab server, some features may not work.
7+
8+
💥 Changes:
9+
10+
* Remote API (`SimpleRemoteProxy`):
11+
* Merged `open_object` and `open_objects` methods to `load_from_files`
12+
313
## Version 0.9.1 ##
414

515
DataLab Simple Client is fully compatible with **DataLab 0.14.0** and above.

cdlclient/baseproxy.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ def import_h5_file(self, filename: str, reset_all: bool | None = None) -> None:
167167
"""
168168

169169
@abc.abstractmethod
170-
def open_object(self, filename: str) -> None:
171-
"""Open object from file in current panel (signal/image).
170+
def load_from_files(self, filenames: list[str]) -> None:
171+
"""Open objects from files in current panel (signals/images).
172172
173173
Args:
174-
filename (str): File name
174+
filenames: list of file names
175175
"""
176176

177177
@abc.abstractmethod
@@ -590,13 +590,13 @@ def import_h5_file(self, filename: str, reset_all: bool | None = None) -> None:
590590
"""
591591
self._cdl.import_h5_file(filename, reset_all)
592592

593-
def open_object(self, filename: str) -> None:
594-
"""Open object from file in current panel (signal/image).
593+
def load_from_files(self, filenames: list[str]) -> None:
594+
"""Open objects from files in current panel (signals/images).
595595
596596
Args:
597-
filename (str): File name
597+
filenames: list of file names
598598
"""
599-
self._cdl.open_object(filename)
599+
self._cdl.load_from_files(filenames)
600600

601601
def get_sel_object_uuids(self, include_groups: bool = False) -> list[str]:
602602
"""Return selected objects uuids.

0 commit comments

Comments
 (0)