You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webknossos/webknossos/dataset/__init__.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,15 @@
3
3
4
4
The high-level dataset API automatically reads and writes meta information for any dataset and updates them if necessary, such as the `datasource-properties.json`.
5
5
6
-
A dataset (`wkcuber.api.dataset.Dataset`) is the entry-point for this API.
6
+
A dataset (`webknossos.dataset.dataset.Dataset`) is the entry-point for this API.
7
7
The dataset stores the data on disk in `.wkw`-files (see [webknossos-wrap (wkw)](https://github.com/scalableminds/webknossos-wrap)).
8
8
9
-
Each dataset consists of one or more layers (wkcuber.api.layer.Layer), which themselves can comprise multiple magnifications (wkcuber.api.mag_view.MagView).
9
+
Each dataset consists of one or more layers (webknossos.dataset.layer.Layer), which themselves can comprise multiple magnifications (webknossos.dataset.mag_view.MagView).
10
10
11
11
## Examples
12
12
### Opening Datasets
13
13
```python
14
-
from wkcuber.api import Dataset
14
+
from webknossos.dataset import Dataset
15
15
16
16
dataset = Dataset(<path_to_dataset>)
17
17
# Assuming that the dataset has a layer called 'color' and the layer has the magnification "1"
Copy file name to clipboardExpand all lines: webknossos/webknossos/dataset/mag_view.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -44,14 +44,14 @@ def _convert_mag1_offset(
44
44
45
45
classMagView(View):
46
46
"""
47
-
A `MagView` contains all information about the data of a single magnification of a `wkcuber.api.layer.Layer`.
48
-
`MagView` inherits from `wkcuber.api.view.View`.
47
+
A `MagView` contains all information about the data of a single magnification of a `webknossos.dataset.layer.Layer`.
48
+
`MagView` inherits from `webknossos.dataset.view.View`.
49
49
Therefore, the main difference between them is that a `MagView` handles the whole magnification,
50
50
whereas the `View` only handles a sub-region.
51
51
52
52
A `MagView` can read/write outside the specified bounding box (unlike a normal `View`).
53
53
If necessary, the properties are automatically updated (e.g. if the bounding box changed).
54
-
This is possible because a `MagView` does have a reference to the `wkcuber.api.layer.Layer`.
54
+
This is possible because a `MagView` does have a reference to the `webknossos.dataset.layer.Layer`.
55
55
56
56
The `global_offset` of a `MagView` is always `(0, 0, 0)` and its `size` is chosen so that the bounding box from the properties is fully inside this View.
57
57
"""
@@ -66,7 +66,7 @@ def __init__(
66
66
create: bool=False,
67
67
) ->None:
68
68
"""
69
-
Do not use this constructor manually. Instead use `wkcuber.api.layer.Layer.add_mag()` to create a `MagView`.
69
+
Do not use this constructor manually. Instead use `webknossos.dataset.layer.Layer.add_mag()` to create a `MagView`.
0 commit comments