setta 0.0.14.dev7__py3-none-any.whl → 0.0.14.dev9__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.

Potentially problematic release.


This version of setta might be problematic. Click here for more details.

setta/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.14.dev7"
1
+ __version__ = "0.0.14.dev9"
@@ -554,6 +554,7 @@ class ExporterForInMemoryFn:
554
554
  C.DRAW,
555
555
  C.CHAT,
556
556
  C.GLOBAL_VARIABLES,
557
+ C.TEXT_BLOCK,
557
558
  ],
558
559
  )
559
560
  for id in list(self.p["projectConfig"]["children"].keys()):
@@ -610,6 +611,10 @@ class ExporterForInMemoryFn:
610
611
  elif type == C.GLOBAL_VARIABLES:
611
612
  self.output.update(self.export_section_params(id, "", is_global=True))
612
613
  value_is_returned = False
614
+ elif type == C.TEXT_BLOCK:
615
+ variant = get_selected_section_variant(self.p, id)
616
+ value = {"text": variant["description"]}
617
+ self.create_var_mapping((id, "text"), f'{name}["text"]')
613
618
  else:
614
619
  raise ValueError
615
620
  return value, value_is_returned
@@ -232,11 +232,11 @@ def get_exporter_fn(config, section_id):
232
232
  return export_param_sweep_section
233
233
  elif stype == C.GLOBAL_PARAM_SWEEP:
234
234
  return export_global_param_sweep_section
235
- elif stype == C.DRAW:
236
- return export_canvas_rendered_value
237
- elif stype == C.IMAGE:
238
- return export_image_section
235
+ # elif stype == C.DRAW:
236
+ # return export_canvas_rendered_value
237
+ # elif stype == C.IMAGE:
238
+ # return export_image_section
239
239
  elif stype == C.SOCIAL:
240
240
  return export_social_section
241
- elif stype == C.CHART:
242
- return export_canvas_rendered_value
241
+ # elif stype == C.CHART:
242
+ # return export_canvas_rendered_value