Sort imports

This commit is contained in:
Andrej730
2025-12-19 18:53:04 +05:00
parent 29176330e8
commit 13be6ccd45
731 changed files with 2234 additions and 1709 deletions
+8 -6
View File
@@ -17,15 +17,17 @@
# along with IfcFM. If not, see <http://www.gnu.org/licenses/>.
from __future__ import annotations
import os
import re
import csv
import importlib
import ifcopenshell.util.selector
from pathlib import Path
import os
import re
from collections import defaultdict
from typing import Literal, Union, Any, TYPE_CHECKING
from collections.abc import Callable
from pathlib import Path
from typing import TYPE_CHECKING, Any, Literal, Union
import ifcopenshell.util.selector
try:
from openpyxl import Workbook
@@ -37,7 +39,7 @@ try:
import odf.namespaces as odf_ns
from odf.opendocument import OpenDocumentSpreadsheet
from odf.style import Style, TableCellProperties, TableProperties
from odf.table import Table, TableRow, TableCell
from odf.table import Table, TableCell, TableRow
from odf.text import P
except:
pass # No ODF support
+3 -1
View File
@@ -16,10 +16,12 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcFM. If not, see <http://www.gnu.org/licenses/>.
import ifcfm
import argparse
import ifcopenshell
import ifcfm
parser = argparse.ArgumentParser(description="Extracts FM data from IFC to spreadsheets")
parser.add_argument(
"-p",
+2 -1
View File
@@ -16,6 +16,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcFM. If not, see <http://www.gnu.org/licenses/>.
from typing import Any, Optional, Union
import ifcopenshell
import ifcopenshell.util.classification
import ifcopenshell.util.date
@@ -23,7 +25,6 @@ import ifcopenshell.util.element
import ifcopenshell.util.fm
import ifcopenshell.util.placement
import ifcopenshell.util.system
from typing import Any, Union, Optional
def get_facilities(ifc_file: ifcopenshell.file) -> list[ifcopenshell.entity_instance]:
+3 -3
View File
@@ -16,6 +16,9 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcFM. If not, see <http://www.gnu.org/licenses/>.
from collections.abc import Generator
from typing import Any, Optional, Union
import ifcopenshell
import ifcopenshell.geom
import ifcopenshell.util.classification
@@ -26,9 +29,6 @@ import ifcopenshell.util.placement
import ifcopenshell.util.shape
import ifcopenshell.util.system
from ifcopenshell.util.shape_builder import np_matrix_to_euler
from typing import Any, Union, Optional
from collections.abc import Generator
# The original BIMServer plugin has a function called ifcToCOBie:
# https://github.com/opensourceBIM/COBie-plugins/blob/master/COBieShared/src/org/bimserver/cobie/shared/serialization/COBieTabSerializer.java#L54
+2 -2
View File
@@ -16,6 +16,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcFM. If not, see <http://www.gnu.org/licenses/>.
from typing import Any, Optional, Union
import ifcopenshell
import ifcopenshell.guid
import ifcopenshell.util.classification
@@ -24,8 +26,6 @@ import ifcopenshell.util.element
import ifcopenshell.util.fm
import ifcopenshell.util.placement
import ifcopenshell.util.system
from typing import Any, Union, Optional
# The original BIMServer plugin has a function called ifcToCOBie:
# https://github.com/opensourceBIM/COBie-plugins/blob/master/COBieShared/src/org/bimserver/cobie/shared/serialization/COBieTabSerializer.java#L54