honeybee-energy 1.116.67__py3-none-any.whl → 1.116.69__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of honeybee-energy might be problematic. Click here for more details.
- honeybee_energy/cli/translate.py +63 -11
- {honeybee_energy-1.116.67.dist-info → honeybee_energy-1.116.69.dist-info}/METADATA +2 -2
- {honeybee_energy-1.116.67.dist-info → honeybee_energy-1.116.69.dist-info}/RECORD +7 -7
- {honeybee_energy-1.116.67.dist-info → honeybee_energy-1.116.69.dist-info}/WHEEL +0 -0
- {honeybee_energy-1.116.67.dist-info → honeybee_energy-1.116.69.dist-info}/entry_points.txt +0 -0
- {honeybee_energy-1.116.67.dist-info → honeybee_energy-1.116.69.dist-info}/licenses/LICENSE +0 -0
- {honeybee_energy-1.116.67.dist-info → honeybee_energy-1.116.69.dist-info}/top_level.txt +0 -0
honeybee_energy/cli/translate.py
CHANGED
|
@@ -550,12 +550,24 @@ def model_to_idf(
|
|
|
550
550
|
'used for all ground-contact floor faces. If unspecified, the ground '
|
|
551
551
|
'types will be left as they are. Choose from: UndergroundSlab, '
|
|
552
552
|
'SlabOnGrade, RaisedFloor.', type=str, default='', show_default=True)
|
|
553
|
+
@click.option('--program-name', '-p', help='Optional text to set the name of the '
|
|
554
|
+
'software that will appear under the programId and ProductName tags '
|
|
555
|
+
'of the DocumentHistory section. This can be set things like "Ladybug '
|
|
556
|
+
'Tools" or "Pollination" or some other software in which this gbXML '
|
|
557
|
+
'export capability is being run. If None, "OpenStudio" will be used.',
|
|
558
|
+
type=str, default=None, show_default=True)
|
|
559
|
+
@click.option('--program-version', '-v', help='Optional text to set the version of '
|
|
560
|
+
'the software that will appear under the DocumentHistory section. '
|
|
561
|
+
'If None, and the program_name is also unspecified, only the version '
|
|
562
|
+
'of OpenStudio will appear. Otherwise, this will default to "0.0.0" '
|
|
563
|
+
'given that the version field is required.',
|
|
564
|
+
type=str, default=None, show_default=True)
|
|
553
565
|
@click.option('--output-file', '-f', help='Optional gbXML file to output the string '
|
|
554
566
|
'of the translation. By default it printed out to stdout',
|
|
555
567
|
type=click.File('w'), default='-', show_default=True)
|
|
556
568
|
def model_to_gbxml_cli(
|
|
557
569
|
model_file, osw_folder, default_subfaces, triangulate_non_planar, minimal,
|
|
558
|
-
interior_face_type, ground_face_type, output_file):
|
|
570
|
+
interior_face_type, ground_face_type, program_name, program_version, output_file):
|
|
559
571
|
"""Translate a Honeybee Model (HBJSON) to a gbXML file.
|
|
560
572
|
|
|
561
573
|
\b
|
|
@@ -568,7 +580,8 @@ def model_to_gbxml_cli(
|
|
|
568
580
|
full_geometry = not minimal
|
|
569
581
|
model_to_gbxml(
|
|
570
582
|
model_file, osw_folder, triangulate_subfaces, permit_non_planar,
|
|
571
|
-
full_geometry, interior_face_type, ground_face_type,
|
|
583
|
+
full_geometry, interior_face_type, ground_face_type,
|
|
584
|
+
program_name, program_version, output_file)
|
|
572
585
|
except Exception as e:
|
|
573
586
|
_logger.exception('Model translation failed.\n{}'.format(e))
|
|
574
587
|
sys.exit(1)
|
|
@@ -579,7 +592,8 @@ def model_to_gbxml_cli(
|
|
|
579
592
|
def model_to_gbxml(
|
|
580
593
|
model_file, osw_folder=None, triangulate_subfaces=False,
|
|
581
594
|
permit_non_planar=False, full_geometry=False,
|
|
582
|
-
interior_face_type='', ground_face_type='',
|
|
595
|
+
interior_face_type='', ground_face_type='',
|
|
596
|
+
program_name=None, program_version=None, output_file=None,
|
|
583
597
|
default_subfaces=True, triangulate_non_planar=True, minimal=True
|
|
584
598
|
):
|
|
585
599
|
"""Translate a Honeybee Model file to a gbXML file.
|
|
@@ -606,6 +620,16 @@ def model_to_gbxml(
|
|
|
606
620
|
ground_face_type: Text string for the type to be used for all ground-contact
|
|
607
621
|
floor faces. If unspecified, the ground types will be left as they are.
|
|
608
622
|
Choose from: UndergroundSlab, SlabOnGrade, RaisedFloor.
|
|
623
|
+
program_name: Optional text to set the name of the software that will
|
|
624
|
+
appear under the programId and ProductName tags of the DocumentHistory
|
|
625
|
+
section. This can be set things like "Ladybug Tools" or "Pollination"
|
|
626
|
+
or some other software in which this gbXML export capability is being
|
|
627
|
+
run. If None, the "OpenStudio" will be used. (Default: None).
|
|
628
|
+
program_version: Optional text to set the version of the software that
|
|
629
|
+
will appear under the DocumentHistory section. If None, and the
|
|
630
|
+
program_name is also unspecified, only the version of OpenStudio will
|
|
631
|
+
appear. Otherwise, this will default to "0.0.0" given that the version
|
|
632
|
+
field is required. (Default: None).
|
|
609
633
|
output_file: Optional gbXML file to output the string of the translation.
|
|
610
634
|
By default it will be returned from this method.
|
|
611
635
|
"""
|
|
@@ -623,7 +647,8 @@ def model_to_gbxml(
|
|
|
623
647
|
gbxml_str = model_to_gbxml(
|
|
624
648
|
model, triangulate_non_planar_orphaned=triangulate_non_planar,
|
|
625
649
|
triangulate_subfaces=triangulate_subfaces, full_geometry=full_geometry,
|
|
626
|
-
interior_face_type=interior_face_type, ground_face_type=ground_face_type
|
|
650
|
+
interior_face_type=interior_face_type, ground_face_type=ground_face_type,
|
|
651
|
+
program_name=program_name, program_version=program_version
|
|
627
652
|
)
|
|
628
653
|
|
|
629
654
|
# write out the gbXML file
|
|
@@ -652,6 +677,18 @@ def model_to_gbxml(
|
|
|
652
677
|
'of the distance (eg. 0.5ft) or, if no units are provided, the value '
|
|
653
678
|
'will be interpreted in the honeybee model units',
|
|
654
679
|
type=str, default='0.2m', show_default=True)
|
|
680
|
+
@click.option('--program-name', '-p', help='Optional text to set the name of the '
|
|
681
|
+
'software that will appear under the programId and ProductName tags '
|
|
682
|
+
'of the DocumentHistory section. This can be set things like "Ladybug '
|
|
683
|
+
'Tools" or "Pollination" or some other software in which this gbXML '
|
|
684
|
+
'export capability is being run. If None, "OpenStudio" will be used.',
|
|
685
|
+
type=str, default=None, show_default=True)
|
|
686
|
+
@click.option('--program-version', '-v', help='Optional text to set the version of '
|
|
687
|
+
'the software that will appear under the DocumentHistory section. '
|
|
688
|
+
'If None, and the program_name is also unspecified, only the version '
|
|
689
|
+
'of OpenStudio will appear. Otherwise, this will default to "0.0.0" '
|
|
690
|
+
'given that the version field is required.',
|
|
691
|
+
type=str, default=None, show_default=True)
|
|
655
692
|
@click.option('--osw-folder', '-osw', help='Deprecated input that is no longer used.',
|
|
656
693
|
default=None,
|
|
657
694
|
type=click.Path(file_okay=False, dir_okay=True, resolve_path=True))
|
|
@@ -660,7 +697,7 @@ def model_to_gbxml(
|
|
|
660
697
|
type=click.File('w'), default='-', show_default=True)
|
|
661
698
|
def model_to_trace_gbxml_cli(
|
|
662
699
|
model_file, single_window, rect_sub_distance, frame_merge_distance,
|
|
663
|
-
osw_folder, output_file):
|
|
700
|
+
program_name, program_version, osw_folder, output_file):
|
|
664
701
|
"""Translate a Honeybee Model (HBJSON) to a gbXML file.
|
|
665
702
|
|
|
666
703
|
\b
|
|
@@ -669,8 +706,10 @@ def model_to_trace_gbxml_cli(
|
|
|
669
706
|
"""
|
|
670
707
|
try:
|
|
671
708
|
detailed_windows = not single_window
|
|
672
|
-
model_to_trace_gbxml(
|
|
673
|
-
|
|
709
|
+
model_to_trace_gbxml(
|
|
710
|
+
model_file, detailed_windows, rect_sub_distance,
|
|
711
|
+
frame_merge_distance, osw_folder,
|
|
712
|
+
program_name, program_version, output_file)
|
|
674
713
|
except Exception as e:
|
|
675
714
|
_logger.exception('Model translation failed.\n{}'.format(e))
|
|
676
715
|
sys.exit(1)
|
|
@@ -680,8 +719,8 @@ def model_to_trace_gbxml_cli(
|
|
|
680
719
|
|
|
681
720
|
def model_to_trace_gbxml(
|
|
682
721
|
model_file, detailed_windows=False, rect_sub_distance='0.15m',
|
|
683
|
-
frame_merge_distance='0.2m',
|
|
684
|
-
single_window=True
|
|
722
|
+
frame_merge_distance='0.2m', program_name=None, program_version=None,
|
|
723
|
+
osw_folder=None, output_file=None, single_window=True
|
|
685
724
|
):
|
|
686
725
|
"""Translate a Honeybee Model to a gbXML file that is compatible with TRACE 3D Plus.
|
|
687
726
|
|
|
@@ -703,6 +742,16 @@ def model_to_trace_gbxml(
|
|
|
703
742
|
merged across their frames. This can include the units of the
|
|
704
743
|
distance (eg. 0.5ft) or, if no units are provided, the value will
|
|
705
744
|
be interpreted in the honeybee model units. (Default: 0.2m).
|
|
745
|
+
program_name: Optional text to set the name of the software that will
|
|
746
|
+
appear under the programId and ProductName tags of the DocumentHistory
|
|
747
|
+
section. This can be set things like "Ladybug Tools" or "Pollination"
|
|
748
|
+
or some other software in which this gbXML export capability is being
|
|
749
|
+
run. If None, the "OpenStudio" will be used. (Default: None).
|
|
750
|
+
program_version: Optional text to set the version of the software that
|
|
751
|
+
will appear under the DocumentHistory section. If None, and the
|
|
752
|
+
program_name is also unspecified, only the version of OpenStudio will
|
|
753
|
+
appear. Otherwise, this will default to "0.0.0" given that the version
|
|
754
|
+
field is required. (Default: None).
|
|
706
755
|
osw_folder: Deprecated input that is no longer used.
|
|
707
756
|
output_file: Optional gbXML file to output the string of the translation.
|
|
708
757
|
By default it will be returned from this method.
|
|
@@ -720,8 +769,11 @@ def model_to_trace_gbxml(
|
|
|
720
769
|
model = Model.from_file(model_file)
|
|
721
770
|
model = _preprocess_model_for_trace(
|
|
722
771
|
model, single_window=single_window, rect_sub_distance=rect_sub_distance,
|
|
723
|
-
frame_merge_distance=frame_merge_distance
|
|
724
|
-
|
|
772
|
+
frame_merge_distance=frame_merge_distance
|
|
773
|
+
)
|
|
774
|
+
gbxml_str = model_to_gbxml(
|
|
775
|
+
model, program_name=program_name, program_version=program_version
|
|
776
|
+
)
|
|
725
777
|
|
|
726
778
|
# write out the gbXML file
|
|
727
779
|
return process_content_to_output(gbxml_str, output_file)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: honeybee-energy
|
|
3
|
-
Version: 1.116.
|
|
3
|
+
Version: 1.116.69
|
|
4
4
|
Summary: Energy simulation library for honeybee.
|
|
5
5
|
Home-page: https://github.com/ladybug-tools/honeybee-energy
|
|
6
6
|
Author: Ladybug Tools
|
|
@@ -23,7 +23,7 @@ Requires-Dist: honeybee-standards==2.0.7
|
|
|
23
23
|
Provides-Extra: standards
|
|
24
24
|
Requires-Dist: honeybee-energy-standards==2.3.0; extra == "standards"
|
|
25
25
|
Provides-Extra: openstudio
|
|
26
|
-
Requires-Dist: honeybee-openstudio==0.3.
|
|
26
|
+
Requires-Dist: honeybee-openstudio==0.3.15; extra == "openstudio"
|
|
27
27
|
Dynamic: author
|
|
28
28
|
Dynamic: author-email
|
|
29
29
|
Dynamic: classifier
|
|
@@ -34,7 +34,7 @@ honeybee_energy/cli/result.py,sha256=Cqg1KwkDqeqLjpBn8dpWXvHqg_UyxNmLTgj64gfpBWY
|
|
|
34
34
|
honeybee_energy/cli/setconfig.py,sha256=c22bvTyCH1ieebkP39-YI2uI3irjVjGOL90ysrRdgmg,4386
|
|
35
35
|
honeybee_energy/cli/settings.py,sha256=gDPQDN1XmYiIxEag9aYboWoifrCcD2AYOEw3M_b8_v4,28731
|
|
36
36
|
honeybee_energy/cli/simulate.py,sha256=5i5_O8m_iXHXukr53TVyqfNmwZSUqgNiLB8K9EbNjLA,18589
|
|
37
|
-
honeybee_energy/cli/translate.py,sha256=
|
|
37
|
+
honeybee_energy/cli/translate.py,sha256=0LA6CGe6_UlRK_nrheHO2Xfz3TniBoixPAGuAP-QeBg,85189
|
|
38
38
|
honeybee_energy/cli/validate.py,sha256=viXYu6Xx_LOdDK2NUqpwIr6QyWd5_AGgKZTCYUmpaoA,9339
|
|
39
39
|
honeybee_energy/construction/__init__.py,sha256=oCfbVLV3m_Imqf8JK0_IyVdKuMJphPQOCQ5_MjcH9Us,37
|
|
40
40
|
honeybee_energy/construction/_base.py,sha256=s-ha1K2FsbZELYZEqcBBjgkFnA9Ik-LxCnFsDVUsSVc,14321
|
|
@@ -154,9 +154,9 @@ honeybee_energy/ventcool/crack.py,sha256=hloslLEQfmh74XxJF-7nDBDzsLScYVvXIHg4URC
|
|
|
154
154
|
honeybee_energy/ventcool/fan.py,sha256=0Qr-TVz_-QzcUbzV6lx5OqQAxjWZIy47jVobCOTfH5s,21434
|
|
155
155
|
honeybee_energy/ventcool/opening.py,sha256=ZywoADlNQ6_8OfjV71ZUpbCAetQrRVj7aprBjTKW9m0,17376
|
|
156
156
|
honeybee_energy/ventcool/simulation.py,sha256=gMF4sgCQ5R4iFWPnvvB3wxgeP_zEwnWl71ObIIe4XGU,14423
|
|
157
|
-
honeybee_energy-1.116.
|
|
158
|
-
honeybee_energy-1.116.
|
|
159
|
-
honeybee_energy-1.116.
|
|
160
|
-
honeybee_energy-1.116.
|
|
161
|
-
honeybee_energy-1.116.
|
|
162
|
-
honeybee_energy-1.116.
|
|
157
|
+
honeybee_energy-1.116.69.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
158
|
+
honeybee_energy-1.116.69.dist-info/METADATA,sha256=uaL69HlWRff4kvCo_-kC4F8OQF55X0e_D8m-5kgl278,4245
|
|
159
|
+
honeybee_energy-1.116.69.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
160
|
+
honeybee_energy-1.116.69.dist-info/entry_points.txt,sha256=QOMJbH-StaxT4hCjskZtqetNCMNioP3ZiuhoLQ6MANc,63
|
|
161
|
+
honeybee_energy-1.116.69.dist-info/top_level.txt,sha256=pVCYGFn9C9CnDch1nHQWJkkh_2JStCZsSD6SKX0fM_Q,16
|
|
162
|
+
honeybee_energy-1.116.69.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|