Skip to content

v1_2_6: features + fixes

Compare
Choose a tag to compare
@9and3 9and3 released this 21 Aug 21:18
· 46 commits to main since this release

New features

  • now nested lists are automatically parsed into trees with corrected branches. Additionally if the user return a tree it will be detected and kept intact as a return value
    The following code will work both ways:
      # option 1
      py_nlist = [
          [[1, 2], [3, 4]],
          [[5, 6], [7, 8]]
      ]
      # options 2
      import ghpythonlib.treehelpers as th
      gh_tree = th.list_to_tree(py_nlist)
      
      o_as_nlist = py_nlist
      o_as_tree = gh_tree

listtreeauto

  • an automatic button has been added when component is added because life is already hard enough 🍯

autobutton

Fixes

  • #6
  • #20
  • The component is not throwing an error by default when the component is not dropped on the canvas. It is now raising an "info" Gh message by default inviting to choose a file.
  • file name reappear as message on the component if the .gh file is closed and re-opened
  • minor cleaning