mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 12:12:15 +00:00
Sort imports
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import argparse
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
|
||||
import ifcopenshell
|
||||
from ifc4d.msp2ifc import MSP2Ifc
|
||||
from ifc4d.p6xer2ifc import P6XER2Ifc
|
||||
from ifc4d.p62ifc import P62Ifc
|
||||
from ifc4d.msp2ifc import MSP2Ifc
|
||||
from ifc4d.pp2ifc import PP2Ifc
|
||||
import ifcopenshell
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-f", "--file", action="store", type=str, required=True, help="schedule file name to be parsed")
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import date, datetime, timedelta
|
||||
from typing import Any, TypedDict, Union
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.control
|
||||
import ifcopenshell.api.resource
|
||||
import ifcopenshell.api.sequence
|
||||
import ifcopenshell.util.date
|
||||
from datetime import datetime, timedelta, date
|
||||
from typing import Union, Any, TypedDict
|
||||
from typing_extensions import NotRequired
|
||||
|
||||
|
||||
|
||||
@@ -17,23 +17,24 @@
|
||||
# along with IfcResources. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from __future__ import annotations
|
||||
import csv
|
||||
|
||||
import _csv
|
||||
import ifcopenshell.api.resource
|
||||
import isodate
|
||||
import csv
|
||||
import datetime
|
||||
from typing import Any, Literal, NamedTuple, Optional, Union, cast, get_args
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.cost
|
||||
import ifcopenshell.api.pset
|
||||
import ifcopenshell.api.resource
|
||||
import ifcopenshell.api.root
|
||||
import ifcopenshell.api.unit
|
||||
import ifcopenshell.util.date
|
||||
import ifcopenshell.util.element
|
||||
import ifcopenshell.util.resource
|
||||
import ifcopenshell.util.unit
|
||||
import datetime
|
||||
from typing import Any, Optional, Union, Literal, get_args, NamedTuple, cast
|
||||
|
||||
import isodate
|
||||
|
||||
SUPPORTED_COLUMN = Literal[
|
||||
"HIERARCHY",
|
||||
|
||||
@@ -18,13 +18,14 @@
|
||||
|
||||
|
||||
import csv
|
||||
import locale
|
||||
import re
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.root
|
||||
import ifcopenshell.api.sequence
|
||||
import ifcopenshell.util.date
|
||||
import locale
|
||||
import re
|
||||
|
||||
|
||||
class Csv2Ifc:
|
||||
|
||||
@@ -16,12 +16,13 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with Ifc4D. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import uuid
|
||||
import datetime
|
||||
import uuid
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.date
|
||||
import ifcopenshell.util.sequence
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
|
||||
class Ifc2Msp:
|
||||
|
||||
@@ -16,12 +16,14 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with Ifc4D. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import uuid
|
||||
import datetime
|
||||
import uuid
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.date
|
||||
import ifcopenshell.util.sequence
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
from .common import ScheduleIfcGenerator
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
# along with Ifc4D. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import datetime
|
||||
from datetime import timedelta, date
|
||||
import xml.etree.ElementTree as ET
|
||||
from datetime import date, timedelta
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.control
|
||||
@@ -25,7 +27,6 @@ import ifcopenshell.api.pset
|
||||
import ifcopenshell.api.root
|
||||
import ifcopenshell.api.sequence
|
||||
import ifcopenshell.util.date
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
|
||||
class MSP2Ifc:
|
||||
|
||||
@@ -16,12 +16,14 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with Ifc4D. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import math
|
||||
import datetime
|
||||
import math
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.util.date
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
from .common import ScheduleIfcGenerator
|
||||
|
||||
|
||||
|
||||
@@ -16,11 +16,13 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with Ifc4D. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from xerparser.reader import Reader
|
||||
from datetime import date, datetime, timedelta
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.util.date
|
||||
from datetime import datetime, timedelta, date
|
||||
from xerparser.reader import Reader
|
||||
|
||||
from .common import ScheduleIfcGenerator
|
||||
|
||||
|
||||
|
||||
@@ -5,16 +5,17 @@ import sys
|
||||
print("In module products sys.path[0], __package__ ==", sys.path[0], __package__)
|
||||
sys.path.append(sys.path[0])
|
||||
|
||||
import sqlite3
|
||||
import datetime
|
||||
from datetime import timedelta
|
||||
import ifcopenshell.util.date
|
||||
from .wpattern import AstaCalendarWorkPattern
|
||||
from .common import ScheduleIfcGenerator, Calendar, WBSEntry, Activity
|
||||
import sqlite3
|
||||
import time
|
||||
from collections import defaultdict
|
||||
from datetime import timedelta
|
||||
from typing import Any
|
||||
|
||||
import ifcopenshell.util.date
|
||||
|
||||
from .common import Activity, Calendar, ScheduleIfcGenerator, WBSEntry
|
||||
from .wpattern import AstaCalendarWorkPattern
|
||||
|
||||
list_of_tables = [
|
||||
"BAR",
|
||||
|
||||
@@ -7,8 +7,9 @@ for each day as a key there is a list of working times with the format
|
||||
"""
|
||||
|
||||
import re
|
||||
from datetime import time, datetime
|
||||
from datetime import datetime, time
|
||||
from typing import Any
|
||||
|
||||
from ifc4d.common import WorkSlot
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user