Petru Conduraru
913f9f2262
ifcopenshell.template: fix timestring ignoring an explicit timestamp of 0
...
create(timestamp=0) computed the FILE_NAME timestring with
`d.get("timestamp") or time.time()`, which treats 0 (a legitimate
epoch timestamp) as unset because 0 is falsy. The header ended up
with the current wall-clock time in FILE_NAME while IFCOWNERHISTORY
correctly stored CreationDate=0, an inconsistent pair of dates in
the same file. Switched to an explicit None check so an explicit
timestamp of 0 is honoured the same way any other explicit
timestamp is.
Generated with the assistance of an AI coding tool.
2026-08-01 10:49:17 +02:00
Thomas Krijnen
91ae631c7d
Merge remote-tracking branch 'origin/v0.8.0' into datamodel-v1.0
2026-04-18 20:15:28 +02:00
Thomas Krijnen
5c9213426f
Hacks and fixes to get python code back in reasonable state
2026-01-10 10:21:09 +01:00
Andrej730
13be6ccd45
Sort imports
2025-12-19 18:53:14 +05:00
Andrej730
6e15219fad
black .
2025-05-05 18:34:47 +05:00
Geert Hesselink
fe9c548ae0
Valid template header default ( #6610 )
...
* Valid template header default
* consistent version in tempalte file
* schema-dependent mvd
2025-05-05 13:56:40 +02:00
Andrej730
bdbe91f043
typing
2024-10-28 18:21:42 +05:00
Andrej730
267527f3fc
fix issue after removing ifcopenshell.main in d76462ca4
2024-05-07 21:26:48 +05:00
Dion Moult
89c4cbeb05
Drop support for Python 2.
2024-05-07 12:17:46 +10:00
Thomas Krijnen
c9a5abc3be
Some small fixes for rule compliance in template.py
2023-04-11 09:46:50 +02:00
Dion Moult
810c71dfa2
IfcOpenShell-python licensing and black. See #1082 .
2022-01-19 12:18:33 +11:00
Thomas Krijnen
fa46eb140f
Update template.py main.schema_identifier doesn't exist
2022-01-09 11:41:24 +01:00
htlcnn
286c77e3b0
black ifcopenshell-python
2020-11-02 08:28:02 +11:00
gpioto
98f4c8518e
Casting default timestamp template to integer
...
The documentation of IFC indicates that the timestamp must be of type Integer. (https://standards.buildingsmart.org/IFC/DEV/IFC4_2/FINAL/HTML/link/ifctimestamp.htm )
If not, it cause some problems importing the generated IFC file in some platforms
2019-08-28 09:01:13 +02:00
thorade
6cd59aa121
autopep8 aggressive
...
autopep8 --in-place --recursive --max-line-length=200 --aggressive --aggressive --aggressive ifcopenshell
2017-11-07 15:28:45 +01:00
thorade
8439e5b46d
autopep8
...
autopep8 --in-place --recursive --max-line-length=200 ifcopenshell
2017-11-07 15:28:45 +01:00
thorade
6bffee83fe
identical from __future__ import in ALL py files
2017-11-05 16:17:27 +01:00
Thomas Krijnen
effcecc75f
ifcopenshell.template.create()
2017-10-06 16:05:55 +02:00