ifcfm - fix error running without pandas

This commit is contained in:
Andrej730
2025-08-29 23:32:11 +05:00
parent d91362a6f7
commit 43c35eaf24
+5 -1
View File
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcFM. If not, see <http://www.gnu.org/licenses/>. # along with IfcFM. If not, see <http://www.gnu.org/licenses/>.
from __future__ import annotations
import os import os
import re import re
import csv import csv
@@ -23,7 +24,7 @@ import importlib
import ifcopenshell.util.selector import ifcopenshell.util.selector
from pathlib import Path from pathlib import Path
from collections import defaultdict from collections import defaultdict
from typing import Literal, Union, Any, Callable from typing import Literal, Union, Any, Callable, TYPE_CHECKING
try: try:
from openpyxl import Workbook from openpyxl import Workbook
@@ -46,6 +47,9 @@ try:
except: except:
pass # No Pandas support pass # No Pandas support
if TYPE_CHECKING:
import pandas as pd
__version__ = version = "0.0.0" __version__ = version = "0.0.0"