setta 0.0.10.dev0__py3-none-any.whl → 0.0.11.dev0__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.
setta/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.10.dev0"
1
+ __version__ = "0.0.11.dev0"
@@ -1,13 +1,6 @@
1
- import json
2
1
  from collections import defaultdict
3
2
 
4
- from setta.utils.constants import BASE_UI_TYPE_IDS, C
5
- from setta.utils.utils import (
6
- recursive_dict_merge,
7
- replace_null_keys_with_none,
8
- save_json_to_file,
9
- try_json,
10
- )
3
+ from setta.utils.utils import replace_null_keys_with_none, save_json_to_file, try_json
11
4
 
12
5
 
13
6
  def save_json_source_data(p, variant_ids=None):
@@ -1,5 +1,4 @@
1
1
  import copy
2
- import glob
3
2
  import itertools
4
3
  import json
5
4
  import logging
@@ -9,7 +8,7 @@ from setta.database.db.artifacts.load import load_artifact_groups
9
8
  from setta.database.db.codeInfo.utils import new_code_info_col, with_code_info_defaults
10
9
  from setta.database.db.sections.jsonSource import build_ancestor_paths
11
10
  from setta.database.db.sections.utils import with_section_defaults
12
- from setta.database.db.sectionVariants.utils import new_ev_entry, new_section_variant
11
+ from setta.database.db.sectionVariants.utils import new_ev_entry
13
12
  from setta.database.utils import create_new_id
14
13
 
15
14
  from ..sectionVariants.load import load_section_variants
@@ -217,7 +216,10 @@ def load_json_sources_into_data_structures(
217
216
  )
218
217
  variant["jsonSourcMissing"] = isMissing
219
218
  if not isMissing:
220
- codeInfoCol = codeInfoCols.get(variant["codeInfoColId"], {"children": {}})
219
+ if not variant["codeInfoColId"]:
220
+ variant["codeInfoColId"] = create_new_id()
221
+ codeInfoCols[variant["codeInfoColId"]] = new_code_info_col()
222
+ codeInfoCol = codeInfoCols[variant["codeInfoColId"]]
221
223
  merge_into_existing(new_data, variant, codeInfo, codeInfoCol)
222
224
 
223
225
 
@@ -4,7 +4,8 @@
4
4
  "name": "",
5
5
  "previewImgColor": "bg-blue-500/60 dark:bg-blue-600/30",
6
6
  "viewport": null,
7
- "children": {}
7
+ "children": {},
8
+ "viewingEditingMode": "DEV"
8
9
  },
9
10
  "section": {
10
11
  "id": null,
@@ -28,6 +29,7 @@
28
29
  "hideSearch": false,
29
30
  "hideUnpinnedParams": false,
30
31
  "displayMode": "GUI",
32
+ "visibility": { "DEV": true, "USER": true },
31
33
  "pinnedAreaHeight": "auto",
32
34
  "isMinimized": false,
33
35
  "canvasSettings": {