setta 0.0.4.dev1__py3-none-any.whl → 0.0.5.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.4.dev1"
1
+ __version__ = "0.0.5.dev0"
@@ -266,18 +266,19 @@ class Exporter:
266
266
  "section": section_details,
267
267
  "sectionVariant": section_variant,
268
268
  }
269
+ self.types_to_process = [
270
+ C.SECTION,
271
+ C.LIST_ROOT,
272
+ C.DICT_ROOT,
273
+ C.GROUP,
274
+ C.CODE,
275
+ C.GLOBAL_VARIABLES,
276
+ ]
269
277
 
270
278
  def export(self):
271
279
  remove_unneeded_sections(
272
280
  self.p,
273
- [
274
- C.SECTION,
275
- C.LIST_ROOT,
276
- C.DICT_ROOT,
277
- C.GROUP,
278
- C.CODE,
279
- C.GLOBAL_VARIABLES,
280
- ],
281
+ self.types_to_process,
281
282
  )
282
283
  self.export_sections(list(self.p["projectConfig"]["children"].keys()))
283
284
 
@@ -333,10 +334,12 @@ class Exporter:
333
334
  children = [
334
335
  c
335
336
  for c in children
336
- if get_section_type(self.p, c)
337
- in [C.SECTION, C.LIST_ROOT, C.DICT_ROOT, C.GROUP]
337
+ if get_section_type(self.p, c) in self.types_to_process
338
+ ]
339
+ # some sections (like CODE) don't get added to self.output
340
+ info["value"] = [
341
+ x for x in self.export_sections(children) if x in self.output
338
342
  ]
339
- info["value"] = self.export_sections(children)
340
343
  info["dependencies"] = info["value"]
341
344
  info[
342
345
  "ref_var_name_positions"
@@ -58,7 +58,7 @@
58
58
  "gridPattern": "Dots",
59
59
  "gridPatternSize": 2,
60
60
  "gridColor": "#afbacf",
61
- "gridColorDarkMode": "#222a3a",
61
+ "gridColorDarkMode": "#2b364a",
62
62
  "defaultZoomLevel": 1,
63
63
  "minZoom": 0.1,
64
64
  "maxZoom": 10,