report_helpers
utils.report.report_helpers
Helper methods for building standardized report sections.
utils.report.report_helpers.add_applied_documents
add_applied_documents(report: Report, docs: Sequence[Any]) -> None
Add applied code documents section to the report.
report : Report The report object to which the calculation steps will be added. docs : Sequence[Any] The list of applied code documents.
Source code in blueprints/utils/report/report_helpers.py
13 14 15 16 17 18 19 20 21 22 23 24 | |
utils.report.report_helpers.add_applied_forces
add_applied_forces(
report: Report, forces: ResultInternalForce1D, n: int = 2
) -> None
Add applied forces section to the report.
report : Report The report object to which the calculation steps will be added. forces : ResultInternalForce1D The internal forces object. n : int, optional Number of decimals (default is 2).
Source code in blueprints/utils/report/report_helpers.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
utils.report.report_helpers.add_material_steel_info
add_material_steel_info(
report: Report, steel_cross_section: SteelCrossSection, n: int = 2
) -> None
Add material and steel info to the report.
report : Report The report object to which the calculation steps will be added. steel_cross_section : SteelCrossSection The steel cross section object. n : int, optional Number of decimals (default is 2).
Source code in blueprints/utils/report/report_helpers.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | |
utils.report.report_helpers.add_section_properties
add_section_properties(
report: Report,
section_properties: object,
profile: object = None,
n: int = 2,
properties: Sequence[str] = ("area",),
) -> None
Add section properties to the report.
report : Report The report object to which the calculation steps will be added. section_properties : object The section properties object. profile : object, optional Optional profile object for name. n : int, optional Number of decimals (default is 2). properties : Sequence[str], optional List of property names to include (default is ("area",)).
Source code in blueprints/utils/report/report_helpers.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
utils.report.report_helpers.add_unity_check_summary
add_unity_check_summary(
report: Report,
calculations: dict[str, Optional[CheckProtocol] | CheckResult],
n: int = 2,
) -> None
Add a summary table of unity checks to the report.
report : Report The report object to which the calculation steps will be added. calculations : dict[str, "CheckProtocol" | CheckResult] Iterable of (check_name, check_instance) pairs where check_instance can be either a CheckProtocol object or a CheckResult object (e.g., dict.items() or list of tuples). n : int, optional Number of decimals (default is 2).
Source code in blueprints/utils/report/report_helpers.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |