Skip to content

Instantly share code, notes, and snippets.

@hlg
hlg / ifc2cypher.py
Last active August 23, 2023 20:24 — forked from ysangkok/ifc2cypher.py
import re
import sys
import os.path
import ifcopenshell
import itertools
import json
def chunks2(iterable,size,filler=None):
it = itertools.chain(iterable,itertools.repeat(filler,size-1))
chunk = tuple(itertools.islice(it,size))