Skip to content
Snippets Groups Projects
  1. Aug 30, 2022
  2. Aug 29, 2022
  3. May 16, 2022
  4. May 15, 2022
  5. May 14, 2022
  6. May 12, 2022
  7. May 11, 2022
  8. May 06, 2022
  9. Apr 05, 2022
  10. Jan 16, 2022
  11. Jan 10, 2022
  12. Jan 09, 2022
  13. Jan 07, 2022
  14. Jan 06, 2022
  15. Jan 04, 2022
    • Wuttke, Joachim's avatar
      Convert from dynamic (nodeMeta) to hard-coded (parDefs) parameter info · e372e1ef
      Wuttke, Joachim authored
      def user_edit_pair(fname_stem, th, tc):
      
          for i in range(10):
              ex = r'(\w+?)::\1(\([^\(\)]*?\)\s*?:\s*?)(I\w+)\(\s*?{"[^"]*?",\s*?("[^"]*?"),\s*?(({{.*?}}|{}))},\s*?(P|{})\)'
              m = re.search(ex, tc, flags=re.S)
              if m:
                  cname = m.group(1)
                  tooltip = m.group(4)
                  arr = m.group(5)
      
                  print(f"In source pair {fname_stem} amend class {cname}")
      
                  tc = re.sub(ex, r'\1::\1\2\3(\7)', tc, count=1, flags=re.S)
      
                  th = re.sub(r'(class ' + cname + r'.*?std::string className.*?"; }\n)',
                              r'\1'
                              +r'    // const auto tooltip = ' + tooltip + r';\n'
                              +r'    std::vector<ParaMeta> parDefs() const final { return'
                              +r'    ' + arr + '; }\n',
                              th,
                              flags=re.S)
      
          th = re.sub(r'\(const NodeMeta& meta,\s+((const )?std::vector<double>&? PValues)\)',
                     r'(\1)', th, flags=re.S)
          tc = re.sub(r'\(const NodeMeta& meta,\s+((const )?std::vector<double>&? PValues)\)',
                     r'(\1)', tc, flags=re.S)
          tc = re.sub(r'\(meta, (PValues)\)',
                     r'(\1)', tc)
      
          return th, tc
      
      et.ed_argfilepairs(user_edit_pair)
      e372e1ef
    • Wuttke, Joachim's avatar
      IBornFF use parDefs · 56c1e52d
      Wuttke, Joachim authored
      56c1e52d
  16. Dec 22, 2021
  17. Dec 19, 2021
  18. Dec 17, 2021
  19. Dec 16, 2021
Loading