mobiedantic 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl

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/__init__.py CHANGED
@@ -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.model = DatasetSchema(**data)
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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mobiedantic
3
- Version: 0.4.0
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
@@ -0,0 +1,6 @@
1
+ mobiedantic/__init__.py,sha256=ok0K4e0IinDNNJyGTp2W5wYMwvkqOuUtOU1gncQNhsw,7910
2
+ mobiedantic/generated.py,sha256=kVdqOvkxJhUgff2dm0LiIVmRvRrmlFJgOfzF8Na7sEA,42215
3
+ mobiedantic-0.4.1.dist-info/METADATA,sha256=YCIKVPRUNMFrcEoPcbNazD8cOLsvCBTGnapjZr7ejZo,1502
4
+ mobiedantic-0.4.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
5
+ mobiedantic-0.4.1.dist-info/licenses/LICENSE.txt,sha256=Y-HLxetc9ng1nbl4Vpgg7MlEckBFenmRo16hXHxn7tw,1538
6
+ mobiedantic-0.4.1.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- mobiedantic/__init__.py,sha256=997ozeSTFQ9YoKNpSgtJd0x6WCdOpFpy9rLsRzd0obw,7732
2
- mobiedantic/generated.py,sha256=kVdqOvkxJhUgff2dm0LiIVmRvRrmlFJgOfzF8Na7sEA,42215
3
- mobiedantic-0.4.0.dist-info/METADATA,sha256=bVCGJZGdP_2xTpSRI-VJ3Sx7ZW43x0Gj5gSGn89Tdfo,1502
4
- mobiedantic-0.4.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
5
- mobiedantic-0.4.0.dist-info/licenses/LICENSE.txt,sha256=Y-HLxetc9ng1nbl4Vpgg7MlEckBFenmRo16hXHxn7tw,1538
6
- mobiedantic-0.4.0.dist-info/RECORD,,