mobiedantic 0.4.0__tar.gz → 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/PKG-INFO +1 -1
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/src/mobiedantic/__init__.py +5 -1
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/tests/test_api.py +1 -1
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/.gitattributes +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/.github/workflows/publish.yml +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/.github/workflows/test.yml +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/.gitignore +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/LICENSE.txt +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/README.md +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/environment.yml +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/luigi.cfg +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/pixi.lock +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/pyproject.toml +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/sandbox/Testing.ipynb +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/src/mobiedantic/generated.py +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/tests/__init__.py +0 -0
- {mobiedantic-0.4.0 → mobiedantic-0.4.1}/tests/test_schemas.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mobiedantic
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Project-URL: Documentation, https://github.com/fmi-faim/mobiedantic#readme
|
|
5
5
|
Project-URL: Issues, https://github.com/fmi-faim/mobiedantic/issues
|
|
6
6
|
Project-URL: Source, https://github.com/fmi-faim/mobiedantic
|
|
@@ -48,7 +48,7 @@ class Dataset:
|
|
|
48
48
|
raise ValueError(message)
|
|
49
49
|
with open(dataset_path) as dataset_file:
|
|
50
50
|
data = json.loads(dataset_file.read())
|
|
51
|
-
self.
|
|
51
|
+
self.set_model(DatasetSchema(**data))
|
|
52
52
|
|
|
53
53
|
def set_model(self, model: DatasetSchema):
|
|
54
54
|
self.model = model
|
|
@@ -167,6 +167,10 @@ class Dataset:
|
|
|
167
167
|
table_path = tables_folder / 'default.tsv'
|
|
168
168
|
with open(table_path, 'w') as table_file:
|
|
169
169
|
table_file.write(table)
|
|
170
|
+
# add table source to dataset
|
|
171
|
+
self.model.sources[name] = Source(
|
|
172
|
+
{'regions': {'tableData': {'tsv': {'relativePath': f'tables/{name}'}}}}
|
|
173
|
+
)
|
|
170
174
|
self.model.views[view_name].sourceDisplays.append(
|
|
171
175
|
RegionDisplay(
|
|
172
176
|
regionDisplay=RegionDisplay1(
|
|
@@ -66,7 +66,7 @@ def test_dataset(tmp_path):
|
|
|
66
66
|
'B01': ['B01_ch1', 'B01_ch2'],
|
|
67
67
|
},
|
|
68
68
|
)
|
|
69
|
-
assert len(dataset1.model.sources) ==
|
|
69
|
+
assert len(dataset1.model.sources) == 5
|
|
70
70
|
assert len(dataset1.model.views['default'].sourceDisplays) == 3
|
|
71
71
|
assert (
|
|
72
72
|
dataset1.model.views['default'].sourceDisplays[1].imageDisplay.name.root
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|