ArneBinder commited on
Commit
d41061f
·
verified ·
1 Parent(s): f31bdc3

add mssing get_node_id_from_filename

Browse files
Files changed (1) hide show
  1. dialam_2024.py +6 -0
dialam_2024.py CHANGED
@@ -143,6 +143,12 @@ def dictoflists_to_listofdicts(data):
143
  return [dict(zip(data, t)) for t in zip(*data.values())]
144
 
145
 
 
 
 
 
 
 
146
  class SimplifiedQT30(GeneratorBasedBuilder):
147
 
148
  BUILDER_CONFIGS = [
 
143
  return [dict(zip(data, t)) for t in zip(*data.values())]
144
 
145
 
146
+ def get_node_id_from_filename(filename: str) -> str:
147
+ """Get the ID of a nodeset from a filename."""
148
+
149
+ return filename.split("nodeset")[1].split(".json")[0]
150
+
151
+
152
  class SimplifiedQT30(GeneratorBasedBuilder):
153
 
154
  BUILDER_CONFIGS = [