mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 03:19:53 +00:00
Sort imports
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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]:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user