Pylint report from report.jinja2

Score

7.70 / 10 (previous score: 7.70 / 10)

Messages

Module bim2sim (bim2sim/__init__.py)

Line Col. Type Symbol ID Obj Message
11 7 warning broad-exception-caught W0718
Catching too general exception Exception

Module bim2sim.__main__ (bim2sim/__main__.py)

Line Col. Type Symbol ID Obj Message
12 0 convention line-too-long C0301
Line too long (81/80)
33 11 warning broad-exception-caught W0718 get_version
Catching too general exception Exception
55 12 refactor consider-using-sys-exit R1722 commandline_interface
Consider using 'sys.exit' instead
64 8 refactor consider-using-sys-exit R1722 commandline_interface
Consider using 'sys.exit' instead

Module bim2sim.elements.aggregation.__init__ (bim2sim/elements/aggregation/__init__.py)

Line Col. Type Symbol ID Obj Message
26 9 warning fixme W0511
TODO: make guid reproduceable unique for same aggregation elements
40 0 convention line-too-long C0301
Line too long (81/80)
68 0 convention line-too-long C0301
Line too long (102/80)

Module bim2sim.elements.aggregation (bim2sim/elements/aggregation/__init__.py)

Line Col. Type Symbol ID Obj Message
14 0 convention missing-class-docstring C0115 AggregationMixin
Missing class docstring
24 37 convention consider-using-f-string C0209 AggregationMixin.__init__
Formatting a regular string which could be a f-string
36 8 convention import-outside-toplevel C0415 AggregationMixin.__init_subclass__
Import outside toplevel (bim2sim.elements.base_elements.ProductBased)
42 29 warning unused-argument W0613 AggregationMixin._calc_position
Unused argument 'name'
45 12 warning logging-fstring-interpolation W1203 AggregationMixin._calc_position
Use lazy % formatting in logging functions
54 12 warning logging-fstring-interpolation W1203 AggregationMixin._calc_position
Use lazy % formatting in logging functions
59 15 warning broad-exception-caught W0718 AggregationMixin._calc_position
Catching too general exception Exception
60 12 warning logging-fstring-interpolation W1203 AggregationMixin._calc_position
Use lazy % formatting in logging functions
83 4 convention missing-function-docstring C0116 AggregationMixin.source_info
Missing function or method docstring
87 15 convention consider-using-f-string C0209 AggregationMixin.__repr__
Formatting a regular string which could be a f-string
91 15 convention consider-using-f-string C0209 AggregationMixin.__str__
Formatting a regular string which could be a f-string

Module bim2sim.elements.aggregation.bps_aggregations (bim2sim/elements/aggregation/bps_aggregations.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
21 0 warning abstract-method W0223 AggregatedThermalZone
Method 'get__elements_by_type' is abstract in class 'ThermalZone' but is not overridden in child class 'AggregatedThermalZone'
21 0 warning abstract-method W0223 AggregatedThermalZone
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'AggregatedThermalZone'
32 9 warning fixme W0511
todo lump usage conditions of existing zones
37 12 convention invalid-name C0103 AggregatedThermalZone.bind_elements
Variable name "tz" doesn't conform to snake_case naming style
43 4 convention missing-function-docstring C0116 AggregatedThermalZone.bind_tz_to_storeys
Missing function or method docstring
45 12 convention invalid-name C0103 AggregatedThermalZone.bind_tz_to_storeys
Variable name "tz" doesn't conform to snake_case naming style
55 4 convention missing-function-docstring C0116 AggregatedThermalZone.bind_tz_to_building
Missing function or method docstring
58 12 convention invalid-name C0103 AggregatedThermalZone.bind_tz_to_building
Variable name "tz" doesn't conform to snake_case naming style
67 8 refactor no-else-raise R1720 AggregatedThermalZone.bind_tz_to_building
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
73 12 warning undefined-loop-variable W0631 AggregatedThermalZone.bind_tz_to_building
Using possibly undefined loop variable 'tz'
85 23 convention consider-using-f-string C0209 AggregatedThermalZone.find_matches
Formatting a regular string which could be a f-string
92 21 warning fixme W0511
Todo: usage and conditions criterion
98 17 warning fixme W0511
todo reuse this if needed but currently it doesn't seem so
101 23 convention consider-using-f-string C0209 AggregatedThermalZone.find_matches
Formatting a regular string which could be a f-string
109 4 convention missing-function-docstring C0116 AggregatedThermalZone.create_aggregated_tz
Missing function or method docstring
113 12 convention invalid-name C0103 AggregatedThermalZone.create_aggregated_tz
Variable name "tz" doesn't conform to snake_case naming style
119 31 warning unused-argument W0613 AggregatedThermalZone._calc_net_volume
Unused argument 'name'
160 12 convention invalid-name C0103 AggregatedThermalZone._intensive_list_calc
Variable name "x" doesn't conform to snake_case naming style
177 9 warning fixme W0511
todo: log
179 12 convention invalid-name C0103 AggregatedThermalZone._bool_calc
Variable name "tz" doesn't conform to snake_case naming style
187 28 warning unused-argument W0613 AggregatedThermalZone._get_tz_usage
Unused argument 'name'
198 5 warning fixme W0511
todo refactor this to remove redundancy for units
367 0 convention missing-class-docstring C0115 SBDisaggregationMixin
Missing class docstring
367 0 refactor too-many-instance-attributes R0902 SBDisaggregationMixin
Too many instance attributes (11/7)
367 0 refactor too-few-public-methods R0903 SBDisaggregationMixin
Too few public methods (1/2)
372 4 refactor too-many-branches R0912 SBDisaggregationMixin.__init__
Too many branches (15/12)
384 37 convention consider-using-f-string C0209 SBDisaggregationMixin.__init__
Formatting a regular string which could be a f-string
387 12 convention invalid-name C0103 SBDisaggregationMixin.__init__
Variable name "tz" doesn't conform to snake_case naming style
400 0 convention line-too-long C0301
Line too long (82/80)
402 0 convention line-too-long C0301
Line too long (82/80)
404 12 convention invalid-name C0103 SBDisaggregationMixin.__init__
Variable name "sb" doesn't conform to snake_case naming style
420 12 warning logging-fstring-interpolation W1203 SBDisaggregationMixin.__init__
Use lazy % formatting in logging functions
423 16 warning logging-fstring-interpolation W1203 SBDisaggregationMixin.__init__
Use lazy % formatting in logging functions
426 16 warning logging-fstring-interpolation W1203 SBDisaggregationMixin.__init__
Use lazy % formatting in logging functions
449 4 convention missing-function-docstring C0116 SBDisaggregationMixin.get_id
Missing function or method docstring
457 0 convention missing-class-docstring C0115 InnerFloorDisaggregated
Missing class docstring
457 0 warning abstract-method W0223 InnerFloorDisaggregated
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'InnerFloorDisaggregated'
457 0 refactor too-many-ancestors R0901 InnerFloorDisaggregated
Too many ancestors (8/7)
462 0 convention missing-class-docstring C0115 GroundFloorDisaggregated
Missing class docstring
462 0 warning abstract-method W0223 GroundFloorDisaggregated
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'GroundFloorDisaggregated'
462 0 refactor too-many-ancestors R0901 GroundFloorDisaggregated
Too many ancestors (8/7)
467 0 convention missing-class-docstring C0115 RoofDisaggregated
Missing class docstring
467 0 warning abstract-method W0223 RoofDisaggregated
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'RoofDisaggregated'
467 0 refactor too-many-ancestors R0901 RoofDisaggregated
Too many ancestors (8/7)
472 0 convention missing-class-docstring C0115 InnerWallDisaggregated
Missing class docstring
472 0 warning abstract-method W0223 InnerWallDisaggregated
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'InnerWallDisaggregated'
472 0 refactor too-many-ancestors R0901 InnerWallDisaggregated
Too many ancestors (8/7)
477 0 convention missing-class-docstring C0115 OuterWallDisaggregated
Missing class docstring
477 0 warning abstract-method W0223 OuterWallDisaggregated
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'OuterWallDisaggregated'
477 0 refactor too-many-ancestors R0901 OuterWallDisaggregated
Too many ancestors (8/7)
482 0 convention missing-class-docstring C0115 InnerDoorDisaggregated
Missing class docstring
482 0 warning abstract-method W0223 InnerDoorDisaggregated
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'InnerDoorDisaggregated'
482 0 refactor too-many-ancestors R0901 InnerDoorDisaggregated
Too many ancestors (8/7)
487 0 convention missing-class-docstring C0115 OuterDoorDisaggregated
Missing class docstring
487 0 warning abstract-method W0223 OuterDoorDisaggregated
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'OuterDoorDisaggregated'
487 0 refactor too-many-ancestors R0901 OuterDoorDisaggregated
Too many ancestors (8/7)
492 0 convention missing-class-docstring C0115 WindowDisaggregated
Missing class docstring
492 0 warning abstract-method W0223 WindowDisaggregated
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'WindowDisaggregated'

Module bim2sim.elements.aggregation.hvac_aggregations (bim2sim/elements/aggregation/hvac_aggregations.py)

Line Col. Type Symbol ID Obj Message
1 0 convention too-many-lines C0302
Too many lines in module (1595/1000)
1 0 convention missing-module-docstring C0114
Missing module docstring
27 37 convention consider-using-f-string C0209 verify_edge_ports.wrapper
Formatting a regular string which could be a f-string
40 9 warning fixme W0511
TODO / TBD: DJA: can one Port replace multiple? what about position?
42 15 convention unidiomatic-typecheck C0123 HVACAggregationPort.__init__
Use isinstance() rather than type() for a typecheck.
49 4 convention missing-function-docstring C0116 HVACAggregationPort.flow_direction_from_original
Missing function or method docstring
49 4 refactor inconsistent-return-statements R1710 HVACAggregationPort.flow_direction_from_original
Either all return statements in a function should return an expression, or none of them should.
51 30 refactor consider-using-set-comprehension R1718 HVACAggregationPort.flow_direction_from_original
Consider using a set comprehension
53 12 refactor no-else-raise R1720 HVACAggregationPort.flow_direction_from_original
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
90 30 refactor consider-using-set-comprehension R1718 HVACAggregationMixin.__init__
Consider using a set comprehension
94 4 error method-hidden E0202 HVACAggregationMixin.get_ports
An attribute defined in bim2sim.elements.aggregation.hvac_aggregations line 89 hides this method
107 8 convention invalid-name C0103 HVACAggregationMixin.get_ports
Variable name "e1" doesn't conform to snake_case naming style
115 12 convention invalid-name C0103 HVACAggregationMixin.get_ports
Variable name "e2" doesn't conform to snake_case naming style
117 12 convention invalid-name C0103 HVACAggregationMixin.get_ports
Variable name "e3" doesn't conform to snake_case naming style
120 16 refactor consider-using-set-comprehension R1718 HVACAggregationMixin.get_ports
Consider using a set comprehension
139 9 warning fixme W0511
TODO: len > 1, optimize
179 12 convention consider-using-f-string C0209 HVACAggregationMixin.find_matches
Formatting a regular string which could be a f-string
181 29 warning unused-argument W0613 HVACAggregationMixin._calc_has_pump
Unused argument 'name'
195 0 warning abstract-method W0223 PipeStrand
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'PipeStrand'
252 17 refactor use-dict-literal R1735 PipeStrand._calc_avg
Consider using '{"length": total_length, "diameter": avg_diameter}' instead of a call to 'dict'.
273 0 refactor too-many-ancestors R0901 UnderfloorHeating
Too many ancestors (8/7)
344 9 warning fixme W0511
TODO: cluster z coordinates
382 0 convention superfluous-parens C0325
Unnecessary parens after '=' keyword
386 0 convention superfluous-parens C0325
Unnecessary parens after '=' keyword
391 4 convention missing-function-docstring C0116 UnderfloorHeating.get_ufh_type
Missing function or method docstring
392 9 warning fixme W0511
TODO: function to obtain the underfloor heating form based on issue
417 9 warning fixme W0511
ToDo: what if multiple pipe elements on the same line? Collinear
421 15 convention unidiomatic-typecheck C0123 UnderfloorHeating.get_pipe_strand_spacing
Use isinstance() rather than type() for a typecheck.
422 16 convention invalid-name C0103 UnderfloorHeating.get_pipe_strand_spacing
Variable name "a" doesn't conform to snake_case naming style
424 16 convention invalid-name C0103 UnderfloorHeating.get_pipe_strand_spacing
Variable name "b" doesn't conform to snake_case naming style
459 4 refactor inconsistent-return-statements R1710 UnderfloorHeating.check_spacing
Either all return statements in a function should return an expression, or none of them should.
503 4 refactor inconsistent-return-statements R1710 UnderfloorHeating.check_conditions
Either all return statements in a function should return an expression, or none of them should.
521 9 warning fixme W0511
TODO: use only floor heating pipes and not connecting pipes
541 15 refactor use-dict-literal R1735 UnderfloorHeating.check_conditions
Consider using '{"length": total_length, "diameter": avg_diameter, "heating_area": heating_area, ... }' instead of a call to 'dict'.
575 0 warning abstract-method W0223 ParallelPump
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'ParallelPump'
633 17 refactor use-dict-literal R1735 ParallelPump._calc_avg
Consider using '{"length": total_length, "diameter_strand": avg_diameter_strand}' instead of a call to 'dict'.
643 9 warning fixme W0511
TODO: cant this be solved in find_matches?
660 8 refactor no-else-return R1705 ParallelPump._calc_rated_power
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
661 19 refactor consider-using-generator R1728 ParallelPump._calc_rated_power
Consider using a generator instead 'sum(ele.rated_power for ele in self.pump_elements)'
672 33 warning unused-argument W0613 ParallelPump._calc_rated_height
Unused argument 'name'
675 15 refactor consider-using-generator R1728 ParallelPump._calc_rated_height
Consider using a generator instead 'max(ele.rated_height for ele in self.pump_elements)'
684 32 warning unused-argument W0613 ParallelPump._calc_volume_flow
Unused argument 'name'
687 15 refactor consider-using-generator R1728 ParallelPump._calc_volume_flow
Consider using a generator instead 'sum(ele.rated_volume_flow for ele in self.pump_elements)'
696 29 warning unused-argument W0613 ParallelPump._calc_diameter
Unused argument 'name'
727 0 warning abstract-method W0223 Consumer
Method 'expected_hvac_ports' is abstract in class 'HVACProduct' but is not overridden in child class 'Consumer'
727 0 warning abstract-method W0223 Consumer
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Consumer'
790 21 warning fixme W0511
TODO: Consumer separieren
811 4 convention invalid-name C0103 Consumer._calc_TControl
Method name "_calc_TControl" doesn't conform to snake_case naming style
811 29 warning unused-argument W0613 Consumer._calc_TControl
Unused argument 'name'
812 0 convention line-too-long C0301
Line too long (82/80)
812 15 refactor use-a-generator R1729 Consumer._calc_TControl
Use a generator instead 'any(isinstance(ele, hvac.ThreeWayValve) for ele in self.elements)'
820 32 warning unused-argument W0613 Consumer._calc_rated_power
Unused argument 'name'
824 15 refactor consider-using-generator R1728 Consumer._calc_rated_power
Consider using a generator instead 'sum(ele.rated_power for ele in self.whitelist_elements)'
838 37 warning unused-argument W0613 Consumer._calc_rated_pump_power
Unused argument 'name'
842 15 refactor consider-using-generator R1728 Consumer._calc_rated_pump_power
Consider using a generator instead 'sum(ele.rated_power for ele in self.pump_elements)'
851 32 warning unused-argument W0613 Consumer._calc_volume_flow
Unused argument 'name'
855 15 refactor consider-using-generator R1728 Consumer._calc_volume_flow
Consider using a generator instead 'sum(ele.rated_volume_flow for ele in self.pump_elements)'
864 37 warning unused-argument W0613 Consumer._calc_flow_temperature
Unused argument 'name'
878 39 warning unused-argument W0613 Consumer._calc_return_temperature
Unused argument 'name'
892 4 convention invalid-name C0103 Consumer._calc_dT_water
Method name "_calc_dT_water" doesn't conform to snake_case naming style
892 29 warning unused-argument W0613 Consumer._calc_dT_water
Unused argument 'name'
902 30 warning unused-argument W0613 Consumer._calc_body_mass
Unused argument 'name'
912 34 warning unused-argument W0613 Consumer._calc_heat_capacity
Unused argument 'name'
923 32 warning unused-argument W0613 Consumer._calc_demand_type
Unused argument 'name'
937 33 warning unused-argument W0613 Consumer._calc_rated_height
Unused argument 'name'
941 15 refactor consider-using-generator R1728 Consumer._calc_rated_height
Consider using a generator instead 'max(ele.rated_height for ele in self.pump_elements)'
950 32 warning unused-argument W0613 Consumer._calc_description
Unused argument 'name'
960 26 convention consider-using-f-string C0209 Consumer._calc_description
Formatting a regular string which could be a f-string
975 0 warning abstract-method W0223 ConsumerHeatingDistributorModule
Method 'expected_hvac_ports' is abstract in class 'HVACProduct' but is not overridden in child class 'ConsumerHeatingDistributorModule'
975 0 warning abstract-method W0223 ConsumerHeatingDistributorModule
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'ConsumerHeatingDistributorModule'
992 5 warning fixme W0511
TODO: Abused to not just sum attributes from elements
1072 25 warning fixme W0511
TODO: separate consumer (maybe recursive function?)
1096 5 warning fixme W0511
TODO fix hardcoded values
1098 17 refactor use-dict-literal R1735 ConsumerHeatingDistributorModule._calc_avg
Consider using '{"medium": None, "use_hydraulic_separator": False, "hydraulic_separator_volume": 1, ... }' instead of a call to 'dict'.
1113 0 convention line-too-long C0301
Line too long (84/80)
1115 37 warning unused-argument W0613 ConsumerHeatingDistributorModule._calc_flow_temperature
Unused argument 'name'
1137 39 warning unused-argument W0613 ConsumerHeatingDistributorModule._calc_return_temperature
Unused argument 'name'
1150 4 convention invalid-name C0103 ConsumerHeatingDistributorModule._calc_dT_water
Method name "_calc_dT_water" doesn't conform to snake_case naming style
1150 29 warning unused-argument W0613 ConsumerHeatingDistributorModule._calc_dT_water
Unused argument 'name'
1162 30 warning unused-argument W0613 ConsumerHeatingDistributorModule._calc_body_mass
Unused argument 'name'
1172 34 warning unused-argument W0613 ConsumerHeatingDistributorModule._calc_heat_capacity
Unused argument 'name'
1182 32 warning unused-argument W0613 ConsumerHeatingDistributorModule._calc_demand_type
Unused argument 'name'
1192 29 warning unused-argument W0613 ConsumerHeatingDistributorModule.calc_mass_flow
Unused argument 'name'
1215 32 warning unused-argument W0613 ConsumerHeatingDistributorModule._calc_rated_power
Unused argument 'name'
1227 4 convention invalid-name C0103 ConsumerHeatingDistributorModule._calc_TControl
Method name "_calc_TControl" doesn't conform to snake_case naming style
1227 29 warning unused-argument W0613 ConsumerHeatingDistributorModule._calc_TControl
Unused argument 'name'
1245 0 warning abstract-method W0223 GeneratorOneFluid
Method 'expected_hvac_ports' is abstract in class 'HVACProduct' but is not overridden in child class 'GeneratorOneFluid'
1245 0 warning abstract-method W0223 GeneratorOneFluid
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'GeneratorOneFluid'
1265 26 refactor simplifiable-if-expression R1719 GeneratorOneFluid.__init__
The if expression can be replaced with 'bool(test)'
1269 4 refactor too-many-locals R0914 GeneratorOneFluid.find_matches
Too many local variables (23/15)
1309 23 convention unidiomatic-typecheck C0123 GeneratorOneFluid.find_matches
Use isinstance() rather than type() for a typecheck.
1333 12 convention consider-using-enumerate C0200 GeneratorOneFluid.find_matches
Consider using enumerate instead of iterating with range and len
1334 29 refactor use-dict-literal R1735 GeneratorOneFluid.find_matches
Consider using '{}' instead of a call to 'dict'.
1380 17 refactor use-dict-literal R1735 GeneratorOneFluid._calc_avg
Consider using '{"length": total_length, "diameter_strand": avg_diameter_strand}' instead of a call to 'dict'.
1389 12 convention consider-using-f-string C0209 GeneratorOneFluid._calc_has_bypass
Formatting a regular string which could be a f-string
1394 21 error no-member E1101 GeneratorOneFluid._calc_has_bypass
Instance of 'BoolDecision' has no 'decide' member
1395 15 refactor use-dict-literal R1735 GeneratorOneFluid._calc_has_bypass
Consider using '{"has_bypass": has_bypass}' instead of a call to 'dict'.
1403 9 warning fixme W0511
todo remove if discussed
1406 21 error no-member E1101 GeneratorOneFluid.find_bypasses
Class 'GeneratorOneFluid' has no 'aggregatable_elements' member
1414 9 warning fixme W0511
todo remove if discussed, see #184
1415 9 warning fixme W0511
todo more elegant way? Problem is that cant yield from attributes
1420 12 convention consider-using-f-string C0209 GeneratorOneFluid._calc_has_bypass_decision
Formatting a regular string which could be a f-string
1443 32 warning unused-argument W0613 GeneratorOneFluid._calc_rated_power
Unused argument 'name'
1446 15 refactor consider-using-generator R1728 GeneratorOneFluid._calc_rated_power
Consider using a generator instead 'sum(ele.rated_power for ele in self.whitelist_elements)'
1455 30 warning unused-argument W0613 GeneratorOneFluid._calc_min_power
Unused argument 'name'
1458 15 refactor consider-using-generator R1728 GeneratorOneFluid._calc_min_power
Consider using a generator instead 'sum(ele.min_power for ele in self.whitelist_elements)'
1467 4 convention invalid-name C0103 GeneratorOneFluid._calc_min_PLR
Method name "_calc_min_PLR" doesn't conform to snake_case naming style
1467 28 warning unused-argument W0613 GeneratorOneFluid._calc_min_PLR
Unused argument 'name'
1477 37 warning unused-argument W0613 GeneratorOneFluid._calc_flow_temperature
Unused argument 'name'
1490 39 warning unused-argument W0613 GeneratorOneFluid._calc_return_temperature
Unused argument 'name'
1503 4 convention invalid-name C0103 GeneratorOneFluid._calc_dT_water
Method name "_calc_dT_water" doesn't conform to snake_case naming style
1503 29 warning unused-argument W0613 GeneratorOneFluid._calc_dT_water
Unused argument 'name'
1513 29 warning unused-argument W0613 GeneratorOneFluid._calc_diameter
Unused argument 'name'
1548 37 warning unused-argument W0613 GeneratorOneFluid._calc_rated_pump_power
Unused argument 'name'
1551 8 refactor no-else-return R1705 GeneratorOneFluid._calc_rated_pump_power
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
1552 19 refactor consider-using-generator R1728 GeneratorOneFluid._calc_rated_pump_power
Consider using a generator instead 'sum(ele.rated_power for ele in self.pump_elements)'
1563 32 warning unused-argument W0613 GeneratorOneFluid._calc_volume_flow
Unused argument 'name'
1566 15 refactor consider-using-generator R1728 GeneratorOneFluid._calc_volume_flow
Consider using a generator instead 'sum(ele.rated_volume_flow for ele in self.pump_elements)'
1575 27 warning unused-argument W0613 GeneratorOneFluid._calc_volume
Unused argument 'name'
1585 33 warning unused-argument W0613 GeneratorOneFluid._calc_rated_height
Unused argument 'name'
1588 15 refactor consider-using-generator R1728 GeneratorOneFluid._calc_rated_height
Consider using a generator instead 'max(ele.rated_height for ele in self.pump_elements)'

Module bim2sim.elements.base_elements (bim2sim/elements/base_elements.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
17 0 warning unused-import W0611
Unused angle_equivalent imported from bim2sim.utilities.common_functions
17 0 warning unused-import W0611
Unused vector_angle imported from bim2sim.utilities.common_functions
39 5 warning fixme W0511
TODO: make Elements serializable and deserializable.
45 19 convention consider-using-f-string C0209 ElementEncoder.default
Formatting a regular string which could be a f-string
46 15 error no-value-for-parameter E1120 ElementEncoder.default
No value for argument 'self' in unbound method call
46 15 error no-value-for-parameter E1120 ElementEncoder.default
No value for argument 'o' in unbound method call
54 23 warning redefined-outer-name W0621 Element.__init__
Redefining name 'guid' from outer scope (line 9)
60 12 convention invalid-name C0103 Element.__init__
Variable name "kw" doesn't conform to snake_case naming style
77 29 warning unused-argument W0613 Element._calc_position
Unused argument 'name'
87 4 convention missing-function-docstring C0116 Element.get_id
Missing function or method docstring
92 15 convention consider-using-f-string C0209 Element.get_id
Formatting a regular string which could be a f-string
95 19 warning redefined-outer-name W0621 Element.get_object
Redefining name 'guid' from outer scope (line 9)
147 4 convention missing-function-docstring C0116 Element.full_reset
Missing function or method docstring
151 0 refactor too-many-instance-attributes R0902 IFCBased
Too many instance attributes (10/7)
151 0 refactor too-many-public-methods R0904 IFCBased
Too many public methods (26/20)
186 31 warning fixme W0511
TODO: DJA
194 8 warning redefined-outer-name W0621 IFCBased.ifc2args
Redefining name 'guid' from outer scope (line 9)
206 4 convention missing-function-docstring C0116 IFCBased.ifc_type
Missing function or method docstring
206 4 refactor inconsistent-return-statements R1710 IFCBased.ifc_type
Either all return statements in a function should return an expression, or none of them should.
218 0 convention line-too-long C0301
Line too long (96/80)
221 0 convention line-too-long C0301
Line too long (89/80)
228 4 refactor inconsistent-return-statements R1710 IFCBased._get_name_from_ifc
Either all return statements in a function should return an expression, or none of them should.
228 33 warning unused-argument W0613 IFCBased._get_name_from_ifc
Unused argument 'name'
238 32 warning redefined-outer-name W0621 IFCBased.get_ifc_attribute
Redefining name 'attribute' from outer scope (line 14)
244 4 convention missing-function-docstring C0116 IFCBased.get_propertyset
Missing function or method docstring
248 4 convention missing-function-docstring C0116 IFCBased.get_propertysets
Missing function or method docstring
254 4 convention missing-function-docstring C0116 IFCBased.get_type_propertysets
Missing function or method docstring
260 4 convention missing-function-docstring C0116 IFCBased.get_hierarchical_parent
Missing function or method docstring
263 4 convention missing-function-docstring C0116 IFCBased.get_hierarchical_children
Missing function or method docstring
266 4 convention missing-function-docstring C0116 IFCBased.get_spartial_parent
Missing function or method docstring
269 4 convention missing-function-docstring C0116 IFCBased.get_spartial_children
Missing function or method docstring
272 4 convention missing-function-docstring C0116 IFCBased.get_space
Missing function or method docstring
275 4 convention missing-function-docstring C0116 IFCBased.get_storey
Missing function or method docstring
278 4 convention missing-function-docstring C0116 IFCBased.get_building
Missing function or method docstring
281 4 convention missing-function-docstring C0116 IFCBased.get_site
Missing function or method docstring
284 4 convention missing-function-docstring C0116 IFCBased.get_project
Missing function or method docstring
287 4 convention missing-function-docstring C0116 IFCBased.get_true_north
Missing function or method docstring
290 4 convention missing-function-docstring C0116 IFCBased.summary
Missing function or method docstring
338 0 convention line-too-long C0301
Line too long (87/80)
341 0 convention line-too-long C0301
Line too long (94/80)
344 0 convention line-too-long C0301
Line too long (113/80)
356 0 convention line-too-long C0301
Line too long (124/80)
361 0 convention line-too-long C0301
Line too long (84/80)
368 12 warning raise-missing-from W0707 IFCBased.get_exact_property
Consider explicitly re-raising using 'except (AttributeError, KeyError, TypeError) as exc' and 'raise NoValueError("Property '%s.%s' does not exist" % (propertyset_name, property_name)) from exc'
368 31 convention consider-using-f-string C0209 IFCBased.get_exact_property
Formatting a regular string which could be a f-string
372 57 warning unused-argument W0613 IFCBased.select_from_potential_properties
Unused argument 'name'
373 41 warning unused-argument W0613 IFCBased.select_from_potential_properties
Unused argument 'collect_decisions'
380 49 warning unused-variable W0612 IFCBased.select_from_potential_properties
Unused variable 'match'
386 13 warning fixme W0511
TODO: Decision: save for all following elements of same class (
391 12 refactor no-else-return R1705 IFCBased.select_from_potential_properties
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
395 0 convention line-too-long C0301
Line too long (99/80)
395 16 warning logging-not-lazy W1201 IFCBased.select_from_potential_properties
Use lazy % formatting in logging functions
395 39 convention consider-using-f-string C0209 IFCBased.select_from_potential_properties
Formatting a regular string which could be a f-string
401 9 warning fixme W0511
# TODO: Decision with id, key, value
423 0 convention missing-class-docstring C0115 RelationBased
Missing class docstring
423 0 warning abstract-method W0223 RelationBased
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'RelationBased'
423 0 warning abstract-method W0223 RelationBased
Method 'validate_creation' is abstract in class 'Element' but is not overridden in child class 'RelationBased'
427 15 convention consider-using-f-string C0209 RelationBased.__repr__
Formatting a regular string which could be a f-string
430 15 convention consider-using-f-string C0209 RelationBased.__str__
Formatting a regular string which could be a f-string
433 0 convention missing-class-docstring C0115 RelationBased
Missing class docstring
433 0 error function-redefined E0102 RelationBased
class already defined line 423
433 0 warning abstract-method W0223 RelationBased
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'RelationBased'
433 0 warning abstract-method W0223 RelationBased
Method 'validate_creation' is abstract in class 'Element' but is not overridden in child class 'RelationBased'
438 0 warning abstract-method W0223 ProductBased
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'ProductBased'
456 8 error assignment-from-none E1128 ProductBased.__init__
Assigning result of a function call, where the function returns None
463 4 convention missing-function-docstring C0116 ProductBased.get_ports
Missing function or method docstring
496 0 convention line-too-long C0301
Line too long (111/80)
499 0 convention line-too-long C0301
Line too long (101/80)
510 17 warning fixme W0511
todo
519 4 convention missing-function-docstring C0116 ProductBased.validate_ports
Missing function or method docstring
523 15 convention consider-using-f-string C0209 ProductBased.__repr__
Formatting a regular string which could be a f-string
529 4 convention missing-function-docstring C0116 ProductBased.calc_volume_from_ifc_shape
Missing function or method docstring
529 4 refactor inconsistent-return-statements R1710 ProductBased.calc_volume_from_ifc_shape
Either all return statements in a function should return an expression, or none of them should.
530 9 warning fixme W0511
todo use more efficient iterator to calc all shapes at once
540 12 warning bare-except W0702 ProductBased.calc_volume_from_ifc_shape
No exception type(s) specified
541 16 warning logging-fstring-interpolation W1203 ProductBased.calc_volume_from_ifc_shape
Use lazy % formatting in logging functions
544 26 warning unused-argument W0613 ProductBased._get_volume
Unused argument 'name'
558 15 convention consider-using-f-string C0209 ProductBased.__str__
Formatting a regular string which could be a f-string
561 0 warning abstract-method W0223 Port
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Port'
561 0 warning abstract-method W0223 Port
Method 'validate_creation' is abstract in class 'Element' but is not overridden in child class 'Port'
597 23 convention consider-using-f-string C0209 Port.__repr__
Formatting a regular string which could be a f-string
600 23 convention consider-using-f-string C0209 Port.__repr__
Formatting a regular string which could be a f-string
602 15 convention consider-using-f-string C0209 Port.__repr__
Formatting a regular string which could be a f-string
608 0 convention missing-class-docstring C0115 Material
Missing class docstring
608 0 warning abstract-method W0223 Material
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Material'
672 5 warning fixme W0511
todo is percent the correct unit? (0-1)
680 8 refactor no-else-return R1705 Material.__repr__
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
681 19 convention consider-using-f-string C0209 Material.__repr__
Formatting a regular string which could be a f-string
683 19 convention consider-using-f-string C0209 Material.__repr__
Formatting a regular string which could be a f-string
686 0 warning abstract-method W0223 Dummy
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Dummy'
700 15 error no-member E1101 Dummy.ifc_type
Instance of 'Dummy' has no '_ifc_type' member; maybe 'ifc_type'?
703 15 convention consider-using-f-string C0209 Dummy.__str__
Formatting a regular string which could be a f-string
717 4 refactor too-many-arguments R0913 Factory.__init__
Too many arguments (6/5)
724 0 convention line-too-long C0301
Line too long (96/80)
757 9 warning fixme W0511
TODO # 537 Put this to a point where it makes sense, return None is no
761 16 warning logging-fstring-interpolation W1203 Factory.__call__
Use lazy % formatting in logging functions
812 0 convention line-too-long C0301
Line too long (81/80)
832 9 warning fixme W0511
TODO: cover virtual elements e.g. Space Boundaries (not products)
847 0 convention line-too-long C0301
Line too long (99/80)
878 23 warning unused-variable W0612 SerializedElement.__init__
Unused variable 'attr_val'
885 16 warning logging-fstring-interpolation W1203 SerializedElement.__init__
Use lazy % formatting in logging functions
900 0 convention line-too-long C0301
Line too long (87/80)
916 15 convention consider-using-f-string C0209 SerializedElement.__repr__
Formatting a regular string which could be a f-string

Module bim2sim.elements.bps_elements (bim2sim/elements/bps_elements.py)

Line Col. Type Symbol ID Obj Message
1 0 convention too-many-lines C0302
Too many lines in module (1963/1000)
36 0 convention missing-class-docstring C0115 BPSProduct
Missing class docstring
36 0 warning abstract-method W0223 BPSProduct
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'BPSProduct'
50 15 convention consider-using-f-string C0209 BPSProduct.__repr__
Formatting a regular string which could be a f-string
53 29 warning redefined-outer-name W0621 BPSProduct.get_bound_area
Redefining name 'name' from outer scope (line 1957)
53 29 warning unused-argument W0613 BPSProduct.get_bound_area
Unused argument 'name'
57 33 warning redefined-outer-name W0621 BPSProduct.get_net_bound_area
Redefining name 'name' from outer scope (line 1957)
57 33 warning unused-argument W0613 BPSProduct.get_net_bound_area
Unused argument 'name'
65 8 refactor no-else-return R1705 BPSProduct.is_external
Unnecessary "elif" after "return", remove the leading "el" from "elif"
71 24 refactor consider-using-set-comprehension R1718 BPSProduct.is_external
Consider using a set comprehension
86 39 warning redefined-outer-name W0621 BPSProduct._calc_teaser_orientation
Redefining name 'name' from outer scope (line 1957)
86 39 warning unused-argument W0613 BPSProduct._calc_teaser_orientation
Unused argument 'name'
98 11 convention use-implicit-booleaness-not-len C1802 BPSProduct._calc_teaser_orientation
Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty
108 4 convention missing-function-docstring C0116 BPSProduct.group_orientation
Missing function or method docstring
119 45 warning redefined-outer-name W0621 BPSProduct._get_sbs_without_corresponding
Redefining name 'name' from outer scope (line 1957)
119 45 warning unused-argument W0613 BPSProduct._get_sbs_without_corresponding
Unused argument 'name'
122 12 convention invalid-name C0103 BPSProduct._get_sbs_without_corresponding
Variable name "sb" doesn't conform to snake_case naming style
129 32 warning redefined-outer-name W0621 BPSProduct._get_opening_area
Redefining name 'name' from outer scope (line 1957)
129 32 warning unused-argument W0613 BPSProduct._get_opening_area
Unused argument 'name'
161 0 convention missing-class-docstring C0115 ThermalZone
Missing class docstring
193 40 warning redefined-outer-name W0621 ThermalZone._get_external_orientation
Redefining name 'name' from outer scope (line 1957)
193 40 warning unused-argument W0613 ThermalZone._get_external_orientation
Unused argument 'name'
206 36 warning redefined-outer-name W0621 ThermalZone._get_glass_percentage
Redefining name 'name' from outer scope (line 1957)
206 36 warning unused-argument W0613 ThermalZone._get_glass_percentage
Unused argument 'name'
215 8 refactor no-else-return R1705 ThermalZone._get_glass_percentage
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
220 35 warning redefined-outer-name W0621 ThermalZone._get_space_neighbors
Redefining name 'name' from outer scope (line 1957)
220 35 warning unused-argument W0613 ThermalZone._get_space_neighbors
Unused argument 'name'
223 12 convention invalid-name C0103 ThermalZone._get_space_neighbors
Variable name "sb" doesn't conform to snake_case naming style
225 16 convention invalid-name C0103 ThermalZone._get_space_neighbors
Variable name "tz" doesn't conform to snake_case naming style
226 17 warning fixme W0511
todo: check if computation of neighbors works as expected
234 31 warning redefined-outer-name W0621 ThermalZone._get_space_shape
Redefining name 'name' from outer scope (line 1957)
234 31 warning unused-argument W0613 ThermalZone._get_space_shape
Unused argument 'name'
243 32 warning redefined-outer-name W0621 ThermalZone._get_space_center
Redefining name 'name' from outer scope (line 1957)
243 32 warning unused-argument W0613 ThermalZone._get_space_center
Unused argument 'name'
254 35 warning redefined-outer-name W0621 ThermalZone._get_footprint_shape
Redefining name 'name' from outer scope (line 1957)
254 35 warning unused-argument W0613 ThermalZone._get_footprint_shape
Unused argument 'name'
262 38 warning redefined-outer-name W0621 ThermalZone._get_space_shape_volume
Redefining name 'name' from outer scope (line 1957)
262 38 warning unused-argument W0613 ThermalZone._get_space_shape_volume
Unused argument 'name'
268 36 warning redefined-outer-name W0621 ThermalZone._get_volume_geometric
Redefining name 'name' from outer scope (line 1957)
268 36 warning unused-argument W0613 ThermalZone._get_volume_geometric
Unused argument 'name'
274 25 warning redefined-outer-name W0621 ThermalZone._get_usage
Redefining name 'name' from outer scope (line 1957)
274 25 warning unused-argument W0613 ThermalZone._get_usage
Unused argument 'name'
282 13 warning fixme W0511
todo oldSpaceGuids_ is hardcode for erics tool
288 24 warning redefined-outer-name W0621 ThermalZone._get_name
Redefining name 'name' from outer scope (line 1957)
288 24 warning unused-argument W0613 ThermalZone._get_name
Unused argument 'name'
298 35 warning redefined-outer-name W0621 ThermalZone.get_bound_floor_area
Redefining name 'name' from outer scope (line 1957)
298 35 warning unused-argument W0613 ThermalZone.get_bound_floor_area
Unused argument 'name'
306 37 refactor consider-using-generator R1728 ThermalZone.get_bound_floor_area
Consider using a generator instead 'sum(sb.bound_area for sb in sbs)'
310 39 warning redefined-outer-name W0621 ThermalZone.get_net_bound_floor_area
Redefining name 'name' from outer scope (line 1957)
310 39 warning unused-argument W0613 ThermalZone.get_net_bound_floor_area
Unused argument 'name'
312 0 convention line-too-long C0301
Line too long (81/80)
312 0 convention line-too-long C0301
Line too long (81/80)
317 37 refactor consider-using-generator R1728 ThermalZone.get_net_bound_floor_area
Consider using a generator instead 'sum(sb.net_bound_area for sb in sbs)'
321 34 warning redefined-outer-name W0621 ThermalZone._get_horizontal_sbs
Redefining name 'name' from outer scope (line 1957)
321 34 warning unused-argument W0613 ThermalZone._get_horizontal_sbs
Unused argument 'name'
324 9 warning fixme W0511
todo: use only bottom when TOP bottom is working correctly
327 12 convention invalid-name C0103 ThermalZone._get_horizontal_sbs
Variable name "sb" doesn't conform to snake_case naming style
339 35 warning redefined-outer-name W0621 ThermalZone._get_heating_profile
Redefining name 'name' from outer scope (line 1957)
339 4 refactor inconsistent-return-statements R1710 ThermalZone._get_heating_profile
Either all return statements in a function should return an expression, or none of them should.
339 35 warning unused-argument W0613 ThermalZone._get_heating_profile
Unused argument 'name'
341 9 warning fixme W0511
todo make this "dynamic" with a night set back
345 35 warning redefined-outer-name W0621 ThermalZone._get_cooling_profile
Redefining name 'name' from outer scope (line 1957)
345 4 refactor inconsistent-return-statements R1710 ThermalZone._get_cooling_profile
Either all return statements in a function should return an expression, or none of them should.
345 35 warning unused-argument W0613 ThermalZone._get_cooling_profile
Unused argument 'name'
347 9 warning fixme W0511
todo make this "dynamic" with a night set back
351 27 warning redefined-outer-name W0621 ThermalZone._get_persons
Redefining name 'name' from outer scope (line 1957)
351 4 refactor inconsistent-return-statements R1710 ThermalZone._get_persons
Either all return statements in a function should return an expression, or none of them should.
351 27 warning unused-argument W0613 ThermalZone._get_persons
Unused argument 'name'
392 79 convention trailing-whitespace C0303
Trailing whitespace
581 35 warning redefined-outer-name W0621 ThermalZone._calc_lighting_power
Redefining name 'name' from outer scope (line 1957)
581 35 warning unused-argument W0613 ThermalZone._calc_lighting_power
Unused argument 'name'
582 8 refactor no-else-return R1705 ThermalZone._calc_lighting_power
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
660 4 convention missing-function-docstring C0116 ThermalZone.get__elements_by_type
Missing function or method docstring
660 36 warning redefined-builtin W0622 ThermalZone.get__elements_by_type
Redefining built-in 'type'
664 15 convention consider-using-f-string C0209 ThermalZone.__repr__
Formatting a regular string which could be a f-string
667 0 convention missing-class-docstring C0115 ExternalSpatialElement
Missing class docstring
667 0 warning abstract-method W0223 ExternalSpatialElement
Method 'get__elements_by_type' is abstract in class 'ThermalZone' but is not overridden in child class 'ExternalSpatialElement'
667 0 warning abstract-method W0223 ExternalSpatialElement
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'ExternalSpatialElement'
674 0 convention missing-class-docstring C0115 SpaceBoundary
Missing class docstring
674 0 refactor too-many-instance-attributes R0902 SpaceBoundary
Too many instance attributes (14/7)
688 29 warning redefined-outer-name W0621 SpaceBoundary._calc_position
Redefining name 'name' from outer scope (line 1957)
704 21 warning redefined-outer-name W0621 SpaceBoundary.pre_validate
Redefining name 'cls' from outer scope (line 1957)
712 29 warning redefined-outer-name W0621 SpaceBoundary.get_bound_area
Redefining name 'name' from outer scope (line 1957)
712 29 warning unused-argument W0613 SpaceBoundary.get_bound_area
Unused argument 'name'
725 30 warning redefined-outer-name W0621 SpaceBoundary._get_top_bottom
Redefining name 'name' from outer scope (line 1957)
725 30 warning unused-argument W0613 SpaceBoundary._get_top_bottom
Unused argument 'name'
746 8 refactor no-else-return R1705 SpaceBoundary._get_top_bottom
Unnecessary "elif" after "return", remove the leading "el" from "elif"
753 32 warning redefined-outer-name W0621 SpaceBoundary._get_bound_center
Redefining name 'name' from outer scope (line 1957)
753 32 warning unused-argument W0613 SpaceBoundary._get_bound_center
Unused argument 'name'
755 8 convention invalid-name C0103 SpaceBoundary._get_bound_center
Variable name "p" doesn't conform to snake_case naming style
759 4 refactor too-many-locals R0914 SpaceBoundary._get_related_bound
Too many local variables (16/15)
759 33 warning redefined-outer-name W0621 SpaceBoundary._get_related_bound
Redefining name 'name' from outer scope (line 1957)
759 4 refactor too-many-return-statements R0911 SpaceBoundary._get_related_bound
Too many return statements (8/6)
759 4 refactor too-many-branches R0912 SpaceBoundary._get_related_bound
Too many branches (27/12)
759 4 refactor too-many-statements R0915 SpaceBoundary._get_related_bound
Too many statements (57/50)
759 4 refactor inconsistent-return-statements R1710 SpaceBoundary._get_related_bound
Either all return statements in a function should return an expression, or none of them should.
759 33 warning unused-argument W0613 SpaceBoundary._get_related_bound
Unused argument 'name'
776 16 refactor no-else-return R1705 SpaceBoundary._get_related_bound
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
785 24 convention invalid-name C0103 SpaceBoundary._get_related_bound
Variable name "p" doesn't conform to snake_case naming style
800 8 refactor too-many-nested-blocks R1702 SpaceBoundary._get_related_bound
Too many nested blocks (6/5)
805 0 convention line-too-long C0301
Line too long (82/80)
810 24 convention invalid-name C0103 SpaceBoundary._get_related_bound
Variable name "b" doesn't conform to snake_case naming style
826 0 convention line-too-long C0301
Line too long (84/80)
827 0 convention line-too-long C0301
Line too long (88/80)
834 12 warning unused-variable W0612 SpaceBoundary._get_related_bound
Unused variable 'own_space_id'
872 37 warning redefined-outer-name W0621 SpaceBoundary._get_related_adb_bound
Redefining name 'name' from outer scope (line 1957)
872 37 warning unused-argument W0613 SpaceBoundary._get_related_adb_bound
Unused argument 'name'
890 15 refactor use-a-generator R1729 SpaceBoundary._get_related_adb_bound
Use a generator instead 'all(abs(i) < 0.001 for i in (self.bound_normal - bound.bound_normal).Coord())'
903 31 warning redefined-outer-name W0621 SpaceBoundary._get_is_physical
Redefining name 'name' from outer scope (line 1957)
903 31 warning unused-argument W0613 SpaceBoundary._get_is_physical
Unused argument 'name'
909 4 refactor too-many-locals R0914 SpaceBoundary._get_bound_shape
Too many local variables (22/15)
909 31 warning redefined-outer-name W0621 SpaceBoundary._get_bound_shape
Redefining name 'name' from outer scope (line 1957)
909 4 refactor too-many-branches R0912 SpaceBoundary._get_bound_shape
Too many branches (14/12)
909 4 refactor too-many-statements R0915 SpaceBoundary._get_bound_shape
Too many statements (66/50)
909 31 warning unused-argument W0613 SpaceBoundary._get_bound_shape
Unused argument 'name'
927 0 convention line-too-long C0301
Line too long (96/80)
927 17 warning fixme W0511
shape = remove_inner_loops(shape)  # todo: return None if not horizontal shape
930 38 warning fixme W0511
todo: remove this hotfix (generalize)
933 0 convention line-too-long C0301
Line too long (87/80)
934 0 convention line-too-long C0301
Line too long (85/80)
949 0 convention line-too-long C0301
Line too long (83/80)
952 8 warning bare-except W0702 SpaceBoundary._get_bound_shape
No exception type(s) specified
957 0 convention line-too-long C0301
Line too long (83/80)
958 0 convention line-too-long C0301
Line too long (81/80)
961 12 warning bare-except W0702 SpaceBoundary._get_bound_shape
No exception type(s) specified
962 0 convention line-too-long C0301
Line too long (96/80)
964 20 convention invalid-name C0103 SpaceBoundary._get_bound_shape
Variable name "p" doesn't conform to snake_case naming style
977 12 convention invalid-name C0103 SpaceBoundary._get_bound_shape
Variable name "lp" doesn't conform to snake_case naming style
981 13 warning fixme W0511
todo: check if x-, y-coord of "vec" also need to be transformed.
999 12 convention invalid-name C0103 SpaceBoundary._get_bound_shape
Variable name "bi" doesn't conform to snake_case naming style
1007 36 warning redefined-outer-name W0621 SpaceBoundary.get_level_description
Redefining name 'name' from outer scope (line 1957)
1007 36 warning unused-argument W0613 SpaceBoundary.get_level_description
Unused argument 'name'
1013 31 warning redefined-outer-name W0621 SpaceBoundary._get_is_external
Redefining name 'name' from outer scope (line 1957)
1013 4 refactor inconsistent-return-statements R1710 SpaceBoundary._get_is_external
Either all return statements in a function should return an expression, or none of them should.
1013 31 warning unused-argument W0613 SpaceBoundary._get_is_external
Unused argument 'name'
1019 12 refactor no-else-return R1705 SpaceBoundary._get_is_external
Unnecessary "elif" after "return", remove the leading "el" from "elif"
1027 32 warning redefined-outer-name W0621 SpaceBoundary._get_opening_area
Redefining name 'name' from outer scope (line 1957)
1027 32 warning unused-argument W0613 SpaceBoundary._get_opening_area
Unused argument 'name'
1036 34 warning redefined-outer-name W0621 SpaceBoundary._get_net_bound_area
Redefining name 'name' from outer scope (line 1957)
1036 34 warning unused-argument W0613 SpaceBoundary._get_net_bound_area
Unused argument 'name'
1083 32 warning redefined-outer-name W0621 SpaceBoundary._get_bound_normal
Redefining name 'name' from outer scope (line 1957)
1083 32 warning unused-argument W0613 SpaceBoundary._get_bound_normal
Unused argument 'name'
1096 70 convention trailing-whitespace C0303
Trailing whitespace
1096 9 warning fixme W0511
Todo this should be removed in near future. We should either 
1114 0 refactor too-many-instance-attributes R0902 ExtSpatialSpaceBoundary
Too many instance attributes (10/7)
1115 0 convention line-too-long C0301
Line too long (103/80)
1116 4 warning unnecessary-pass W0107 ExtSpatialSpaceBoundary
Unnecessary pass statement
1119 0 refactor too-many-instance-attributes R0902 SpaceBoundary2B
Too many instance attributes (14/7)
1120 0 convention line-too-long C0301
Line too long (92/80)
1123 8 refactor super-with-arguments R1725 SpaceBoundary2B.__init__
Consider using Python 3 style super() without arguments
1136 0 convention missing-class-docstring C0115 BPSProductWithLayers
Missing class docstring
1136 0 warning abstract-method W0223 BPSProductWithLayers
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'BPSProductWithLayers'
1148 26 warning redefined-outer-name W0621 BPSProductWithLayers.get_u_value
Redefining name 'name' from outer scope (line 1957)
1148 26 warning unused-argument W0613 BPSProductWithLayers.get_u_value
Unused argument 'name'
1161 38 warning redefined-outer-name W0621 BPSProductWithLayers.get_thickness_by_layers
Redefining name 'name' from outer scope (line 1957)
1161 38 warning unused-argument W0613 BPSProductWithLayers.get_thickness_by_layers
Unused argument 'name'
1171 0 warning abstract-method W0223 Wall
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Wall'
1183 9 warning fixme W0511
"IfcElementedCase": "?"  # TODO
1201 4 warning useless-parent-delegation W0246 Wall.__init__
Useless parent or super() delegation in method '__init__'
1285 21 warning redefined-outer-name W0621 Layer.pre_validate
Redefining name 'cls' from outer scope (line 1957)
1291 29 warning redefined-outer-name W0621 Layer._get_thickness
Redefining name 'name' from outer scope (line 1957)
1291 29 warning unused-argument W0613 Layer._get_thickness
Unused argument 'name'
1293 8 refactor no-else-return R1705 Layer._get_thickness
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
1325 15 convention consider-using-f-string C0209 Layer.__repr__
Formatting a regular string which could be a f-string
1329 0 warning abstract-method W0223 LayerSet
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'LayerSet'
1365 4 convention missing-function-docstring C0116 LayerSet.get_total_thickness
Missing function or method docstring
1365 34 warning redefined-outer-name W0621 LayerSet.get_total_thickness
Redefining name 'name' from outer scope (line 1957)
1365 34 warning unused-argument W0613 LayerSet.get_total_thickness
Unused argument 'name'
1371 26 warning redefined-outer-name W0621 LayerSet._get_volume
Redefining name 'name' from outer scope (line 1957)
1373 12 refactor no-else-return R1705 LayerSet._get_volume
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
1376 13 warning fixme W0511
TODO This is not working currently, because with multiple parents
1382 9 warning fixme W0511
TODO see above
1405 8 refactor no-else-return R1705 LayerSet.__repr__
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
1406 19 convention consider-using-f-string C0209 LayerSet.__repr__
Formatting a regular string which could be a f-string
1409 0 convention line-too-long C0301
Line too long (84/80)
1409 19 convention consider-using-f-string C0209 LayerSet.__repr__
Formatting a regular string which could be a f-string
1412 0 convention missing-class-docstring C0115 OuterWall
Missing class docstring
1412 0 warning abstract-method W0223 OuterWall
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'OuterWall'
1423 8 refactor no-else-return R1705 OuterWall.calc_cost_group
Unnecessary "elif" after "return", remove the leading "el" from "elif"
1431 0 warning abstract-method W0223 InnerWall
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'InnerWall'
1443 8 refactor no-else-return R1705 InnerWall.calc_cost_group
Unnecessary "elif" after "return", remove the leading "el" from "elif"
1451 0 convention missing-class-docstring C0115 Window
Missing class docstring
1451 0 warning abstract-method W0223 Window
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Window'
1459 31 warning redefined-outer-name W0621 Window.get_glazing_area
Redefining name 'name' from outer scope (line 1957)
1459 31 warning unused-argument W0613 Window.get_glazing_area
Unused argument 'name'
1528 0 convention missing-class-docstring C0115 Door
Missing class docstring
1528 0 warning abstract-method W0223 Door
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Door'
1546 4 convention missing-function-docstring C0116 Door.get_net_area
Missing function or method docstring
1546 27 warning redefined-outer-name W0621 Door.get_net_area
Redefining name 'name' from outer scope (line 1957)
1546 27 warning unused-argument W0613 Door.get_net_area
Unused argument 'name'
1595 0 convention missing-class-docstring C0115 InnerDoor
Missing class docstring
1595 0 warning abstract-method W0223 InnerDoor
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'InnerDoor'
1607 0 convention missing-class-docstring C0115 OuterDoor
Missing class docstring
1607 0 warning abstract-method W0223 OuterDoor
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'OuterDoor'
1619 0 convention missing-class-docstring C0115 Slab
Missing class docstring
1619 0 warning abstract-method W0223 Slab
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Slab'
1624 4 warning useless-parent-delegation W0246 Slab.__init__
Useless parent or super() delegation in method '__init__'
1628 39 warning redefined-outer-name W0621 Slab._calc_teaser_orientation
Redefining name 'name' from outer scope (line 1957)
1666 0 convention missing-class-docstring C0115 Roof
Missing class docstring
1666 0 warning abstract-method W0223 Roof
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Roof'
1667 5 warning fixme W0511
todo decomposed roofs dont have materials, layers etc. because these
1686 8 refactor no-else-return R1705 Roof.calc_cost_group
Unnecessary "elif" after "return", remove the leading "el" from "elif"
1694 0 warning abstract-method W0223 InnerFloor
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'InnerFloor'
1712 0 convention missing-class-docstring C0115 GroundFloor
Missing class docstring
1712 0 warning abstract-method W0223 GroundFloor
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'GroundFloor'
1713 5 warning fixme W0511
is_external = True  # todo to be removed
1718 39 warning redefined-outer-name W0621 GroundFloor._calc_teaser_orientation
Redefining name 'name' from outer scope (line 1957)
1737 0 convention missing-class-docstring C0115 Site
Missing class docstring
1737 0 warning abstract-method W0223 Site
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Site'
1743 5 warning fixme W0511
todo move this to base elements as this relevant for other domains as well
1760 0 convention missing-class-docstring C0115 Building
Missing class docstring
1760 0 warning abstract-method W0223 Building
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Building'
1777 33 warning redefined-outer-name W0621 Building._get_building_name
Redefining name 'name' from outer scope (line 1957)
1777 33 warning unused-argument W0613 Building._get_building_name
Unused argument 'name'
1780 8 refactor no-else-return R1705 Building._get_building_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
1783 13 warning fixme W0511
todo needs to be adjusted for multiple buildings #165
1787 37 warning redefined-outer-name W0621 Building._get_number_of_storeys
Redefining name 'name' from outer scope (line 1957)
1787 37 warning unused-argument W0613 Building._get_number_of_storeys
Unused argument 'name'
1790 37 warning redefined-outer-name W0621 Building._get_avg_storey_height
Redefining name 'name' from outer scope (line 1957)
1790 37 warning unused-argument W0613 Building._get_avg_storey_height
Unused argument 'name'
1810 28 warning redefined-outer-name W0621 Building._check_tz_ahu
Redefining name 'name' from outer scope (line 1957)
1810 28 warning unused-argument W0613 Building._check_tz_ahu
Unused argument 'name'
1813 12 convention invalid-name C0103 Building._check_tz_ahu
Variable name "tz" doesn't conform to snake_case naming style
1880 0 convention missing-class-docstring C0115 Storey
Missing class docstring
1880 0 warning abstract-method W0223 Storey
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Storey'
1926 5 warning fixme W0511
todo make the lookup for height hierarchical
1943 0 warning abstract-method W0223 SpaceBoundaryRepresentation
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'SpaceBoundaryRepresentation'

Module bim2sim.elements.graphs.hvac_graph (bim2sim/elements/graphs/hvac_graph.py)

Line Col. Type Symbol ID Obj Message
11 0 warning unused-import W0611
Unused List imported from typing
15 0 error no-name-in-module E0611
No name 'json_graph' in module 'networkx'
22 0 refactor too-many-public-methods R0904 HvacGraph
Too many public methods (24/20)
24 5 warning fixme W0511
TODO 246 HvacGraph init should only be called one based on IFC as it works
79 4 convention missing-function-docstring C0116 HvacGraph.get_not_contracted_neighbors
Missing function or method docstring
114 5 warning fixme W0511
TODO #246 delete because not needed anymore
148 13 warning fixme W0511
TODO more efficient
188 4 refactor too-many-locals R0914 HvacGraph.plot
Too many local variables (28/15)
188 4 refactor too-many-branches R0912 HvacGraph.plot
Too many branches (35/12)
188 4 refactor too-many-statements R0915 HvacGraph.plot
Too many statements (107/50)
201 8 convention import-outside-toplevel C0415 HvacGraph.plot
Import outside toplevel (matplotlib.pyplot)
202 8 error import-error E0401 HvacGraph.plot
Unable to import 'pyvis.network'
202 8 convention import-outside-toplevel C0415 HvacGraph.plot
Import outside toplevel (pyvis.network.Network)
206 15 refactor use-dict-literal R1735 HvacGraph.plot
Consider using '{"edge_color": 'red'}' instead of a call to 'dict'.
207 16 refactor use-dict-literal R1735 HvacGraph.plot
Consider using '{"edge_color": 'blue'}' instead of a call to 'dict'.
208 15 refactor use-dict-literal R1735 HvacGraph.plot
Consider using '{"edge_color": 'grey'}' instead of a call to 'dict'.
209 18 refactor use-dict-literal R1735 HvacGraph.plot
Consider using '{"edge_color": 'grey'}' instead of a call to 'dict'.
212 15 refactor use-dict-literal R1735 HvacGraph.plot
Consider using '{"node_color": 'white', "edgecolors": 'blue'}' instead of a call to 'dict'.
213 16 refactor use-dict-literal R1735 HvacGraph.plot
Consider using '{"node_color": 'blue', "edgecolors": 'black'}' instead of a call to 'dict'.
214 15 refactor use-dict-literal R1735 HvacGraph.plot
Consider using '{"node_color": 'grey', "edgecolors": 'black'}' instead of a call to 'dict'.
215 18 refactor use-dict-literal R1735 HvacGraph.plot
Consider using '{"node_color": 'grey', "edgecolors": 'black'}' instead of a call to 'dict'.
257 13 warning fixme W0511
Todo Remove temp code. This is for Abschlussbericht Plotting only!
287 12 convention invalid-name C0103 HvacGraph.plot
Variable name "f" doesn't conform to snake_case naming style
287 16 warning unspecified-encoding W1514 HvacGraph.plot
Using open without explicitly specifying an encoding
287 16 refactor consider-using-with R1732 HvacGraph.plot
Consider using 'with' for resource-allocating operations
294 16 warning bare-except W0702 HvacGraph.plot
No exception type(s) specified
309 19 refactor use-a-generator R1729 HvacGraph.plot
Use a generator instead 'any(ele in node['label'].lower() for ele in ['parallelpump', 'boiler', 'generatoronefluid', 'heatpump'])'
331 23 convention consider-using-f-string C0209 HvacGraph.plot
Formatting a regular string which could be a f-string
335 23 warning broad-exception-caught W0718 HvacGraph.plot
Catching too general exception Exception
338 23 convention consider-using-f-string C0209 HvacGraph.plot
Formatting a regular string which could be a f-string
350 23 warning broad-exception-caught W0718 HvacGraph.plot
Catching too general exception Exception
371 13 warning unspecified-encoding W1514 HvacGraph.dump_to_cytoscape_json
Using open without explicitly specifying an encoding
371 39 convention invalid-name C0103 HvacGraph.dump_to_cytoscape_json
Variable name "fp" doesn't conform to snake_case naming style
446 27 convention unidiomatic-typecheck C0123 HvacGraph.find_bypasses_in_cycle
Use isinstance() rather than type() for a typecheck.
454 9 warning fixme W0511
todo how to handle cascaded boilers
490 9 warning fixme W0511
todo currently not working, this might be reused later
492 8 warning unreachable W0101 HvacGraph.detect_bypasses_to_wanted
Unreachable code
498 33 convention unidiomatic-typecheck C0123 HvacGraph.detect_bypasses_to_wanted
Use isinstance() rather than type() for a typecheck.
501 12 error no-member E1101 HvacGraph.detect_bypasses_to_wanted
Instance of 'dict' has no 'remove' member
514 27 convention unidiomatic-typecheck C0123 HvacGraph.detect_bypasses_to_wanted
Use isinstance() rather than type() for a typecheck.
528 4 refactor too-many-locals R0914 HvacGraph.get_parallels
Too many local variables (30/15)
528 4 refactor too-many-branches R0912 HvacGraph.get_parallels
Too many branches (16/12)
528 4 refactor too-many-statements R0915 HvacGraph.get_parallels
Too many statements (58/50)
558 45 refactor unnecessary-comprehension R1721 HvacGraph.get_parallels
Unnecessary use of a comprehension, use list(bypass) instead.
625 16 refactor no-else-continue R1724 HvacGraph.get_parallels.group_parallels
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it
672 12 refactor no-else-raise R1720 HvacGraph.recurse_set_side
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
673 37 convention consider-using-f-string C0209 HvacGraph.recurse_set_side
Formatting a regular string which could be a f-string
720 27 error invalid-unary-operand-type E1130 HvacGraph.recurse_set_unknown_sides
bad operand type for unary -: NoneType
727 8 refactor no-else-return R1705 HvacGraph.recurse_set_unknown_sides
Unnecessary "elif" after "return", remove the leading "el" from "elif"
793 16 refactor no-else-break R1723 HvacGraph.get_path_without_junctions
Unnecessary "else" after "break", remove the "else" and de-indent the code inside it
803 4 warning dangerous-default-value W0102 HvacGraph.get_connections_between
Dangerous default value set() (builtins.set) as argument
843 12 warning raising-format-tuple W0715 HvacGraph.subgraph_from_elements
Exception arguments suggest string formatting might be intended

Module bim2sim.elements.hvac_elements (bim2sim/elements/hvac_elements.py)

Line Col. Type Symbol ID Obj Message
1 0 convention too-many-lines C0302
Too many lines in module (1381/1000)
23 0 convention missing-function-docstring C0116 diameter_post_processing
Missing function or method docstring
29 0 convention missing-function-docstring C0116 length_post_processing
Missing function or method docstring
38 45 warning fixme W0511
TODO: extend pattern
53 17 warning redefined-outer-name W0621 HVACPort.ifc2args
Redefining name 'cls' from outer scope (line 1375)
69 29 warning redefined-outer-name W0621 HVACPort._calc_position
Redefining name 'name' from outer scope (line 1375)
86 0 convention line-too-long C0301
Line too long (81/80)
93 21 warning redefined-outer-name W0621 HVACPort.pre_validate
Redefining name 'cls' from outer scope (line 1375)
158 16 warning logging-not-lazy W1201 HVACPort.flow_side
Use lazy % formatting in logging functions
158 28 convention consider-using-f-string C0209 HVACPort.flow_side
Formatting a regular string which could be a f-string
161 12 warning logging-not-lazy W1201 HVACPort.flow_side
Use lazy % formatting in logging functions
162 16 convention consider-using-f-string C0209 HVACPort.flow_side
Formatting a regular string which could be a f-string
165 4 convention missing-function-docstring C0116 HVACPort.verbose_flow_side
Missing function or method docstring
173 0 convention line-too-long C0301
Line too long (95/80)
174 8 convention invalid-name C0103 HVACPort.determine_flow_side
Variable name "vl" doesn't conform to snake_case naming style
175 8 convention invalid-name C0103 HVACPort.determine_flow_side
Variable name "rl" doesn't conform to snake_case naming style
178 16 convention invalid-name C0103 HVACPort.determine_flow_side
Variable name "vl" doesn't conform to snake_case naming style
180 16 convention invalid-name C0103 HVACPort.determine_flow_side
Variable name "rl" doesn't conform to snake_case naming style
183 16 convention invalid-name C0103 HVACPort.determine_flow_side
Variable name "rl" doesn't conform to snake_case naming style
185 16 convention invalid-name C0103 HVACPort.determine_flow_side
Variable name "vl" doesn't conform to snake_case naming style
187 12 convention invalid-name C0103 HVACPort.determine_flow_side
Variable name "vl" doesn't conform to snake_case naming style
189 12 convention invalid-name C0103 HVACPort.determine_flow_side
Variable name "rl" doesn't conform to snake_case naming style
198 0 convention missing-class-docstring C0115 HVACProduct
Missing class docstring
207 4 convention missing-function-docstring C0116 HVACProduct.expected_hvac_ports
Missing function or method docstring
246 4 refactor too-many-locals R0914 HVACProduct.decide_inner_connections
Too many local variables (16/15)
253 9 warning fixme W0511
TODO: extend pattern
302 8 convention invalid-name C0103 HVACProduct.decide_inner_connections
Variable name "vl" doesn't conform to snake_case naming style
303 8 convention invalid-name C0103 HVACProduct.decide_inner_connections
Variable name "rl" doesn't conform to snake_case naming style
319 4 convention missing-function-docstring C0116 HVACProduct.is_generator
Missing function or method docstring
322 4 convention missing-function-docstring C0116 HVACProduct.is_consumer
Missing function or method docstring
330 15 convention consider-using-f-string C0209 HVACProduct.__repr__
Formatting a regular string which could be a f-string
334 0 warning abstract-method W0223 HeatPump
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'HeatPump'
386 0 warning abstract-method W0223 Chiller
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Chiller'
455 0 warning abstract-method W0223 CoolingTower
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'CoolingTower'
492 0 warning abstract-method W0223 HeatExchanger
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'HeatExchanger'
522 0 warning abstract-method W0223 Boiler
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Boiler'
541 9 warning fixme W0511
TODO see #167
542 8 refactor no-else-return R1705 Boiler.get_inner_connections
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
591 43 warning redefined-outer-name W0621 Boiler._get_minimal_part_load_ratio
Redefining name 'name' from outer scope (line 1375)
591 4 refactor inconsistent-return-statements R1710 Boiler._get_minimal_part_load_ratio
Either all return statements in a function should return an expression, or none of them should.
591 43 warning unused-argument W0613 Boiler._get_minimal_part_load_ratio
Unused argument 'name'
593 9 warning fixme W0511
TODO this is not tested yet but should work with the new BoundedValue
598 4 refactor inconsistent-return-statements R1710 Boiler._normalise_value_zero_to_one
Either all return statements in a function should return an expression, or none of them should.
606 0 convention line-too-long C0301
Line too long (81/80)
606 9 warning fixme W0511
TODO use ifc_post_processing to make sure that ranged value are between
612 39 warning redefined-outer-name W0621 Boiler._calc_nominal_efficiency
Redefining name 'name' from outer scope (line 1375)
612 39 warning unused-argument W0613 Boiler._calc_nominal_efficiency
Unused argument 'name'
619 12 refactor no-else-return R1705 Boiler._calc_nominal_efficiency
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
622 17 warning fixme W0511
ToDo: linear regression
634 32 warning redefined-outer-name W0621 Boiler._calc_rated_power
Redefining name 'name' from outer scope (line 1375)
634 32 warning unused-argument W0613 Boiler._calc_rated_power
Unused argument 'name'
645 44 warning redefined-outer-name W0621 Boiler._calc_partial_load_efficiency
Redefining name 'name' from outer scope (line 1375)
645 44 warning unused-argument W0613 Boiler._calc_partial_load_efficiency
Unused argument 'name'
652 12 refactor no-else-return R1705 Boiler._calc_partial_load_efficiency
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
655 17 warning fixme W0511
ToDo: linear regression
668 30 warning redefined-outer-name W0621 Boiler._calc_min_power
Redefining name 'name' from outer scope (line 1375)
668 30 warning unused-argument W0613 Boiler._calc_min_power
Unused argument 'name'
679 4 convention invalid-name C0103 Boiler._calc_min_PLR
Method name "_calc_min_PLR" doesn't conform to snake_case naming style
679 28 warning redefined-outer-name W0621 Boiler._calc_min_PLR
Redefining name 'name' from outer scope (line 1375)
679 28 warning unused-argument W0613 Boiler._calc_min_PLR
Unused argument 'name'
700 4 convention invalid-name C0103 Boiler._calc_dT_water
Method name "_calc_dT_water" doesn't conform to snake_case naming style
700 29 warning redefined-outer-name W0621 Boiler._calc_dT_water
Redefining name 'name' from outer scope (line 1375)
700 29 warning unused-argument W0613 Boiler._calc_dT_water
Unused argument 'name'
712 0 convention missing-class-docstring C0115 Pipe
Missing class docstring
712 0 warning abstract-method W0223 Pipe
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Pipe'
725 61 warning fixme W0511
ToDo: unit?!
728 41 warning redefined-outer-name W0621 Pipe._calc_diameter_from_radius
Redefining name 'name' from outer scope (line 1375)
728 41 warning unused-argument W0613 Pipe._calc_diameter_from_radius
Unused argument 'name'
729 8 refactor no-else-return R1705 Pipe._calc_diameter_from_radius
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
744 5 warning fixme W0511
TODO #432 implement function to get diamter from shape
765 36 warning redefined-outer-name W0621 Pipe._length_from_geometry
Redefining name 'name' from outer scope (line 1375)
765 36 warning unused-argument W0613 Pipe._length_from_geometry
Unused argument 'name'
806 12 warning raise-missing-from W0707 Pipe.get_lenght_from_shape
Consider explicitly re-raising using 'except Exception as exc' and 'raise AttributeError('Failed to determine length.') from exc'
811 0 convention line-too-long C0301
Line too long (81/80)
811 16 convention consider-using-f-string C0209 Pipe.get_lenght_from_shape
Formatting a regular string which could be a f-string
816 0 convention missing-class-docstring C0115 PipeFitting
Missing class docstring
816 0 warning abstract-method W0223 PipeFitting
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'PipeFitting'
845 5 warning fixme W0511
TODO #432 implement function to get diamter from shape
882 4 refactor inconsistent-return-statements R1710 PipeFitting.get_better_subclass
Either all return statements in a function should return an expression, or none of them should.
887 0 convention missing-class-docstring C0115 Junction
Missing class docstring
887 0 warning abstract-method W0223 Junction
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Junction'
908 0 convention missing-class-docstring C0115 SpaceHeater
Missing class docstring
908 0 warning abstract-method W0223 SpaceHeater
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'SpaceHeater'
990 4 convention invalid-name C0103 SpaceHeater._calc_dT_water
Method name "_calc_dT_water" doesn't conform to snake_case naming style
990 29 warning redefined-outer-name W0621 SpaceHeater._calc_dT_water
Redefining name 'name' from outer scope (line 1375)
990 29 warning unused-argument W0613 SpaceHeater._calc_dT_water
Unused argument 'name'
1002 0 convention missing-class-docstring C0115 ExpansionTank
Missing class docstring
1002 0 warning abstract-method W0223 ExpansionTank
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'ExpansionTank'
1017 0 convention missing-class-docstring C0115 Storage
Missing class docstring
1017 0 warning abstract-method W0223 Storage
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Storage'
1039 27 warning redefined-outer-name W0621 Storage._calc_volume
Redefining name 'name' from outer scope (line 1375)
1039 27 warning unused-argument W0613 Storage._calc_volume
Unused argument 'name'
1078 0 convention missing-class-docstring C0115 Distributor
Missing class docstring
1078 0 warning abstract-method W0223 Distributor
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Distributor'
1086 5 warning fixme W0511
TODO why is pipefitting for DH found as Pipefitting and not distributor
1113 0 convention missing-class-docstring C0115 Pump
Missing class docstring
1113 0 warning abstract-method W0223 Pump
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Pump'
1141 32 warning redefined-outer-name W0621 Pump._calc_rated_power
Redefining name 'name' from outer scope (line 1375)
1141 32 warning unused-argument W0613 Pump._calc_rated_power
Unused argument 'name'
1144 8 refactor no-else-return R1705 Pump._calc_rated_power
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
1190 0 convention missing-class-docstring C0115 Valve
Missing class docstring
1190 0 warning abstract-method W0223 Valve
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Valve'
1258 0 convention missing-class-docstring C0115 ThreeWayValve
Missing class docstring
1258 0 warning abstract-method W0223 ThreeWayValve
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'ThreeWayValve'
1273 0 convention missing-class-docstring C0115 Duct
Missing class docstring
1273 0 warning abstract-method W0223 Duct
Method 'expected_hvac_ports' is abstract in class 'HVACProduct' but is not overridden in child class 'Duct'
1273 0 warning abstract-method W0223 Duct
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Duct'
1290 0 convention missing-class-docstring C0115 DuctFitting
Missing class docstring
1290 0 warning abstract-method W0223 DuctFitting
Method 'expected_hvac_ports' is abstract in class 'HVACProduct' but is not overridden in child class 'DuctFitting'
1290 0 warning abstract-method W0223 DuctFitting
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'DuctFitting'
1311 0 convention missing-class-docstring C0115 AirTerminal
Missing class docstring
1311 0 warning abstract-method W0223 AirTerminal
Method 'expected_hvac_ports' is abstract in class 'HVACProduct' but is not overridden in child class 'AirTerminal'
1311 0 warning abstract-method W0223 AirTerminal
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'AirTerminal'
1327 0 convention missing-class-docstring C0115 Medium
Missing class docstring
1327 0 warning abstract-method W0223 Medium
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'Medium'
1339 0 convention missing-class-docstring C0115 CHP
Missing class docstring
1339 0 warning abstract-method W0223 CHP
Method 'pre_validate' is abstract in class 'IFCBased' but is not overridden in child class 'CHP'

Module bim2sim.elements.mapping.attribute (bim2sim/elements/mapping/attribute.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
23 12 refactor redefined-argument-from-local R1704 AutoAttributeNameMeta.__init__
Redefining argument with the local name 'name'
34 0 refactor too-many-instance-attributes R0902 Attribute
Too many instance attributes (13/7)
54 4 refactor too-many-arguments R0913 Attribute.__init__
Too many arguments (12/5)
112 9 warning fixme W0511
TODO argument for validation function
125 4 refactor too-many-branches R0912 Attribute._get_value
Too many branches (21/12)
195 20 warning logging-fstring-interpolation W1203 Attribute._get_value
Use lazy % formatting in logging functions
202 16 warning logging-fstring-interpolation W1203 Attribute._get_value
Use lazy % formatting in logging functions
204 9 warning fixme W0511
todo validation of attributes on creation time makes accept_valids
218 15 warning broad-exception-caught W0718 Attribute.get_from_default_propertyset
Catching too general exception Exception
223 4 convention missing-function-docstring C0116 Attribute.get_from_finder
Missing function or method docstring
256 19 warning broad-exception-caught W0718 Attribute.get_from_functions
Catching too general exception Exception
259 16 warning unnecessary-pass W0107 Attribute.get_from_functions
Unnecessary pass statement
285 9 warning fixme W0511
TODO: set state in output dict -> attributemanager
289 29 convention consider-using-f-string C0209 Attribute.create_decision
Formatting a regular string which could be a f-string
292 21 convention consider-using-f-string C0209 Attribute.create_decision
Formatting a regular string which could be a f-string
304 23 convention consider-using-f-string C0209 Attribute.create_decision
Formatting a regular string which could be a f-string
314 23 convention consider-using-f-string C0209 Attribute.create_decision
Formatting a regular string which could be a f-string
355 4 error method-hidden E0202 Attribute.ifc_post_processing
An attribute defined in bim2sim.elements.mapping.attribute line 110 hides this method
362 4 refactor inconsistent-return-statements R1710 Attribute.request
Either all return statements in a function should return an expression, or none of them should.
398 16 warning logging-fstring-interpolation W1203 Attribute.get_dependency_decisions
Use lazy % formatting in logging functions
498 4 convention missing-function-docstring C0116 Attribute.initialize
Missing function or method docstring
509 9 warning fixme W0511
TODO: validate
576 15 convention consider-using-f-string C0209 Attribute.__str__
Formatting a regular string which could be a f-string
598 33 convention consider-using-f-string C0209 AttributeManager.__setitem__
Formatting a regular string which could be a f-string
606 20 warning raise-missing-from W0707 AttributeManager.__setitem__
Consider explicitly re-raising using 'except AttributeError as exc' and 'raise ValueError(f'Non valid DataSource provided for attribute {name} of element {self.bind}') from exc'
616 0 convention line-too-long C0301
Line too long (81/80)
623 15 convention invalid-name C0103 AttributeManager.update
Variable name "v" doesn't conform to snake_case naming style
624 12 convention unnecessary-dunder-call C2801 AttributeManager.update
Unnecessarily calls dunder method __setitem__. Set item via subscript.
628 9 warning fixme W0511
TODO this has limitations when the corresponding attribute uses
633 12 warning raise-missing-from W0707 AttributeManager.reset
Consider explicitly re-raising using 'except KeyError as exc' and 'raise KeyError("%s has no Attribute '%s'" % (self.bind, name)) from exc'
633 27 convention consider-using-f-string C0209 AttributeManager.reset
Formatting a regular string which could be a f-string
636 4 refactor inconsistent-return-statements R1710 AttributeManager.request
Either all return statements in a function should return an expression, or none of them should.
652 12 warning raise-missing-from W0707 AttributeManager.request
Consider explicitly re-raising using 'except KeyError as exc' and 'raise KeyError("%s has no Attribute '%s'" % (self.bind, name)) from exc'
652 27 convention consider-using-f-string C0209 AttributeManager.request
Formatting a regular string which could be a f-string
653 23 warning unused-variable W0612 AttributeManager.request
Unused variable 'data_source'
676 4 convention missing-function-docstring C0116 AttributeManager.get_attribute
Missing function or method docstring
679 4 convention missing-function-docstring C0116 AttributeManager.get_unit
Missing function or method docstring
693 25 warning unused-variable W0612 AttributeManager.get_decisions
Unused variable 'data_source'

Module bim2sim.elements.mapping.condition (bim2sim/elements/mapping/condition.py)

Line Col. Type Symbol ID Obj Message
23 4 convention missing-function-docstring C0116 Condition.check
Missing function or method docstring
41 4 refactor too-many-arguments R0913 RangeCondition.__init__
Too many arguments (6/5)
45 8 convention invalid-name C0103 RangeCondition.__init__
Attribute name "valueMin" doesn't conform to snake_case naming style
46 8 convention invalid-name C0103 RangeCondition.__init__
Attribute name "valueMax" doesn't conform to snake_case naming style
56 12 convention invalid-name C0103 RangeCondition.check
Variable name "v" doesn't conform to snake_case naming style
58 34 refactor simplifiable-if-expression R1719 RangeCondition.check
The if expression can be replaced with 'not test'
61 34 refactor simplifiable-if-expression R1719 RangeCondition.check
The if expression can be replaced with 'not test'
82 8 convention invalid-name C0103 ListCondition.__init__
Attribute name "listLength" doesn't conform to snake_case naming style
86 11 convention unidiomatic-typecheck C0123 ListCondition.check
Use isinstance() rather than type() for a typecheck.
88 8 refactor no-else-return R1705 ListCondition.check
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
89 19 refactor simplifiable-if-expression R1719 ListCondition.check
The if expression can be replaced with 'test'
91 19 refactor simplifiable-if-expression R1719 ListCondition.check
The if expression can be replaced with 'test'
94 0 convention missing-class-docstring C0115 ThicknessCondition
Missing class docstring
110 19 refactor simplifiable-if-expression R1719 ThicknessCondition.check
The if expression can be replaced with 'test'
112 15 refactor simplifiable-if-expression R1719 ThicknessCondition.check
The if expression can be replaced with 'test'
115 0 convention missing-class-docstring C0115 UValueCondition
Missing class docstring
131 19 refactor simplifiable-if-expression R1719 UValueCondition.check
The if expression can be replaced with 'test'
133 15 refactor simplifiable-if-expression R1719 UValueCondition.check
The if expression can be replaced with 'test'
136 4 convention missing-function-docstring C0116 UValueCondition.get_u_value_from_layers
Missing function or method docstring

Module bim2sim.elements.mapping.filter (bim2sim/elements/mapping/filter.py)

Line Col. Type Symbol ID Obj Message
26 15 convention consider-using-f-string C0209 Filter.__repr__
Formatting a regular string which could be a f-string
37 8 warning redefined-builtin W0622 TypeFilter.matches
Redefining built-in '__doc__'
37 8 warning unused-variable W0612 TypeFilter.matches
Unused variable '__doc__'
38 51 warning fixme W0511
TODO: string based
40 4 warning arguments-differ W0221 TypeFilter.run
Number of parameters was 1 in 'Filter.run' and is now 2 in overriding 'TypeFilter.run' method
43 0 convention line-too-long C0301
Line too long (86/80)
43 0 convention line-too-long C0301
Line too long (86/80)
71 0 convention line-too-long C0301
Line too long (86/80)
82 8 warning redefined-builtin W0622 TextFilter.matches
Redefining built-in '__doc__'
82 8 warning unused-variable W0612 TextFilter.matches
Unused variable '__doc__'
84 8 warning unreachable W0101 TextFilter.matches
Unreachable code
84 8 refactor no-else-return R1705 TextFilter.matches
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
89 0 convention line-too-long C0301
Line too long (88/80)
93 4 warning arguments-differ W0221 TextFilter.run
Number of parameters was 1 in 'Filter.run' and is now 2 in overriding 'TextFilter.run' method
94 8 warning redefined-builtin W0622 TextFilter.run
Redefining built-in '__doc__'
94 8 warning unused-variable W0612 TextFilter.run
Unused variable '__doc__'
111 8 warning unreachable W0101 TextFilter.run
Unreachable code
112 31 error undefined-variable E0602 TextFilter.run
Undefined variable 'source_ifc_elements'
113 16 error undefined-variable E0602 TextFilter.run
Undefined variable 'source_ifc_elements'
113 48 error undefined-variable E0602 TextFilter.run
Undefined variable 'ifc'
116 42 error undefined-variable E0602 TextFilter.run
Undefined variable 'source_ifc_elements'
118 0 convention line-too-long C0301
Line too long (167/80)
118 66 warning protected-access W0212 TextFilter.run
Access to a protected member _ifc_classes of a client class
118 66 error undefined-variable E0602 TextFilter.run
Undefined variable 'Element'
122 35 error undefined-variable E0602 TextFilter.run
Undefined variable 'source_ifc_elements'
123 0 convention line-too-long C0301
Line too long (167/80)
123 66 warning protected-access W0212 TextFilter.run
Access to a protected member _ifc_classes of a client class
123 66 error undefined-variable E0602 TextFilter.run
Undefined variable 'Element'
125 15 error undefined-variable E0602 TextFilter.run
Undefined variable 'source_ifc_elements'
128 0 warning abstract-method W0223 GeometricFilter
Method 'run' is abstract in class 'Filter' but is not overridden in child class 'GeometricFilter'
131 22 convention trailing-whitespace C0303
Trailing whitespace
131 4 refactor too-many-arguments R0913 GeometricFilter.__init__
Too many arguments (7/5)
132 53 convention trailing-whitespace C0303
Trailing whitespace
133 53 convention trailing-whitespace C0303
Trailing whitespace
138 0 convention line-too-long C0301
Line too long (94/80)
138 15 refactor use-a-generator R1729 GeometricFilter.__init__
Use a generator instead 'any(not lim is None for lim in [x_min, x_max, y_min, y_max, z_min, z_max])'
155 8 warning redefined-builtin W0622 GeometricFilter.matches
Redefining built-in '__doc__'
155 8 warning unused-variable W0612 GeometricFilter.matches
Unused variable '__doc__'
156 44 warning fixme W0511
TODO
162 4 warning super-init-not-called W0231 ZoneFilter.__init__
__init__ method from base class 'GeometricFilter' is not called
163 44 warning fixme W0511
TODO

Module bim2sim.elements.mapping.finder (bim2sim/elements/mapping/finder.py)

Line Col. Type Symbol ID Obj Message
28 0 convention missing-class-docstring C0115 Finder
Missing class docstring
30 4 convention missing-function-docstring C0116 Finder.find
Missing function or method docstring
100 41 warning redefined-outer-name W0621 TemplateFinder.save
Redefining name 'file' from outer scope (line 14)
100 17 warning unspecified-encoding W1514 TemplateFinder.save
Using open without explicitly specifying an encoding
103 4 refactor too-many-arguments R0913 TemplateFinder.set
Too many arguments (6/5)
138 12 warning raise-missing-from W0707 TemplateFinder.find
Consider explicitly re-raising using 'except KeyError as exc' and 'raise AttributeError('%s does not know where to look for %s' % (self.__class__.__name__, (key1, key2, key3, key4))) from exc'
138 33 convention consider-using-f-string C0209 TemplateFinder.find
Formatting a regular string which could be a f-string
155 12 warning raise-missing-from W0707 TemplateFinder.find
Consider explicitly re-raising using 'except AttributeError as exc' and 'raise AttributeError("Can't find property as defined by template.") from exc'
157 4 refactor too-many-branches R0912 TemplateFinder._set_templates_by_tools
Too many branches (13/12)
172 12 warning logging-fstring-interpolation W1203 TemplateFinder._set_templates_by_tools
Use lazy % formatting in logging functions
182 16 warning logging-fstring-interpolation W1203 TemplateFinder._set_templates_by_tools
Use lazy % formatting in logging functions
208 27 warning logging-format-interpolation W1202 TemplateFinder._set_templates_by_tools
Use lazy % formatting in logging functions
208 27 convention consider-using-f-string C0209 TemplateFinder._set_templates_by_tools
Formatting a regular string which could be a f-string
224 12 refactor no-else-return R1705 TemplateFinder._set_templates_by_tools
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
231 8 warning logging-fstring-interpolation W1203 TemplateFinder._set_templates_by_tools
Use lazy % formatting in logging functions
278 16 warning logging-fstring-interpolation W1203 TemplateFinder.initialize
Use lazy % formatting in logging functions
283 12 warning logging-fstring-interpolation W1203 TemplateFinder.initialize
Use lazy % formatting in logging functions
347 4 convention missing-function-docstring C0116 TemplateFinder.disable
Missing function or method docstring
354 0 convention missing-class-docstring C0115 SourceTool
Missing class docstring
354 0 refactor too-few-public-methods R0903 SourceTool
Too few public methods (1/2)
372 15 convention consider-using-f-string C0209 SourceTool.__repr__
Formatting a regular string which could be a f-string

Module bim2sim.elements.mapping.ifc2python (bim2sim/elements/mapping/ifc2python.py)

Line Col. Type Symbol ID Obj Message
10 0 warning unused-import W0611
Unused import ifcopenshell
12 0 convention wrong-import-order C0411
standard import "from pathlib import Path" should be placed before "import ifcopenshell"
33 4 warning redefined-outer-name W0621 load_ifc
Redefining name 'logger' from outer scope (line 20)
38 12 warning raise-missing-from W0707 load_ifc
Consider explicitly re-raising using 'except Exception as exc' and 'raise ValueError(f"Can't convert given path {path} to pathlib object") from exc'
40 4 warning logging-fstring-interpolation W1203 load_ifc
Use lazy % formatting in logging functions
42 22 convention consider-using-f-string C0209 load_ifc
Formatting a regular string which could be a f-string
46 8 warning logging-fstring-interpolation W1203 load_ifc
Use lazy % formatting in logging functions
47 8 warning raise-missing-from W0707 load_ifc
Consider explicitly re-raising using 'raise RuntimeError('bim2sim canceled due to invalid IFC schema') from ex'
51 0 convention missing-function-docstring C0116 reset_guids
Missing function or method docstring
58 0 refactor too-many-branches R0912 property_set2dict
Too many branches (20/12)
58 0 refactor too-many-statements R0915 property_set2dict
Too many statements (105/50)
100 4 refactor too-many-branches R0912 property_set2dict.add_property_to_dict
Too many branches (21/12)
100 4 refactor too-many-statements R0915 property_set2dict.add_property_to_dict
Too many statements (51/50)
125 13 warning fixme W0511
TODO: Currently, we have no IFC with IfcPropertyBoundedValue.
160 31 refactor unnecessary-comprehension R1721 property_set2dict.add_property_to_dict
Unnecessary use of a comprehension, use list(row.RowCells) instead.
163 32 warning protected-access W0212 property_set2dict.add_property_to_dict
Access to a protected member _append of a client class
166 17 warning fixme W0511
TODO
170 20 convention consider-using-f-string C0209 property_set2dict.add_property_to_dict
Formatting a regular string which could be a f-string
180 20 warning redefined-builtin W0622 property_set2dict
Redefining built-in 'property'
201 0 convention line-too-long C0301
Line too long (84/80)
217 17 warning fixme W0511
TODO: Currently, we have no IFC with IfcPropertyBoundedValue.
233 0 convention line-too-long C0301
Line too long (83/80)
233 5 warning fixme W0511
TODO only used for check, maybe we can use functions of base_tasks.py instead
276 0 convention missing-function-docstring C0116 getElementByGUID
Missing function or method docstring
276 0 convention invalid-name C0103 getElementByGUID
Function name "getElementByGUID" doesn't conform to snake_case naming style
276 30 warning redefined-outer-name W0621 getElementByGUID
Redefining name 'guid' from outer scope (line 11)
281 0 convention invalid-name C0103 getIfcAttribute
Function name "getIfcAttribute" doesn't conform to snake_case naming style
281 20 convention invalid-name C0103 getIfcAttribute
Argument name "ifcElement" doesn't conform to snake_case naming style
281 0 refactor inconsistent-return-statements R1710 getIfcAttribute
Either all return statements in a function should return an expression, or none of them should.
361 5 warning fixme W0511
TODO: use guids to get type property_sets (they are userd by many entitys)
387 13 convention invalid-name C0103 get_guid
Argument name "ifcElement" doesn't conform to snake_case naming style
387 0 refactor inconsistent-return-statements R1710 get_guid
Either all return statements in a function should return an expression, or none of them should.
397 24 convention invalid-name C0103 get_predefined_type
Argument name "ifcElement" doesn't conform to snake_case naming style
401 9 warning fixme W0511
todo cache "USERDEFINED" and check where information is stored
409 0 convention invalid-name C0103 getElementType
Function name "getElementType" doesn't conform to snake_case naming style
409 19 convention invalid-name C0103 getElementType
Argument name "ifcElement" doesn't conform to snake_case naming style
409 0 refactor inconsistent-return-statements R1710 getElementType
Either all return statements in a function should return an expression, or none of them should.
417 0 convention invalid-name C0103 checkIfcElementType
Function name "checkIfcElementType" doesn't conform to snake_case naming style
417 24 convention invalid-name C0103 checkIfcElementType
Argument name "ifcElement" doesn't conform to snake_case naming style
417 36 convention invalid-name C0103 checkIfcElementType
Argument name "ifcType" doesn't conform to snake_case naming style
417 0 refactor inconsistent-return-statements R1710 checkIfcElementType
Either all return statements in a function should return an expression, or none of them should.
423 0 convention invalid-name C0103 getHierarchicalParent
Function name "getHierarchicalParent" doesn't conform to snake_case naming style
423 26 convention invalid-name C0103 getHierarchicalParent
Argument name "ifcElement" doesn't conform to snake_case naming style
423 0 refactor inconsistent-return-statements R1710 getHierarchicalParent
Either all return statements in a function should return an expression, or none of them should.
434 0 convention invalid-name C0103 getHierarchicalChildren
Function name "getHierarchicalChildren" doesn't conform to snake_case naming style
434 28 convention invalid-name C0103 getHierarchicalChildren
Argument name "ifcElement" doesn't conform to snake_case naming style
434 0 refactor inconsistent-return-statements R1710 getHierarchicalChildren
Either all return statements in a function should return an expression, or none of them should.
446 0 convention invalid-name C0103 getSpatialParent
Function name "getSpatialParent" doesn't conform to snake_case naming style
446 21 convention invalid-name C0103 getSpatialParent
Argument name "ifcElement" doesn't conform to snake_case naming style
446 0 refactor inconsistent-return-statements R1710 getSpatialParent
Either all return statements in a function should return an expression, or none of them should.
453 0 convention invalid-name C0103 getSpatialChildren
Function name "getSpatialChildren" doesn't conform to snake_case naming style
453 23 convention invalid-name C0103 getSpatialChildren
Argument name "ifcElement" doesn't conform to snake_case naming style
453 0 refactor inconsistent-return-statements R1710 getSpatialChildren
Either all return statements in a function should return an expression, or none of them should.
460 0 convention invalid-name C0103 getSpace
Function name "getSpace" doesn't conform to snake_case naming style
460 13 convention invalid-name C0103 getSpace
Argument name "ifcElement" doesn't conform to snake_case naming style
460 0 refactor inconsistent-return-statements R1710 getSpace
Either all return statements in a function should return an expression, or none of them should.
465 8 refactor no-else-return R1705 getSpace
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
470 12 refactor no-else-return R1705 getSpace
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
476 0 convention invalid-name C0103 getStorey
Function name "getStorey" doesn't conform to snake_case naming style
476 14 convention invalid-name C0103 getStorey
Argument name "ifcElement" doesn't conform to snake_case naming style
476 0 refactor inconsistent-return-statements R1710 getStorey
Either all return statements in a function should return an expression, or none of them should.
481 8 refactor no-else-return R1705 getStorey
Unnecessary "elif" after "return", remove the leading "el" from "elif"
488 12 refactor no-else-return R1705 getStorey
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
494 0 convention invalid-name C0103 getBuilding
Function name "getBuilding" doesn't conform to snake_case naming style
494 16 convention invalid-name C0103 getBuilding
Argument name "ifcElement" doesn't conform to snake_case naming style
494 0 refactor inconsistent-return-statements R1710 getBuilding
Either all return statements in a function should return an expression, or none of them should.
499 8 refactor no-else-return R1705 getBuilding
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
510 12 refactor no-else-return R1705 getBuilding
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
516 0 convention invalid-name C0103 getSite
Function name "getSite" doesn't conform to snake_case naming style
516 12 convention invalid-name C0103 getSite
Argument name "ifcElement" doesn't conform to snake_case naming style
516 0 refactor inconsistent-return-statements R1710 getSite
Either all return statements in a function should return an expression, or none of them should.
521 8 refactor no-else-return R1705 getSite
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
532 12 refactor no-else-return R1705 getSite
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
538 0 convention invalid-name C0103 getProject
Function name "getProject" doesn't conform to snake_case naming style
538 15 convention invalid-name C0103 getProject
Argument name "ifcElement" doesn't conform to snake_case naming style
538 0 refactor inconsistent-return-statements R1710 getProject
Either all return statements in a function should return an expression, or none of them should.
544 8 refactor no-else-return R1705 getProject
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
548 12 warning unused-variable W0612 getProject
Unused variable 'building'
555 19 convention invalid-name C0103 get_true_north
Argument name "ifcElement" doesn't conform to snake_case naming style
561 4 convention invalid-name C0103 get_true_north
Variable name "er" doesn't conform to snake_case naming style
562 8 warning logging-fstring-interpolation W1203 get_true_north
Use lazy % formatting in logging functions
622 0 convention invalid-name C0103 convertToSI
Function name "convertToSI" doesn't conform to snake_case naming style
622 16 convention invalid-name C0103 convertToSI
Argument name "ifcUnit" doesn't conform to snake_case naming style
622 0 refactor inconsistent-return-statements R1710 convertToSI
Either all return statements in a function should return an expression, or none of them should.
623 5 warning fixme W0511
TODO not used anywhere. Remove?
626 4 convention invalid-name C0103 convertToSI
Variable name "ifcSIPrefix" doesn't conform to snake_case naming style
648 8 refactor no-else-return R1705 convertToSI
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
657 0 convention missing-function-docstring C0116 summary
Missing function or method docstring
659 11 convention invalid-name C0103 summary
Variable name "v" doesn't conform to snake_case naming style
660 15 convention consider-using-f-string C0209 summary
Formatting a regular string which could be a f-string
667 19 convention consider-using-f-string C0209 summary
Formatting a regular string which could be a f-string
671 27 convention consider-using-f-string C0209 summary
Formatting a regular string which could be a f-string
673 31 convention consider-using-f-string C0209 summary
Formatting a regular string which could be a f-string
675 27 convention consider-using-f-string C0209 summary
Formatting a regular string which could be a f-string
697 16 convention invalid-name C0103 used_properties
Variable name "ro" doesn't conform to snake_case naming style
707 0 convention missing-class-docstring C0115 BoundedValue
Missing class docstring
715 41 warning unused-argument W0613 BoundedValue.__init__
Unused argument 'initial_val'
724 4 error unexpected-special-method-signature E0302 BoundedValue.__set__
The special method '__set__' expects 2 param(s), 1 was given
725 33 error undefined-variable E0602 BoundedValue.__set__
Undefined variable 'pint'
731 8 refactor no-else-return R1705 BoundedValue.__set__
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
732 0 convention line-too-long C0301
Line too long (81/80)
742 8 refactor no-else-return R1705 BoundedValue.__str__
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it

Module bim2sim.elements.mapping.units (bim2sim/elements/mapping/units.py)

Line Col. Type Symbol ID Obj Message
19 1 warning fixme W0511
TODO:multiple ifc files
55 0 convention empty-docstring C0112 parse_ifc
Empty function docstring
55 0 refactor too-many-branches R0912 parse_ifc
Too many branches (13/12)
58 4 refactor no-else-return R1705 parse_ifc
Unnecessary "elif" after "return", remove the leading "el" from "elif"
63 41 convention consider-using-f-string C0209 parse_ifc
Formatting a regular string which could be a f-string
73 12 convention consider-using-f-string C0209 parse_ifc
Formatting a regular string which could be a f-string
85 12 convention consider-using-f-string C0209 parse_ifc
Formatting a regular string which could be a f-string
93 8 warning bare-except W0702 parse_ifc
No exception type(s) specified
100 37 convention consider-using-f-string C0209 parse_ifc
Formatting a regular string which could be a f-string
116 5 warning fixme W0511
TODO: IfcDimensionalExponents,IfcContextDependentUnit

Module bim2sim.examples.__init__ (bim2sim/examples/__init__.py)

Line Col. Type Symbol ID Obj Message
3 0 convention missing-final-newline C0304
Final newline missing

Module bim2sim.examples.e1_template_plugin (bim2sim/examples/e1_template_plugin.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 0 warning unused-import W0611
Unused bps_elements imported from bim2sim.elements
9 0 warning unused-import W0611
Unused Material imported from bim2sim.elements.base_elements
22 24 refactor consider-using-with R1732 run_simple_project
Consider using 'with' for resource-allocating operations
147 8 convention invalid-name C0103 run_simple_project
Variable name "tz" doesn't conform to snake_case naming style

Module bim2sim.examples.e2_interactive_project (bim2sim/examples/e2_interactive_project.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
11 1 warning fixme W0511
TODO #548 Implement two examples which don't use any "third party" plugins
24 24 refactor consider-using-with R1732 run_interactive_example
Consider using 'with' for resource-allocating operations
35 5 warning fixme W0511
todo open_conf is currently only tested under windows
50 4 warning unused-variable W0612 run_interactive_example
Unused variable 'handler'
55 4 warning unused-variable W0612 run_interactive_example
Unused variable 'b2s_elements'

Module bim2sim.export.modelica.__init__ (bim2sim/export/modelica/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.sim_settings:[24:64]
==bim2sim.sim_settings:[961:1001]
                 ],
        choices={
            "heat_demand_total":
                "Total heating demand (power) as time series data",
            "cool_demand_total":
                "Total cooling demand (power) as time series data",
            "heat_demand_rooms":
                "Zone based heating demand (power) as time series data",
            "cool_demand_rooms":
                "Zone based cooling demand (power) as time series data",
            "heat_energy_total":
                "Total heating energy as time series data",
            "cool_energy_total":
                "Total cooling energy as time series data",
            "heat_energy_rooms":
                "Zone based heating energy as time series data",
            "cool_energy_rooms":
                "Zone cooling heating energy as time series data",
            "air_temp_out":
                "Outdoor air temperature as time series data",
            "operative_temp_rooms":
                "Zone based operative temperature as time series data",
            "air_temp_rooms":
                "Zone based indoor air temperature as time series data",
            "internal_gains_machines_rooms":
                "Internal gains through machines in W as time series data",
            "internal_gains_persons_rooms":
                "Internal gains through persons in W as time series data",
            "internal_gains_lights_rooms":
                "Internal gains through lights in W as time series data",
            "n_persons_rooms":
                "Total amount of occupying persons as time series data",
            "infiltration_rooms":
                "Infiltration into room in 1/h as time series data",
            "mech_ventilation_rooms":
                "Mechanical ventilation flow in m³/h as time series data",
            "heat_set_rooms":
                "Heating set point in °C time series data",
            "cool_set_rooms":
                "Cooling set point in °C time series data",
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.task.ep_comfort_visualization:[184:229]
==bim2sim.plugins.PluginComfort.bim2sim_comfort.task.plot_comfort_results:[391:435]
                                                             + '.pdf'),
                                bbox_inches='tight')
            plt.draw()
            plt.close()

        def calendar_array(dates, data):
            i, j = zip(*[(d.day, d.month) for d in dates])
            i = np.array(i) - min(i)
            j = np.array(j) - 1
            ni = max(i) + 1
            calendar = np.empty([ni, 12])#, dtype='S10')
            calendar[:] = np.nan
            calendar[i, j] = data
            return i, j, calendar

        def calendar_heatmap(ax, df, color_only):

            color_schema = ['#0232c2', '#028cc2', '#03ffff',
                            '#02c248', '#bbc202', '#c27f02']
            # Labels and their corresponding indices
            labels = ['-3 to -2', '-2 to -1', '-1 to 0',
                      '0 to 1', '1 to 2', '2 to 3']
            label_indices = np.arange(len(labels)+1) - 3

            # Create a ListedColormap from the color schema
            cmap = ListedColormap(color_schema)
            df_dates = df.index
            df_data = df[df.columns[0]].values
            norm = Normalize(vmin=-3, vmax=3)

            i, j, calendar = calendar_array(df_dates, df_data)

            im = ax.imshow(calendar, aspect='auto', interpolation='none',
                           cmap=cmap, norm=norm)
            label_days(ax, df_dates, i, j, calendar)
            if not color_only:
                label_data(ax, calendar)
            label_months(ax, df_dates, i, j, calendar)
            if not skip_legend:
                cbar = ax.figure.colorbar(im, ticks=label_indices)
            # Minor ticks
            ax.set_xticks(np.arange(-.5, len(calendar[0]), 1), minor=True)
            ax.set_yticks(np.arange(-.5, len(calendar[:,0]), 1), minor=True)

            # Gridlines based on minor ticks
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[197:231]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[203:238]
        project.sim_settings.create_external_elements = True
        project.sim_settings.cooling_tz_overwrite = True
        project.sim_settings.construction_class_windows = \
            'Waermeschutzverglasung, dreifach'
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_with_SB89.json"
        space_boundary_genenerator = 'Other'
        handle_proxies = (*(None,)*12,)
        construction_year = 2015
        project.sim_settings.split_bounds = False
        project.sim_settings.add_shadings = True
        project.sim_settings.split_shadings = False
        project.sim_settings.run_full_simulation = False
        answers = (space_boundary_genenerator,
                   *handle_proxies,
                   construction_year,
                   project.sim_settings.split_bounds,
                   project.sim_settings.add_shadings,
                   project.sim_settings.split_shadings,
                   project.sim_settings.run_full_simulation)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("Skipped due to performance for CI")
    def test_base_09_DH_design_day(self):
        """Test DigitalHub IFC"""
        ifc_names = {IFCDomain.arch:  'FM_ARC_DigitalHub_fixed002.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e2_complex_project_energyplus:[58:92]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[67:101]
    project.sim_settings.sim_results = [
        "heat_demand_total", "cool_demand_total",
        "heat_demand_rooms", "cool_demand_rooms",
        "heat_energy_total", "cool_energy_total",
        "heat_energy_rooms", "cool_energy_rooms",
        "operative_temp_rooms", "air_temp_rooms", "air_temp_out",
        "internal_gains_machines_rooms", "internal_gains_persons_rooms",
        "internal_gains_lights_rooms",
        "heat_set_rooms",
        "cool_set_rooms"
    ]
    project.sim_settings.prj_use_conditions = (Path(
        bim2sim.__file__).parent.parent /
            "test/resources/arch/custom_usages/"
            "UseConditionsFM_ARC_DigitalHub.json")
    project.sim_settings.prj_custom_usages = (Path(
        bim2sim.__file__).parent.parent /
            "test/resources/arch/custom_usages/"
            "customUsagesFM_ARC_DigitalHub_with_SB89.json")
    # create plots based on the results after simulation
    project.sim_settings.create_plots = True

    # Run the project with pre-configured answers for decisions
    space_boundary_genenerator = 'Other'
    handle_proxies = (*(None,) * 12,)
    construction_year = 2015
    answers = (space_boundary_genenerator,
               *handle_proxies,
               construction_year)
    handler = DebugDecisionHandler(answers)
    handler.handle(project.run())


if __name__ == '__main__':
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[66:106]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[66:106]
        if not Path.exists(regression_results_dir):
            Path.mkdir(regression_results_dir, parents=True)
        csv_regression = math_diff.math_diff(
            # csv_regression returns diff_type ('All Equal', 'Big Diffs',
            # 'Small Diffs'), num_records (length of validated csv file
            # (#timesteps)), num_big (#big errors),
            # num_small (#small errors)
            diff_config,
            str(ref_csv),
            str(sim_csv),
            os.path.join(regression_results_dir, 'abs_diff_math.csv'),
            os.path.join(regression_results_dir, 'rel_diff_math.csv'),
            os.path.join(regression_results_dir, 'math_diff_math.log'),
            os.path.join(regression_results_dir, 'summary_math.csv'),
        )
        if csv_regression[0] in ['Small Diffs', 'All Equal']:
            passed_regression_test = True  # only passes with small diffs

        htm_regression = table_diff.table_diff(
            # htm_regression returns message, #tables, #big_diff,
            # #small_diff, #equals, #string_diff,
            # #size_diff, #not_in_file1, #not_in_file2
            diff_config,
            str(ref_htm),
            str(sim_htm),
            os.path.join(regression_results_dir, 'abs_diff_table.htm'),
            os.path.join(regression_results_dir, 'rel_diff_table.htm'),
            os.path.join(regression_results_dir, 'math_diff_table.log'),
            os.path.join(regression_results_dir, 'summary_table.csv'),
        )
        if htm_regression[2] == 0:
            passed_regression_test = True  # only passes without big diffs

        return passed_regression_test

    def run_regression_test(self):
        """Run the EnergyPlus regression test."""
        self.ref_results_src_path = \
            Path(bim2sim.__file__).parent.parent \
            / "test/resources/arch/regression_results" \
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[27:60]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[29:62]
            if not os.path.exists(Path.home() / 'idf'):
                os.mkdir(Path.home() / 'idf')
            ifc_name = str(os.listdir(self.project.paths.ifc)[0].split('.ifc')[0])
            temp_dir = Path(self.project.paths.export) / 'EnergyPlus'/\
                       'SimResults'/self.project.name
            debug_dir = Path.home() / 'idf' / Path(ifc_name + '_EP-results/')
            if os.path.exists(debug_dir):
                rmtree(debug_dir)
            copytree(temp_dir, debug_dir)
            try:
                copyfile(Path(self.project.paths.export)
                         / Path(ifc_name + "_combined_STL.stl"),
                         str(debug_dir) + '/' + str(ifc_name) + "_combined_STL.stl")
                copyfile(Path(self.project.paths.export)
                         / Path(ifc_name + "_space_combined_STL.stl"),
                         str(debug_dir) + '/' + str(ifc_name) + "_space_combined_STL.stl")
            except:
                print('No STL for CFD found. ')
            copyfile(str(debug_dir) + "/eplusout.expidf",
                     str(debug_dir) + "/eplusout.idf")
        os.chdir(self.working_dir)
        sys.stderr = self.old_stderr
        super().tearDown()


    def model_domain_path(self) -> str:
        return 'arch'

    def weather_file_path(self) -> Path:
        return (self.test_resources_path() /
                'weather_files/DEU_NW_Aachen.105010_TMYx.epw')

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[48:78]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj:[50:81]
    project.sim_settings.construction_class_windows = \
        'Alu- oder Stahlfenster, Waermeschutzverglasung, zweifach'

    # set weather file data
    project.sim_settings.weather_file_path = (
            Path(bim2sim.__file__).parent.parent /
            'test/resources/weather_files/DEU_NW_Aachen.105010_TMYx.mos')
    # Run a simulation directly with dymola after model creation
    project.sim_settings.dymola_simulation = True
    # Make sure that AixLib modelica library exist on machine by cloning it and
    #  setting the path of it as a sim_setting
    repo_url = "https://github.com/RWTH-EBC/AixLib.git"
    branch_name = "main"
    repo_name = "AixLib"
    path_aixlib = (
            Path(bim2sim.__file__).parent.parent / "local" / f"library_{repo_name}")
    download_library(repo_url, branch_name, path_aixlib)
    project.sim_settings.path_aixlib = path_aixlib / repo_name / 'package.mo'
    # Select results to output:
    project.sim_settings.sim_results = [
        "heat_demand_total", "cool_demand_total",
        "heat_demand_rooms", "cool_demand_rooms",
        "heat_energy_total", "cool_energy_total",
        "heat_energy_rooms", "cool_energy_rooms",
        "operative_temp_rooms", "air_temp_rooms", "air_temp_out",
        "internal_gains_machines_rooms", "internal_gains_persons_rooms",
        "internal_gains_lights_rooms",
        "heat_set_rooms",
        "cool_set_rooms"
    ]
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.task.ep_comfort_visualization:[229:264]
==bim2sim.plugins.PluginComfort.bim2sim_comfort.task.plot_comfort_results:[437:472]
            ax.grid(which='minor', color='w', linestyle='-', linewidth=0.5)

            # Remove minor ticks
            ax.tick_params(which='minor', bottom=False, left=False)            # ax.get_yaxis().set_ticks(label_indices)
            # ax.get_yaxis().set_ticklabels(labels)

        def label_data(ax, calendar):
            for (i, j), data in np.ndenumerate(calendar):
                if type(data) == str:
                    ax.text(j, i, data, ha='center', va='center')
                elif np.isfinite(data):
                    ax.text(j, i, round(data,1), ha='center', va='center')

        def label_days(ax, dates, i, j, calendar):
            ni, nj = calendar.shape
            day_of_month = np.nan * np.zeros((ni, nj))
            day_of_month[i, j] = [d.day for d in dates]

            yticks = np.arange(31)
            yticklabels = [i+1 for i in yticks]
            ax.set_yticks(yticks)
            ax.set_yticklabels(yticklabels, fontsize=6)
            # ax.set(yticks=yticks,
            #        yticklabels=yticklabels)


        def label_months(ax, dates, i, j, calendar):
            month_labels = np.array(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul',
                                     'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])
            months = np.array([d.month for d in dates])
            uniq_months = sorted(set(months))
            # xticks = [i[months == m].mean() for m in uniq_months]
            xticks = [i-1 for i in uniq_months]
            labels = [month_labels[m - 1] for m in uniq_months]
            ax.set(xticks=xticks)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[22:56]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[22:56]
        self.old_stderr = sys.stderr
        self.working_dir = os.getcwd()
        self.ref_results_src_path = None
        self.results_src_dir = None
        self.results_dst_dir = None
        self.tester = None
        super().setUp()

    def tearDown(self):
        os.chdir(self.working_dir)
        sys.stderr = self.old_stderr
        super().tearDown()

    def weather_file_path(self) -> Path:
        return (self.test_resources_path() /
                'weather_files/DEU_NW_Aachen.105010_TMYx.epw')

    def create_regression_setup(self):
        """
        Create a regression test setup for EnergyPlus.

        This method uses the energyplus_regressions library to create a
        regression test for the passed project EnergyPlus simulation model
        export.
        """
        passed_regression_test = False

        regex = re.compile("[^a-zA-z0-9]")
        model_export_name = regex.sub("", self.project.name)
        ref_csv = self.ref_results_src_path / str(self.project.name +
                                         '_eplusout.csv')
        ref_htm = self.ref_results_src_path / str(self.project.name +
                                         '_eplustbl.htm')
        diff_config = ThreshDict(Path(bim2sim.__file__).parent /
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[113:148]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[112:147]
        passed_regression = self.create_regression_setup()
        return passed_regression

    def create_regression_results(self):
        """Creates regression results based on simulation model.

        If simulation is successful and regression results differ from
        new simulation results, the user is asked if the results should be
        overwritten.
        If simulation  is successful and simulation results are same with
        regression results nothing happens.
        If simulation is not successful nothing happens.
        """
        self.tester.run()
        sim_sucessful = self.tester._comp_info[0]['simulation']['success']
        comp_sucessful = self.tester._comp_info[0]['comparison']['test_passed']

        # sim and comparison
        if sim_sucessful and all(comp_sucessful):
            logger.info("No differences between simulation and regression "
                        "results. No fresh results created.")
        # sim successful but comparison not (new results were created based if
        # user decided to simulate
        elif sim_sucessful and not all(comp_sucessful):
            # copy updated ref results to assets
            shutil.rmtree(self.ref_results_src_path.parent,
                          ignore_errors=True)
            shutil.copytree(self.ref_results_dst_path,
                            self.ref_results_src_path)
            logger.info("Regression results were updated with new results.")
        elif not sim_sucessful:
            logger.error(f"The simulation was not successful, "
                         f"no new regression results were created.")

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.examples.e3_load_comfort_simulation_results:[37:60]
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e3_load_energyplus_simulation_results:[35:58]
    project.sim_settings.weather_file_path = (
            Path(bim2sim.__file__).parent.parent /
            'test/resources/weather_files/DEU_NW_Aachen.105010_TMYx.mos')
    # Run a simulation directly with dymola after model creation
    # Select results to output:
    project.sim_settings.sim_results = [
        "heat_demand_total", "cool_demand_total",
        "heat_demand_rooms", "cool_demand_rooms",
        "heat_energy_total", "cool_energy_total",
        "heat_energy_rooms", "cool_energy_rooms",
        "operative_temp_rooms", "air_temp_rooms", "air_temp_out"
    ]
    project.sim_settings.create_plots = True
    # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'

    # Just select the tasks that are needed to load the previous simulation
    # results and create the result plots
    project.plugin_cls.default_tasks = [
        common.LoadIFC,
        common.DeserializeElements,
        ep_tasks.LoadEnergyPlusResults,
        ep_tasks.CreateResultDF,
        bps.PlotBEPSResults,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.task.plot_comfort_results:[16:35]
==bim2sim.tasks.bps.plot_results:[19:39]
cm = ColorManager()
plt.rcParams.update(mpl.rcParamsDefault)
plt.style.use(['science', 'grid', 'rwth'])
plt.style.use(['science', 'no-latex'])

# Update rcParams for font settings
plt.rcParams.update({
    'font.size': 20,
    'font.family': 'sans-serif',  # Use sans-serif font
    'font.sans-serif': ['Arial', 'Helvetica', 'DejaVu Sans', 'sans-serif'],  # Specify sans-serif fonts
    'legend.frameon': True,
    'legend.facecolor': 'white',
    'legend.framealpha': 0.5,
    'legend.edgecolor': 'black',
    "lines.linewidth": 0.4,
    "text.usetex": False,  # use inline math for ticks
    "pgf.rcfonts": True,
})

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.test.unit.task.test_weather:[17:42]
==bim2sim.plugins.PluginTEASER.test.unit.task.test_weather:[17:42]
    default_tasks = [
        bim2sim.tasks.common.load_ifc.LoadIFC,
        bim2sim.tasks.common.create_elements.CreateElementsOnIfcTypes,
        Weather
    ]


test_rsrc_path = (Path(
    __file__).parent.parent.parent.parent.parent.parent.parent
                  / 'test/resources')


class TestWeather(unittest.TestCase):
    """Tests the weather task for loading weather files for simulations."""

    def tearDown(self):
        self.project.finalize(True)
        self.test_dir.cleanup()

    def test_weather_energyplus(self):
        """Test if the weather file is correctly set for energyplus."""
        self.test_dir = tempfile.TemporaryDirectory()
        ifc_paths = {
            IFCDomain.arch: test_rsrc_path / 'arch/ifc/AC20-FZK-Haus.ifc'}
        self.project = Project.create(self.test_dir.name, ifc_paths,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[208:224]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[177:193]
        project.sim_settings.create_external_elements = True
        project.sim_settings.cooling_tz_overwrite = True
        project.sim_settings.construction_class_windows = \
            'Waermeschutzverglasung, dreifach'
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_with_SB89.json"
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'
        space_boundary_genenerator = 'Other'
        handle_proxies = (*(None,) * 12,)
        construction_year = 2015
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[202:216]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[176:191]
        project = self.create_project(ifc_names, 'energyplus')
        project.sim_settings.create_external_elements = True
        project.sim_settings.cooling_tz_overwrite = True
        project.sim_settings.construction_class_windows = \
            'Waermeschutzverglasung, dreifach'
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_with_SB89.json"
        space_boundary_genenerator = 'Other'
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.test.regression.create_regression_results:[33:47]
==bim2sim.plugins.PluginTEASER.test.regression.test_teaser:[167:181]
        project.sim_settings.zoning_criteria = (
            ZoningCriteria.combined_single_zone)
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_with_SB_neu.json"
        answers = ('Other', *(None,)*12, 2015)
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.export.modelica.__init__:[669:692]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.export.__init__:[280:299]
        if not isinstance(min_value, (pint.Quantity, type(None))):
            raise AssertionError("min_value is no pint quantity with unit")
        if not isinstance(max_value, (pint.Quantity, type(None))):
            raise AssertionError("max_value is no pint quantity with unit")

        def inner_check(value):
            if not isinstance(value, pint.Quantity):
                return False
            if min_value is None and max_value is None:
                return True
            if min_value is not None and max_value is None:
                return min_value <= value
            if max_value is not None:
                return value <= max_value
            return min_value <= value <= max_value

        return inner_check

    def __repr__(self):
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.__init__:[24:39]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj:[88:102]
        common.LoadIFC,
        # common.CheckIfc,
        common.CreateElementsOnIfcTypes,
        bps.CreateSpaceBoundaries,
        bps.AddSpaceBoundaries2B,
        bps.CorrectSpaceBoundaries,
        common.CreateRelations,
        bps.DisaggregationCreationAndTypeCheck,
        bps.EnrichMaterial,
        bps.EnrichUseConditions,
        bps.CombineThermalZones,
        common.Weather,
        LoadLibrariesTEASER,
        teaser_task.CreateTEASER,
        teaser_task.SerializeTEASER,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.examples.e1_simple_project_hvac_aixlib:[36:70]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.examples.e1_simple_project_hvac_hkesim:[33:65]
    project.sim_settings.weather_file_path = (
            Path(bim2sim.__file__).parent.parent /
            'test/resources/weather_files/DEU_NW_Aachen.105010_TMYx.mos')

    # specify simulation settings
    project.sim_settings.aggregations = [
        'UnderfloorHeating',
        'Consumer',
        'PipeStrand',
        'ParallelPump',
        'ConsumerHeatingDistributorModule',
        'GeneratorOneFluid'
    ]
    project.sim_settings.group_unidentified = 'name'

    # Run the project with the ConsoleDecisionHandler. This allows interactive
    # input to answer upcoming questions regarding the imported IFC.
    # Correct decision for identification of elements and useful parameters for
    # missing attributes are written below
    run_project(project, ConsoleDecisionHandler())

# IfcBuildingElementProxy: skip
# Rücklaufverschraubung: 'HVAC-PipeFitting',
# Apparate (M_606) 'HVAC-Distributor',
# 3-Wege-Regelventil PN16: 'HVAC-ThreeWayValve',
# True * 6
# efficiency: 0.95
# flow_temperature: 70
# nominal_power_consumption: 200
# return_temperature: 50
# heat_capacity: 10 * 7


if __name__ == '__main__':
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[196:210]
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[207:222]
        project = self.create_project(ifc_names, 'comfort')
        project.sim_settings.create_external_elements = True
        project.sim_settings.cooling_tz_overwrite = True
        project.sim_settings.construction_class_windows = \
            'Waermeschutzverglasung, dreifach'
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_with_SB89.json"
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'
        space_boundary_genenerator = 'Other'
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.__init__:[23:37]
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.__init__:[15:29]
    default_tasks = [
        common.LoadIFC,
        common.CheckIfc,
        common.CreateElementsOnIfcTypes,
        bps.CreateSpaceBoundaries,
        bps.AddSpaceBoundaries2B,
        bps.CorrectSpaceBoundaries,
        common.CreateRelations,
        bps.DisaggregationCreationAndTypeCheck,
        bps.EnrichMaterial,
        bps.EnrichUseConditions,
        common.Weather,
        ep_tasks.CreateIdf,
        ep_tasks.IdfPostprocessing,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[47:60]
==bim2sim.plugins.PluginTEASER.test.regression.test_teaser:[169:182]
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_with_SB_neu.json"
        answers = ('Other', *(None,)*12, 2015)
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[264:282]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[271:290]
        project.sim_settings.create_external_elements = True
        project.sim_settings.split_bounds = True
        project.sim_settings.add_shadings = True
        project.sim_settings.split_shadings = True
        project.sim_settings.run_full_simulation = False
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'

        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesKIT-EDC_with_SB.json"
        answers = ('Other', 'Other', 2015)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)


1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[197:210]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[177:191]
        project.sim_settings.create_external_elements = True
        project.sim_settings.cooling_tz_overwrite = True
        project.sim_settings.construction_class_windows = \
            'Waermeschutzverglasung, dreifach'
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_with_SB89.json"
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'
        space_boundary_genenerator = 'Other'
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[208:222]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[203:216]
        project.sim_settings.create_external_elements = True
        project.sim_settings.cooling_tz_overwrite = True
        project.sim_settings.construction_class_windows = \
            'Waermeschutzverglasung, dreifach'
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_with_SB89.json"
        space_boundary_genenerator = 'Other'
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[47:59]
==bim2sim.plugins.PluginTEASER.test.regression.create_regression_results:[35:47]
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_with_SB_neu.json"
        answers = ('Other', *(None,)*12, 2015)
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[229:241]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[197:209]
        answers = (space_boundary_genenerator,
                   *handle_proxies,
                   construction_year)
        handler = DebugDecisionHandler(answers)
        handler.handle(project.run())
        self.assertEqual(0, handler.return_value,
                         "Project export and simulation did not finish "
                         "successfully.")
        reg_test_res = self.run_regression_test()
        self.assertEqual(True, reg_test_res,
                         "EnergyPlus Regression test did not finish "
                         "successfully or created deviations.")
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e2_complex_project_energyplus:[58:69]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj:[70:81]
    project.sim_settings.sim_results = [
        "heat_demand_total", "cool_demand_total",
        "heat_demand_rooms", "cool_demand_rooms",
        "heat_energy_total", "cool_energy_total",
        "heat_energy_rooms", "cool_energy_rooms",
        "operative_temp_rooms", "air_temp_rooms", "air_temp_out",
        "internal_gains_machines_rooms", "internal_gains_persons_rooms",
        "internal_gains_lights_rooms",
        "heat_set_rooms",
        "cool_set_rooms"
    ]
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.integration.test_aixlib:[63:77]
==bim2sim.plugins.PluginHKESim.test.integration.test_hkesim:[62:76]
        project.sim_settings.aggregations = [
            'UnderfloorHeating',
            'Consumer',
            'PipeStrand',
            'ParallelPump',
            'ConsumerHeatingDistributorModule',
        ]
        answers = (None, 'HVAC-PipeFitting', 'HVAC-Distributor',
                   'HVAC-ThreeWayValve',
                   # 7x dead ends
                   *(True,) * 7,
                   # boiler: efficiency
                   0.9,
                   # boiler: flow temperature
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.task.ep_comfort_settings:[419:445]
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_create_idf:[629:657]
            idf.newidfobject("SCHEDULE:WEEK:COMPACT", Name=schedule_name,
                             DayType_List_1="AllDays",
                             ScheduleDay_Name_1=schedule_name)
        if idf.getobject("SCHEDULE:YEAR", name=schedule_name) is None:
            idf.newidfobject("SCHEDULE:YEAR", Name=schedule_name,
                             Schedule_Type_Limits_Name=limits_name,
                             ScheduleWeek_Name_1=schedule_name,
                             Start_Month_1=1,
                             Start_Day_1=1,
                             End_Month_1=12,
                             End_Day_1=31)

    @staticmethod
    def remove_empty_zones(idf: IDF):
        """Remove empty zones and zonegroups from idf.

        Depending on the quality of the input ifc and their space
        boundaries, empty thermal zones may be created (or be left after
        corrections) in the resulting idf. This raises errors in thermal
        comfort simulation. This method evaluates if a thermal zone has
        surfaces in idf, and removes the zone from zonelists and zonegroups.

        Args:
            idf: eppy idf

        """
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.examples.e3_load_comfort_simulation_results:[42:57]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e3_load_teaser_simulation_results:[43:56]
    project.sim_settings.sim_results = [
        "heat_demand_total", "cool_demand_total",
        "heat_demand_rooms", "cool_demand_rooms",
        "heat_energy_total", "cool_energy_total",
        "heat_energy_rooms", "cool_energy_rooms",
        "operative_temp_rooms", "air_temp_rooms", "air_temp_out"
    ]
    project.sim_settings.create_plots = True
    # Just select the tasks that are needed to load the previous simulation
    # results and create the result plots
    project.plugin_cls.default_tasks = [
        common.LoadIFC,
        common.DeserializeElements,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.sim_settings:[11:21]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.sim_settings:[97:107]
    path_aixlib = PathSetting(
        default=None,
        description='Path to the local AixLib`s repository. This needs to '
                    'point to the root level package.mo file. If not'
                    ' provided, the version for regression testing will be '
                    'used if it was already downloaded using the '
                    'prepare_regression_tests.py script.',
        for_frontend=False,
        mandatory=False
    )
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.integration.test_aixlib:[96:109]
==bim2sim.plugins.PluginHKESim.test.integration.test_hkesim:[89:102]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        graph = project.playground.state['graph']
        aggregated = Counter((type(item) for item in graph.element_graph.nodes))
        self.assertIn(ConsumerHeatingDistributorModule, aggregated)
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    def test_run_b03_heating_with_all_aggregations(self):
        """Run project with 2022_11_21_update_B03_Heating_ownCells.ifc"""
        ifc_names = {IFCDomain.hydraulic:
                         '2022_11_21_update_B03_Heating_ownCells.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[248:262]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[223:237]
        answers = (space_boundary_genenerator,
                   *handle_proxies,
                   construction_year,
                   project.sim_settings.split_bounds,
                   project.sim_settings.add_shadings,
                   project.sim_settings.split_shadings,
                   project.sim_settings.run_full_simulation)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("Skipped due to performance for CI")
    def test_base_09_DH_design_day(self):
        """Test DigitalHub IFC"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[216:230]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[255:269]
        answers = (space_boundary_genenerator,
                   *handle_proxies,
                   construction_year,
                   project.sim_settings.split_bounds,
                   project.sim_settings.add_shadings,
                   project.sim_settings.split_shadings,
                   project.sim_settings.run_full_simulation)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    # @unittest.skip("Skipped due to performance for CI")
    def test_base_13_EDC_SB_design_day(self):
        """Test KIT KHH 3 storey IFC with generated Space Boundaries"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[119:138]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[123:142]
        project.sim_settings.create_external_elements = True
        project.sim_settings.run_full_simulation = True
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsAC20-FZK-Haus_with_SB55.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesAC20-FZK-Haus_with_SB55.json"
        answers = ('Other',)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    # @unittest.skip("")
    def test_base_05_KIT_Inst_design_day(self):
        """Test Original IFC File from Institute (KIT)"""
        ifc_names = {IFCDomain.arch:  'AC20-Institute-Var-2.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[165:180]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[170:186]
        project.sim_settings.create_external_elements = True
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'

        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesAC20-Institute-Var-2_with_SB-1-0.json"
        answers = ('Other', 2015)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("Skipped due to performance for CI")
    def test_base_08_KIT_Inst_SB_full_run(self):
        """Test IFC File from Institute (KIT) with generated Space Boundaries"""
        ifc_names = {IFCDomain.arch:  'AC20-Institute-Var-2_with_SB-1-0.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[102:118]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[106:122]
        project.sim_settings.create_external_elements = True
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesAC20-FZK-Haus_with_SB55.json"
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'
        answers = ('Other',)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("")
    def test_base_04_FZK_SB_full_run(self):
        """Test IFC File from FZK-Haus (KIT) with generated Space Boundaries"""
        # ifc_names = {IFCDomain.arch:  'AC20-FZK-Haus_with_SB44.ifc'}
        ifc_names = {IFCDomain.arch:  'AC20-FZK-Haus_with_SB55.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.sim_settings:[12:22]
==bim2sim.sim_settings:[949:959]
    sim_results = ChoiceSetting(
        default=[
            "heat_demand_total", "cool_demand_total",
            "heat_demand_rooms", "cool_demand_rooms",
            "heat_energy_total", "cool_energy_total",
            "heat_energy_rooms", "cool_energy_rooms",
            "air_temp_out", "operative_temp_rooms", "air_temp_rooms",
            "internal_gains_machines_rooms", "internal_gains_persons_rooms",
            "internal_gains_lights_rooms", "n_persons_rooms",
            "infiltration_rooms", "mech_ventilation_rooms",
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.test.unit.task.test_weather:[45:54]
==bim2sim.plugins.PluginTEASER.test.unit.task.test_weather:[45:54]
        handler = DebugDecisionHandler([])
        handler.handle(self.project.run(cleanup=False))
        try:
            weather_file = self.project.playground.state['weather_file']
        except Exception:
            raise ValueError(f"No weather file set through Weather task. An"
                             f"error occurred.")
        self.assertEquals(weather_file,
                          self.project.sim_settings.weather_file_path)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[77:87]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e4_visualize_zone_binding:[48:61]
    ]
    # We get the use conditions and usages from predefined templates, look at
    # example e2 to get more information how this works
    project.sim_settings.prj_use_conditions = (Path(
        bim2sim.__file__).parent.parent /
            "test/resources/arch/custom_usages/"
            "UseConditionsFM_ARC_DigitalHub.json")
    project.sim_settings.prj_custom_usages = (Path(
        bim2sim.__file__).parent.parent /
            "test/resources/arch/custom_usages/"
            "customUsagesFM_ARC_DigitalHub_with_SB89.json")

    # set weather file data
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.__init__:[26:35]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.__init__:[23:32]
    default_tasks = [
        common.LoadIFC,
        common.CheckIfc,
        common.CreateElementsOnIfcTypes,
        hvac.ConnectElements,
        hvac.MakeGraph,
        hvac.ExpansionTanks,
        hvac.Reduce,
        hvac.DeadEnds,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[168:180]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[200:209]
        handler = DebugDecisionHandler(answers)
        handler.handle(project.run())
        self.assertEqual(0, handler.return_value,
                         "Project export and simulation did not finish "
                         "successfully.")
        reg_test_res = self.run_regression_test()
        self.assertEqual(True, reg_test_res,
                         "EnergyPlus Regression test did not finish "
                         "successfully or created deviations.")
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.sim_settings:[27:36]
==bim2sim.sim_settings:[1023:1032]
        description='Whether to add shading surfaces if available or not.',
        for_frontend=True
    )
    split_shadings = BooleanSetting(
        default=False,
        description='Whether to convert up non-convex shading boundaries or '
                    'not.',
        for_frontend=True
    )
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.sim_settings:[17:26]
==bim2sim.sim_settings:[1013:1022]
        for_frontend=True
    )
    split_bounds = BooleanSetting(
        default=False,
        description='Whether to convert up non-convex space boundaries or '
                    'not.',
        for_frontend=True
    )
    add_shadings = BooleanSetting(
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.regression.prepare_regression_tests:[6:16]
==bim2sim.plugins.PluginTEASER.test.regression.prepare_regression_tests:[6:16]
    repo_url = "https://github.com/RWTH-EBC/AixLib.git"
    branch_name = "main"
    repo_name = "AixLib"
    clone_dir = Path(__file__).parent / "library" / f"library_{repo_name}"
    print(f"Cloning AixLib library to {clone_dir}")
    download_library(repo_url, branch_name, clone_dir)


if __name__ == '__main__':
    prepare_regression_tests()
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.export.modelica.__init__:[263:271]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.export.__init__:[65:73]
                logger.warning(
                    "Got Library not directly inheriting from Instance.")
            if library.library:
                logger.info("Got library '%s'", library.library)
            else:
                logger.error("Attribute library not set for '%s'",
                             library.__name__)
                raise AssertionError("Library not defined")
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.__init__:[18:26]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj:[89:97]
        common.CreateElementsOnIfcTypes,
        bps.CreateSpaceBoundaries,
        bps.AddSpaceBoundaries2B,
        bps.CorrectSpaceBoundaries,
        common.CreateRelations,
        bps.DisaggregationCreationAndTypeCheck,
        bps.EnrichMaterial,
        bps.EnrichUseConditions,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e4_visualize_zone_binding:[37:46]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj:[87:95]
    project.plugin_cls.default_tasks = [
        common.LoadIFC,
        common.CreateElementsOnIfcTypes,
        bps.CreateSpaceBoundaries,
        bps.AddSpaceBoundaries2B,
        bps.CorrectSpaceBoundaries,
        common.CreateRelations,
        bps.DisaggregationCreationAndTypeCheck,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[18:35]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e4_visualize_zone_binding:[21:37]
    project_path = Path(
        tempfile.TemporaryDirectory(prefix='bim2sim_example1').name)
    ifc_paths = {
        IFCDomain.arch:
            Path(bim2sim.__file__).parent.parent /
            'test/resources/arch/ifc/FM_ARC_DigitalHub_with_SB89.ifc',
    }
    project = Project.create(project_path, ifc_paths, 'teaser')

    # specify simulation settings (especially for zoning)

    # we use LOD.medium that means that zones are merged based on
    # zoning_criteria sim_setting

    # We don't need a full bim2sim run with simulation to demonstrate this, so
    # we will just run the needed tasks:
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.integration.test_aixlib:[96:107]
==bim2sim.plugins.PluginHKESim.test.integration.test_hkesim:[113:121]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        graph = project.playground.state['graph']
        aggregated = Counter((type(item) for item in graph.element_graph.nodes))
        self.assertIn(ConsumerHeatingDistributorModule, aggregated)
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    def test_run_b03_heating_with_all_aggregations(self):
        """Run project with 2022_11_21_update_B03_Heating_ownCells"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.integration.test_aixlib:[124:133]
==bim2sim.plugins.PluginHKESim.test.integration.test_hkesim:[89:100]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        graph = project.playground.state['graph']
        aggregated = Counter((type(item) for item in graph.element_graph.nodes))
        self.assertIn(ConsumerHeatingDistributorModule, aggregated)
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    def test_run_b03_heating_with_all_aggregations(self):
        """Run project with 2022_11_21_update_B03_Heating_ownCells.ifc"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[271:282]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[297:309]
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesKIT-EDC_with_SB.json"
        answers = ('Other', 'Other', 2015)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("Not fully implemented yet")
    def test_base_17_ERC_design_day(self):
        """Test ERC Main Building"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[183:195]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[173:185]
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesAC20-Institute-Var-2_with_SB-1-0.json"
        answers = ('Other', 2015)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("Skipped due to performance for CI")
    def test_base_08_KIT_Inst_SB_full_run(self):
        """Test IFC File from Institute (KIT) with generated Space Boundaries"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[167:179]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[189:201]
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesAC20-Institute-Var-2_with_SB-1-0.json"
        answers = ('Other', 2015)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("Skipped due to performance for CI")
    def test_base_08_KIT_Inst_SB_full_run(self):
        """Test IFC File from Institute (KIT) with generated Space Boundaries"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[139:152]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[143:157]
        project.sim_settings.create_external_elements = True
        answers = (2015,)
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'

        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    @unittest.skip("")
    def test_base_06_KIT_Inst_full_run(self):
        """Test Original IFC File from Institute (KIT)"""
        ifc_names = {IFCDomain.arch:  'AC20-Institute-Var-2.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[125:137]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[107:121]
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesAC20-FZK-Haus_with_SB55.json"
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'
        answers = ('Other',)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("")
    def test_base_04_FZK_SB_full_run(self):
        """Test IFC File from FZK-Haus (KIT) with generated Space Boundaries"""
        # ifc_names = {IFCDomain.arch:  'AC20-FZK-Haus_with_SB44.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[103:117]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[129:141]
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesAC20-FZK-Haus_with_SB55.json"
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'
        answers = ('Other',)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("")
    def test_base_04_FZK_SB_full_run(self):
        """Test IFC File from FZK-Haus (KIT) with generated Space Boundaries"""
        # ifc_names = {IFCDomain.arch:  'AC20-FZK-Haus_with_SB44.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.__init__:[26:34]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.__init__:[26:34]
        common.CreateElementsOnIfcTypes,
        bps.CreateSpaceBoundaries,
        bps.AddSpaceBoundaries2B,
        bps.CorrectSpaceBoundaries,
        common.CreateRelations,
        bps.DisaggregationCreationAndTypeCheck,
        bps.EnrichMaterial,
        bps.EnrichUseConditions,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils.utils_visualization:[223:233]
==bim2sim.utilities.visualize_spaces:[67:80]
        settings = ifcopenshell.geom.settings()
        settings.set(settings.USE_PYTHON_OPENCASCADE, True)
        settings.set(settings.USE_WORLD_COORDS, True)
        settings.set(settings.EXCLUDE_SOLIDS_AND_SURFACES, False)
        settings.set(settings.INCLUDE_CURVES, True)

        display, start_display, add_menu, add_function_to_menu = init_display(
            display_triedron=False, background_gradient_color1=3 * [255],
            background_gradient_color2=3 * [255], size=(1920, 1080))
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[207:214]
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[47:54]
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[181:188]
==bim2sim.plugins.PluginTEASER.test.regression.test_teaser:[169:176]
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.create_result_df:[43:51]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.create_result_df:[38:53]
}

# bim2sim_teaser_indirect_mapping = {
#     "n_persons_rooms": [
#         "*",
#         "multizone.zone[numZones].humanSenHeaDependent.specificPersons",
#         "multizone.zone[numZones].humanSenHeaDependent.roomArea"]
# }

pint_pandas.PintType.ureg = ureg
unit_mapping = {
    "heat_demand": ureg.watt,
    "cool_demand": ureg.watt,
    "heat_energy": ureg.joule,
    "cool_energy": ureg.joule,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e2_complex_project_energyplus:[17:29]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e4_visualize_zone_binding:[21:28]
    project_path = Path(
        tempfile.TemporaryDirectory(prefix='bim2sim_example1').name)

    # Set the ifc path to use and define which domain the IFC belongs to
    ifc_paths = {
        IFCDomain.arch:
            Path(bim2sim.__file__).parent.parent /
            'test/resources/arch/ifc/FM_ARC_DigitalHub_with_SB89.ifc',
    }

    # Create a project including the folder structure for the project with
    # teaser as backend and no specified workflow (default workflow is taken)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.__init__:[24:32]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e4_visualize_zone_binding:[38:46]
        common.LoadIFC,
        # common.CheckIfc,
        common.CreateElementsOnIfcTypes,
        bps.CreateSpaceBoundaries,
        bps.AddSpaceBoundaries2B,
        bps.CorrectSpaceBoundaries,
        common.CreateRelations,
        bps.DisaggregationCreationAndTypeCheck,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.unit.kernel.task.test_export:[84:93]
==bim2sim.plugins.PluginHKESim.test.unit.kernel.task.test_export:[118:127]
        expected_units = [ureg.watt]
        self.run_parameter_test(graph, modelica_model, parameters,
                                expected_units)

    def test_chiller_export(self):
        graph = self.helper.get_simple_chiller()
        answers = ()
        reads = (self.loaded_libs, graph)
        modelica_model = self.run_task(answers, reads)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.integration.test_aixlib:[52:62]
==bim2sim.plugins.PluginHKESim.test.integration.test_hkesim:[51:61]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    def test_run_b03_heating(self):
        """Run project with 2022_11_21_update_B03_Heating_ownCells.ifc"""
        ifc_names = {IFCDomain.hydraulic:
                         '2022_11_21_update_B03_Heating_ownCells.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[80:91]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[32:45]
                            attributes=['return_temperature'])

    def get_port_name(self, port):
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[153:164]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[158:169]
        project.sim_settings.create_external_elements = True
        project.sim_settings.run_full_simulation = True
        answers = (2015, )
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("Skipped due to performance for CI")
    def test_base_07_KIT_Inst_SB_design_day(self):
        """Test IFC File from Institute (KIT) with generated Space Boundaries"""
        ifc_names = {IFCDomain.arch:  'AC20-Institute-Var-2_with_SB-1-0.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[211:218]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[192:199]
        construction_year = 2015
        project.sim_settings.split_bounds = False
        project.sim_settings.add_shadings = True
        project.sim_settings.split_shadings = False
        project.sim_settings.run_full_simulation = False
        answers = (space_boundary_genenerator,
                   *handle_proxies,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[140:152]
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[22:32]
        answers = (2015,)
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    @unittest.skip("")
    def test_base_06_KIT_Inst_full_run(self):
        """Test Original IFC File from Institute (KIT)"""
        ifc_names = {IFCDomain.arch:  'AC20-Institute-Var-2.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[201:208]
==bim2sim.plugins.PluginTEASER.test.regression.create_regression_results:[35:42]
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[139:148]
==bim2sim.plugins.PluginTEASER.test.regression.test_teaser:[122:131]
                          ignore_errors=True)
            shutil.copytree(self.ref_results_dst_path,
                            self.ref_results_src_path)
            logger.info("Regression results were updated with new results.")
        elif not sim_sucessful:
            logger.error(f"The simulation was not successful, "
                         f"no new regression results were created.")

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[126:138]
==bim2sim.plugins.PluginTEASER.test.regression.test_teaser:[109:121]
        self.tester.run()
        sim_sucessful = self.tester._comp_info[0]['simulation']['success']
        comp_sucessful = self.tester._comp_info[0]['comparison']['test_passed']

        # sim and comparison
        if sim_sucessful and all(comp_sucessful):
            logger.info("No differences between simulation and regression "
                        "results. No fresh results created.")
        # sim successful but comparison not (new results were created based if
        # user decided to simulate
        elif sim_sucessful and not all(comp_sucessful):
            # copy updated ref results to assets
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[233:240]
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[212:219]
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.elements.bps_elements:[1151:1163]
==bim2sim.elements.mapping.condition:[138:146]
            if layer.thickness:
                if layer.material.thermal_conduc and \
                        layer.material.thermal_conduc > 0:
                    layers_r += layer.thickness / layer.material.thermal_conduc

        if layers_r > 0:
            return 1 / layers_r
        return None
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.elements.aggregation.hvac_aggregations:[889:903]
==bim2sim.elements.hvac_elements:[987:1001]
    )

    def _calc_dT_water(self, name) -> ureg.Quantity:
        """Function to calculate the delta temperature of the boiler using the
        return and flow temperature"""
        return self.flow_temperature - self.return_temperature

    dT_water = attribute.Attribute(
        description="Nominal temperature difference",
        unit=ureg.kelvin,
        functions=[_calc_dT_water],
    )

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.export.modelica.standardlibrary:[83:91]
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[502:510]
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.export.modelica.standardlibrary:[53:61]
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[472:480]
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.examples.e1_simple_project_hvac_aixlib:[41:47]
==bim2sim.plugins.PluginAixLib.test.integration.test_aixlib:[63:69]
    project.sim_settings.aggregations = [
        'UnderfloorHeating',
        'Consumer',
        'PipeStrand',
        'ParallelPump',
        'ConsumerHeatingDistributorModule',
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[147:157]
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[179:189]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    @unittest.skip("")
    def test_base_06_KIT_Inst_full_run(self):
        """Test Original IFC File from Institute (KIT)"""
        ifc_names = {IFCDomain.arch:  'AC20-Institute-Var-2.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e2_complex_project_energyplus:[45:54]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[45:54]
    project.sim_settings.layers_and_materials = LOD.low
    # specify templates for the layer and material overwrite
    project.sim_settings.construction_class_walls = 'iwu_heavy'
    project.sim_settings.construction_class_windows = \
        'Alu- oder Stahlfenster, Waermeschutzverglasung, zweifach'

    # set weather file data
    project.sim_settings.weather_file_path = (
            Path(bim2sim.__file__).parent.parent /
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e1_simple_project_bps_teaser:[55:61]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[67:73]
    project.sim_settings.sim_results = [
        "heat_demand_total", "cool_demand_total",
        "heat_demand_rooms", "cool_demand_rooms",
        "heat_energy_total", "cool_energy_total",
        "heat_energy_rooms", "cool_energy_rooms",
        "operative_temp_rooms", "air_temp_rooms", "air_temp_out",
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.unit.kernel.task.test_export:[28:36]
==bim2sim.plugins.PluginHKESim.test.unit.kernel.task.test_export:[39:47]
        self.run_parameter_test(graph, modelica_model, parameters,
                                expected_units)

    def test_pump_export(self):
        graph, _ = self.helper.get_simple_pump()
        answers = ()
        reads = (self.loaded_libs, graph)
        modelica_model = self.run_task(answers, reads)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[497:510]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[347:357]
                            check=check_numeric(min_value=0 * ureg.watt),
                            attributes=['rated_power'])

    def get_port_name(self, port):
        # TODO heat pumps might have 4 ports (if source is modeld in BIM)
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[467:480]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[322:334]
                            check=check_numeric(min_value=0 * ureg.watt),
                            attributes=['rated_power'])

    def get_port_name(self, port):
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[452:460]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[245:253]
    represents = [hvac.HeatPump]

    def __init__(self, element):
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium_con',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[342:350]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[351:357]
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[285:293]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[326:334]
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[174:182]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[235:243]
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[83:91]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[101:109]
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[125:133]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[65:73]
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[48:56]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[35:45]
        if port.verbose_flow_direction == 'SINK':
            return 'port_a'
        if port.verbose_flow_direction == 'SOURCE':
            return 'port_b'
        else:
            return super().get_port_name(port)  # ToDo: Gas connection

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[17:25]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[17:25]
    represents = [hvac.Boiler]

    def __init__(self, element):
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.examples.e1_simple_project_hvac_aixlib:[25:33]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.examples.e1_simple_project_hvac_hkesim:[22:30]
    ifc_paths = {
        IFCDomain.hydraulic:
            Path(bim2sim.__file__).parent.parent /
            'test/resources/hydraulic/ifc/'
            'hvac_heating.ifc'
    }
    # Create a project including the folder structure for the project with
    # teaser as backend and no specified workflow (default workflow is taken)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.examples.e1_simple_project_hvac_hkesim:[38:44]
==bim2sim.plugins.PluginHKESim.test.integration.test_hkesim:[62:68]
        project.sim_settings.aggregations = [
            'UnderfloorHeating',
            'Consumer',
            'PipeStrand',
            'ParallelPump',
            'ConsumerHeatingDistributorModule',
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[181:196]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[187:202]
        project.sim_settings.create_external_elements = True
        project.sim_settings.run_full_simulation = True
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesAC20-Institute-Var-2_with_SB-1-0.json"
        answers = ('Other', 2015)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    @unittest.skip("")
    def test_DigitalHub_SB89(self):
        """Test DigitalHub IFC, includes regression test"""
        ifc_names = {IFCDomain.arch:  'FM_ARC_DigitalHub_with_SB89.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[142:152]
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[147:157]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    @unittest.skip('skip layers_full test until new answers are created')
    def test_run_kitoffice_spaces_medium_layers_full(self):
        """Run project with AC20-Institute-Var-2.ifc"""
        ifc_names = {IFCDomain.arch:  'AC20-Institute-Var-2.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[58:65]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[58:65]
        export_path = self.project.paths.export / \
                      'EnergyPlus'/'SimResults'/self.project.name
        sim_csv = export_path / 'eplusout.csv'
        sim_htm = export_path / 'eplustbl.htm'
        # set directory for regression test results
        regression_results_dir = self.project.paths.root / \
                                 'regression_results' / 'bps' / \
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.__init__:[26:32]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e4_visualize_zone_binding:[40:46]
        common.CreateElementsOnIfcTypes,
        bps.CreateSpaceBoundaries,
        bps.AddSpaceBoundaries2B,
        bps.CorrectSpaceBoundaries,
        common.CreateRelations,
        bps.DisaggregationCreationAndTypeCheck,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.tasks.hvac.dead_ends:[144:150]
==bim2sim.tasks.hvac.expansiontanks:[109:115]
                decisions.append(cur_decision)
            yield decisions
            answers = decisions.to_answer_dict()
            n_removed = 0
            for element, answer in answers.items():
                if answer:
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.examples.e1_template_plugin:[28:53]
==bim2sim.examples.e2_interactive_project:[27:37]
    ifc_paths = {
        IFCDomain.arch:
            Path(bim2sim.__file__).parent.parent /
            'test/resources/arch/ifc/AC20-FZK-Haus.ifc',
    }

    # Create a new project, based on the created temporary directory, the
    # defined ifc_paths and the template plugin. The template plugin is just
    # for explanation and holds some basic tasks to convert IFC data into
    # bim2sim elements structure without creating any simulation models.
    # By looking into the plugin definition we can find the following:
    # default_tasks = [
    #     common.LoadIFC,
    #     common.CheckIfc,
    #     common.CreateElements,
    #     bps.CreateSpaceBoundaries,
    #     common.BindStoreys,
    #     common.Weather,
    # ]
    # This means that these 7 tasks are performed when not using interactive
    # mode (see e2_interactive_project.py for more information about
    # interactive mode). For detailed information about the different tasks
    # please have a look at their documentation.

    project = Project.create(
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.elements.hvac_elements:[75:81]
==bim2sim.tasks.hvac.fixports:[118:125]
            z_direction = np.array(relative_placement.Axis.DirectionRatios)
        except AttributeError:
            x_direction = np.array([1, 0, 0])
            z_direction = np.array([0, 0, 1])
        y_direction = np.cross(z_direction, x_direction)
        directions = np.array((x_direction, y_direction, z_direction)).T
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e2_complex_project_energyplus:[84:91]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[197:202]
    answers = (space_boundary_genenerator,
               *handle_proxies,
               construction_year)
    handler = DebugDecisionHandler(answers)
    handler.handle(project.run())

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.export.modelica.standardlibrary:[93:101]
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[524:532]
    represents = [hvac.Storage]

    def __init__(self, element):
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[147:156]
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[35:43]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    @unittest.skip("")
    def test_base_06_KIT_Inst_full_run(self):
        """Test Original IFC File from Institute (KIT)"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.integration.test_aixlib:[52:60]
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[23:31]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    def test_run_b03_heating(self):
        """Run project with 2022_11_21_update_B03_Heating_ownCells"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.integration.test_usage:[11:18]
==bim2sim.plugins.PluginTEASER.test.integration.test_useage:[11:18]
            assert issubclass(plugin, Plugin)
        except ImportError as err:
            self.fail("Unable to import plugin\nreason: %s"%(err))


if __name__ == '__main__':
    unittest.main()
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[70:79]
==bim2sim.plugins.PluginTEASER.test.regression.test_teaser:[178:183]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project export did not finish successfully.")
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[117:122]
==bim2sim.plugins.PluginTEASER.test.regression.test_teaser:[139:144]
        project.sim_settings.ahu_tz_overwrite = False
        answers = ()
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e3_load_energyplus_simulation_results:[40:45]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj:[70:75]
    project.sim_settings.sim_results = [
        "heat_demand_total", "cool_demand_total",
        "heat_demand_rooms", "cool_demand_rooms",
        "heat_energy_total", "cool_energy_total",
        "heat_energy_rooms", "cool_energy_rooms",
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e1_simple_project_bps_teaser:[55:60]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e3_load_teaser_simulation_results:[43:48]
    project.sim_settings.sim_results = [
        "heat_demand_total", "cool_demand_total",
        "heat_demand_rooms", "cool_demand_rooms",
        "heat_energy_total", "cool_energy_total",
        "heat_energy_rooms", "cool_energy_rooms",
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e1_simple_project_energyplus:[20:27]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[18:25]
    project_path = Path(
        tempfile.TemporaryDirectory(prefix='bim2sim_example1').name)

    # Set the ifc path to use and define which domain the IFC belongs to
    ifc_paths = {
        IFCDomain.arch:
            Path(bim2sim.__file__).parent.parent /
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[38:47]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj:[40:49]
    project.sim_settings.setpoints_from_template = True

    project.sim_settings.ahu_heating_overwrite = True
    project.sim_settings.ahu_cooling_overwrite = True
    project.sim_settings.ahu_heat_recovery_overwrite = True

    # overwrite existing layer structures and materials based on templates
    project.sim_settings.layers_and_materials = LOD.low
    # specify templates for the layer and material overwrite
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e4_visualize_zone_binding:[21:26]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj:[18:25]
    project_path = Path(
        tempfile.TemporaryDirectory(prefix='bim2sim_example1').name)

    # Set the ifc path to use and define which domain the IFC belongs to
    ifc_paths = {
        IFCDomain.arch:
            Path(bim2sim.__file__).parent.parent /
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.test.unit.kernel.task.test_export:[20:25]
==bim2sim.plugins.PluginHKESim.test.unit.kernel.task.test_export:[32:37]
        graph = self.helper.get_simple_radiator()
        answers = ()
        reads = (self.loaded_libs, graph)
        modelica_model = self.run_task(answers, reads)
        parameters = [('rated_power', 'Q_flow_nominal'),
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[512:522]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[311:319]
    represents = [hvac.CHP]

    def __init__(self, element):
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[482:489]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[275:282]
    represents = [hvac.Chiller]

    def __init__(self, element):
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium_con',
                            unit=None,
                            required=False,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[138:143]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[248:253]
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium_con',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[435:441]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[121:127]
        try:
            index = self.element.ports.index(port)
        except ValueError:
            # unknown port
            index = -1
        if index == 0:
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[93:101]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[75:83]
    represents = [hvac.Pump]

    def __init__(self, element):
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[515:522]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[339:344]
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[527:532]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[314:319]
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[96:101]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[114:121]
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)

    def get_port_name(self, port):
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[301:306]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[78:83]
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[20:25]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[50:55]
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__:[61:66]
==bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__:[20:25]
        super().__init__(element)
        self._set_parameter(name='redeclare package Medium',
                            unit=None,
                            required=False,
                            value=MEDIUM_WATER)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginLCA.test.integration.test_lca:[28:34]
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[105:115]
        answers = ()
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginLCA.test.integration.test_lca:[28:33]
==bim2sim.plugins.PluginTEASER.test.integration.test_teaser:[69:74]
        answers = ()
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginHKESim.test.integration.test_hkesim:[51:59]
==bim2sim.plugins.PluginLCA.test.integration.test_lca:[29:34]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    def test_run_b03_heating(self):
        """Run project with 2022_11_21_update_B03_Heating_ownCells.ifc"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[276:284]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[380:387]
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)


if __name__ == '__main__':
    unittest.main()
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[232:263]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[239:270]
        project.sim_settings.create_external_elements = True
        project.sim_settings.prj_use_conditions = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "UseConditionsFM_ARC_DigitalHub.json"
        project.sim_settings.prj_custom_usages = Path(
            bim2sim.__file__).parent.parent / \
            "test/resources/arch/custom_usages/" \
            "customUsagesFM_ARC_DigitalHub_fixed002.json"
        space_boundary_genenerator = 'Other'
        handle_proxies = (*(None,)*12,)
        construction_year = 2015
        project.sim_settings.split_bounds = True
        project.sim_settings.add_shadings = True
        project.sim_settings.split_shadings = True
        project.sim_settings.run_full_simulation = True
        answers = (space_boundary_genenerator,
                   *handle_proxies,
                   construction_year,
                   project.sim_settings.split_bounds,
                   project.sim_settings.add_shadings,
                   project.sim_settings.split_shadings,
                   project.sim_settings.run_full_simulation)
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    # @unittest.skip("Skipped due to performance for CI")
    def test_base_13_EDC_SB_design_day(self):
        """Test KIT KHH 3 storey IFC with generated Space Boundaries"""
        ifc_names = {IFCDomain.arch:  'KIT-EDC_with_SB.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[91:101]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[95:105]
        answers = ()
        handler = DebugDecisionHandler(answers)
        return_code = handler.handle(project.run())
        self.assertEqual(0, return_code)

    # @unittest.skip("")
    def test_base_03_FZK_SB_design_day(self):
        """Test IFC File from FZK-Haus (KIT) with generated Space Boundaries"""
        # ifc_names = {IFCDomain.arch:  'AC20-FZK-Haus_with_SB44.ifc'}
        ifc_names = {IFCDomain.arch:  'AC20-FZK-Haus_with_SB55.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[79:88]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[83:92]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value)

    @unittest.skip("")
    def test_base_02_FZK_design_day(self):
        """Test Original IFC File from FZK-Haus (KIT)"""
        ifc_names = {IFCDomain.arch:  'AC20-FZK-Haus.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[264:271]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[311:316]
        project.sim_settings.create_external_elements = True
        project.sim_settings.split_bounds = True
        project.sim_settings.add_shadings = True
        project.sim_settings.split_shadings = True
        project.sim_settings.run_full_simulation = False
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[70:75]
==bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus:[72:79]
        project.sim_settings.create_external_elements = True
        project.sim_settings.split_bounds = True
        project.sim_settings.add_shadings = True
        project.sim_settings.split_shadings = True
        project.sim_settings.run_full_simulation = True
        # project.sim_settings.ep_install_path = 'C://EnergyPlusV9-4-0/'
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_comfort:[142:151]
==bim2sim.plugins.PluginLCA.test.integration.test_lca:[18:26]
        handler = DebugDecisionHandler(answers)
        for decision, answer in handler.decision_answer_mapping(project.run()):
            decision.value = answer
        self.assertEqual(0, handler.return_value,
                         "Project did not finish successfully.")

    def test_run_ERC_lca(self):
        """Run project with AC20-FZK-Haus.ifc"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.integration.test_useage:[11:18]
==bim2sim.plugins.PluginLCA.test.integration.test_useage:[11:18]
            assert issubclass(plugin, Plugin)
        except ImportError as err:
            self.fail("Unable to import plugin\nreason: %s"%(err))


if __name__ == '__main__':
    unittest.main()
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[198:207]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[168:176]
        reg_test_res = self.run_regression_test()
        self.assertEqual(True, reg_test_res,
                         "EnergyPlus Regression test did not finish "
                         "successfully or created deviations.")

    @unittest.skip("No regression results available")
    def test_regression_DigitalHub_SB89(self):
        """Test DigitalHub IFC, includes regression test."""
        ifc_names = {IFCDomain.arch: 'FM_ARC_DigitalHub_with_SB89.ifc'}
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[107:112]
==bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus:[107:112]
        if not (list(self.ref_results_src_path.rglob("*.htm")) and list(
                self.ref_results_src_path.rglob("*.csv"))):
            logger.error(
                f"No Regression Results found in {self.ref_results_src_path} "
                f"to perform regression test via simulation.")
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.test.regression.test_comfort:[229:234]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[93:100]
    answers = (space_boundary_genenerator,
               *handle_proxies,
               construction_year)
    handler = DebugDecisionHandler(answers)
    handler.handle(project.run())

1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.task.create_result_df:[89:95]
==bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.create_result_df:[174:183]
        for column in df_final:
            for key, unit in unit_mapping.items():
                if key in column:
                    df_final[column] = PintArray(df_final[column], unit)

        return df_final

    def select_wanted_results(self):
        """Selected only the wanted outputs based on sim_setting sim_results"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.examples.e3_load_comfort_simulation_results:[42:47]
==bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser:[67:72]
    project.sim_settings.sim_results = [
        "heat_demand_total", "cool_demand_total",
        "heat_demand_rooms", "cool_demand_rooms",
        "heat_energy_total", "cool_energy_total",
        "heat_energy_rooms", "cool_energy_rooms",
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.plugins.PluginComfort.bim2sim_comfort.__init__:[23:28]
==bim2sim.plugins.PluginTemplate.bim2sim_template.__init__:[12:17]
    default_tasks = [
        common.LoadIFC,
        common.CheckIfc,
        common.CreateElementsOnIfcTypes,
        bps.CreateSpaceBoundaries,
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.tasks.bps.disaggr_creation:[50:57]
==bim2sim.tasks.bps.sb_creation:[82:87]
        for ele in elements.values():
            # only handle BPSProductWithLayers
            if not any([isinstance(ele, bps_product_layer_ele) for
                        bps_product_layer_ele in
                        all_subclasses(BPSProductWithLayers)]):
                continue
            # no disaggregation needed
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.tasks.hvac.dead_ends:[154:167]
==bim2sim.tasks.hvac.expansiontanks:[118:127]
                    if playground:
                        playground.update_graph(graph)
                else:
                    raise NotImplementedError()
                    # TODO: handle real storages
                    # maybe add ports to the storage and select the related
                    # dead end, with which the new storage port should be
                    # connected
        return graph, n_removed
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.elements.bps_elements:[909:917]
==bim2sim.utilities.visualize_spaces:[67:76]
        settings = ifcopenshell.geom.settings()
        settings.set(settings.USE_PYTHON_OPENCASCADE, True)
        settings.set(settings.USE_WORLD_COORDS, True)
        settings.set(settings.EXCLUDE_SOLIDS_AND_SURFACES, False)
        settings.set(settings.INCLUDE_CURVES, True)

        # check if the space boundary shapes need a unit conversion (i.e.,
        # an additional transformation to the correct size and position)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.elements.bps_elements:[235:240]
==bim2sim.tasks.bps.sb_2b_generation:[143:148]
        settings = ifcopenshell.geom.main.settings()
        settings.set(settings.USE_PYTHON_OPENCASCADE, True)
        settings.set(settings.USE_WORLD_COORDS, True)
        settings.set(settings.EXCLUDE_SOLIDS_AND_SURFACES, False)
        settings.set(settings.INCLUDE_CURVES, True)
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==bim2sim.elements.base_elements:[621:627]
==bim2sim.elements.bps_elements:[1277:1285]
        prefix_length = len(prefix)
        if prefix_length > 10:
            raise AttributeError("Max prefix length is 10!")
        ifcopenshell_guid = guid.new()[prefix_length + 1:]
        return f"{prefix}{ifcopenshell_guid}"

    @classmethod
    def pre_validate(cls, ifc) -> bool:
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim.elements.base_elements -> bim2sim.elements.mapping.finder -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim.tasks.bps -> bim2sim.tasks.bps.sb_2b_generation)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.sim_settings -> bim2sim.elements.bps_elements -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.sb_2b_generation -> bim2sim.elements.bps_elements -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.sb_creation -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.utilities.common_functions -> bim2sim.elements.base_elements -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.sim_settings -> bim2sim.elements.hvac_elements -> bim2sim.elements.base_elements -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.sim_settings -> bim2sim.elements.base_elements -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.sim_settings -> bim2sim.elements.bps_elements -> bim2sim.elements.base_elements -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.disaggr_creation -> bim2sim.elements.aggregation.bps_aggregations -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim.elements.base_elements -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.sb_creation -> bim2sim.elements.mapping.filter -> bim2sim.elements.base_elements -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.plot_results -> bim2sim.kernel.ifc_file -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.common -> bim2sim.tasks.common.check_ifc -> bim2sim.kernel.ifc_file -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.common -> bim2sim.tasks.common.serialize_elements -> bim2sim.elements.base_elements -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.common -> bim2sim.tasks.common.create_elements -> bim2sim.kernel.ifc_file -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.common -> bim2sim.tasks.common.create_relations -> bim2sim.elements.bps_elements -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.common -> bim2sim.tasks.common.weather -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.common -> bim2sim.tasks.common.load_ifc -> bim2sim.kernel.ifc_file -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.enrich_use_cond -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.combine_tz -> bim2sim.elements.aggregation.bps_aggregations -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.enrich_material -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.sb_2b_generation -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.sb_correction -> bim2sim.utilities.common_functions)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim -> bim2sim.project -> bim2sim.plugins -> bim2sim.tasks.bps -> bim2sim.tasks.bps.plot_results -> bim2sim.utilities.svg_utils -> bim2sim.kernel.ifc_file -> bim2sim.elements.mapping.finder)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task -> bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.create_result_df)
1 0 refactor cyclic-import R0401
Cyclic import (bim2sim.plugins.PluginTEASER.bim2sim_teaser.export -> bim2sim.plugins.PluginTEASER.bim2sim_teaser.models)
237 0 convention line-too-long C0301
Line too long (86/80)
307 0 convention line-too-long C0301
Line too long (82/80)

Module bim2sim.export.modelica (bim2sim/export/modelica/__init__.py)

Line Col. Type Symbol ID Obj Message
23 5 warning unspecified-encoding W1514
Using open without explicitly specifying an encoding
69 4 refactor too-many-locals R0914 ModelicaModel.set_positions
Too many local variables (19/15)
95 16 convention invalid-name C0103 ModelicaModel.set_positions
Variable name "x" doesn't conform to snake_case naming style
96 16 convention invalid-name C0103 ModelicaModel.set_positions
Variable name "y" doesn't conform to snake_case naming style
236 8 warning pointless-string-statement W0105 ModelicaElement._lookup_add
String statement has no effect
296 20 convention consider-using-f-string C0209 ModelicaElement.init_factory
Formatting a regular string which could be a f-string
336 8 convention invalid-name C0103 ModelicaElement.modelica_parameters
Variable name "mp" doesn't conform to snake_case naming style
350 28 warning unused-argument W0613 ModelicaElement.get_port_name
Unused argument 'port'
370 15 convention consider-using-f-string C0209 ModelicaElement.get_full_port_name
Formatting a regular string which could be a f-string
373 15 convention consider-using-f-string C0209 ModelicaElement.__repr__
Formatting a regular string which could be a f-string
376 0 refactor too-many-instance-attributes R0902 ModelicaParameter
Too many instance attributes (11/7)
459 21 convention consider-using-f-string C0209 ModelicaParameter._create_parameter_decision
Formatting a regular string which could be a f-string
460 31 convention consider-using-f-string C0209 ModelicaParameter._create_parameter_decision
Formatting a regular string which could be a f-string
516 12 warning logging-fstring-interpolation W1203 ModelicaParameter.collect
Use lazy % formatting in logging functions
553 8 refactor no-else-return R1705 ModelicaParameter.get_attribute_value
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
558 4 refactor inconsistent-return-statements R1710 ModelicaParameter.convert_parameter
Either all return statements in a function should return an expression, or none of them should.
568 8 refactor no-else-return R1705 ModelicaParameter.convert_parameter
Unnecessary "elif" after "return", remove the leading "el" from "elif"
575 4 convention missing-function-docstring C0116 ModelicaParameter.to_modelica
Missing function or method docstring
582 0 refactor too-many-return-statements R0911 parse_to_modelica
Too many return statements (12/6)
582 0 refactor too-many-branches R0912 parse_to_modelica
Too many branches (17/12)
608 4 refactor no-else-return R1705 parse_to_modelica
Unnecessary "elif" after "return", remove the leading "el" from "elif"
623 8 refactor no-else-return R1705 parse_to_modelica
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
698 0 convention missing-class-docstring C0115 Dummy
Missing class docstring

Module bim2sim.export.modelica.standardlibrary (bim2sim/export/modelica/standardlibrary.py)

Line Col. Type Symbol ID Obj Message
9 0 warning unused-import W0611
Unused ModelicaParameter imported from bim2sim.export.modelica
15 0 convention missing-class-docstring C0115 Parameter
Missing class docstring
25 0 convention missing-class-docstring C0115 StaticPipe
Missing class docstring
56 8 refactor no-else-return R1705 StaticPipe.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
62 0 convention missing-class-docstring C0115 Valve
Missing class docstring
86 8 refactor no-else-return R1705 Valve.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
92 0 convention missing-class-docstring C0115 ClosedVolume
Missing class docstring
109 8 refactor no-else-return R1705 ClosedVolume.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
114 19 convention consider-using-f-string C0209 ClosedVolume.get_port_name
Formatting a regular string which could be a f-string
117 0 convention missing-class-docstring C0115 TeeJunctionVolume
Missing class docstring
134 8 refactor no-else-return R1705 TeeJunctionVolume.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
139 19 convention consider-using-f-string C0209 TeeJunctionVolume.get_port_name
Formatting a regular string which could be a f-string
140 13 warning fixme W0511
TODO: name ports by flow direction?

Module bim2sim.kernel.decision.__init__ (bim2sim/kernel/decision/__init__.py)

Line Col. Type Symbol ID Obj Message
56 0 convention line-too-long C0301
Line too long (85/80)
92 0 convention line-too-long C0301
Line too long (103/80)
102 0 convention line-too-long C0301
Line too long (83/80)
107 0 convention line-too-long C0301
Line too long (83/80)
157 0 convention line-too-long C0301
Line too long (94/80)
178 0 convention line-too-long C0301
Line too long (81/80)
273 0 convention line-too-long C0301
Line too long (90/80)
275 0 convention line-too-long C0301
Line too long (92/80)
277 0 convention line-too-long C0301
Line too long (85/80)
308 0 convention line-too-long C0301
Line too long (87/80)
369 0 convention line-too-long C0301
Line too long (84/80)
392 0 convention line-too-long C0301
Line too long (104/80)
397 0 convention line-too-long C0301
Line too long (102/80)
464 0 convention line-too-long C0301
Line too long (83/80)

Module bim2sim.kernel.decision (bim2sim/kernel/decision/__init__.py)

Line Col. Type Symbol ID Obj Message
46 4 convention invalid-name C0103 Status
Class constant name "pending" doesn't conform to UPPER_CASE naming style
47 4 convention invalid-name C0103 Status
Class constant name "ok" doesn't conform to UPPER_CASE naming style
48 4 convention invalid-name C0103 Status
Class constant name "skipped" doesn't conform to UPPER_CASE naming style
49 4 convention invalid-name C0103 Status
Class constant name "error" doesn't conform to UPPER_CASE naming style
52 0 convention missing-function-docstring C0116 convert_0_to_0_1
Missing function or method docstring
61 0 refactor inconsistent-return-statements R1710 convert
Either all return statements in a function should return an expression, or none of them should.
67 0 refactor too-many-instance-attributes R0902 Decision
Too many instance attributes (17/7)
115 4 refactor too-many-arguments R0913 Decision.__init__
Too many arguments (13/5)
160 8 refactor no-else-return R1705 Decision.value
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
178 29 convention consider-using-f-string C0209 Decision.value
Formatting a regular string which could be a f-string
236 15 convention unidiomatic-typecheck C0123 Decision.validate
Use isinstance() rather than type() for a typecheck.
242 16 warning bare-except W0702 Decision.validate
No exception type(s) specified
263 15 convention unidiomatic-typecheck C0123 Decision.reset_from_deserialized
Use isinstance() rather than type() for a typecheck.
313 15 convention consider-using-f-string C0209 Decision.__repr__
Formatting a regular string which could be a f-string
335 12 warning bare-except W0702 RealDecision.convert
No exception type(s) specified
343 12 warning bare-except W0702 RealDecision._validate
No exception type(s) specified
350 15 convention consider-using-f-string C0209 RealDecision.get_question
Formatting a regular string which could be a f-string
355 4 convention missing-function-docstring C0116 RealDecision.get_debug_answer
Missing function or method docstring
356 17 error no-member E1101 RealDecision.get_debug_answer
Super of 'RealDecision' has no 'get_debug_answer' member
383 4 warning arguments-differ W0221 BoolDecision._validate
Number of parameters was 2 in 'Decision._validate' and is now 1 in overriding 'BoolDecision._validate' method
419 8 refactor no-else-return R1705 ListDecision.choices
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
504 12 warning raising-format-tuple W0715 DecisionBunch.validate_global_keys
Exception arguments suggest string formatting might be intended
548 9 warning unspecified-encoding W1514 save
Using open without explicitly specifying an encoding
557 13 warning unspecified-encoding W1514 load
Using open without explicitly specifying an encoding
560 8 warning logging-fstring-interpolation W1203 load
Use lazy % formatting in logging functions
569 8 warning bare-except W0702 load
No exception type(s) specified

Module bim2sim.kernel.decision.console (bim2sim/kernel/decision/console.py)

Line Col. Type Symbol ID Obj Message
7 0 convention line-too-long C0301
Line too long (81/80)
15 4 convention missing-function-docstring C0116 ConsoleDecisionHandler.get_input_txt
Missing function or method docstring
26 4 convention missing-function-docstring C0116 ConsoleDecisionHandler.get_default_txt
Missing function or method docstring
27 8 refactor no-else-return R1705 ConsoleDecisionHandler.get_default_txt
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
33 4 convention missing-function-docstring C0116 ConsoleDecisionHandler.get_options_txt
Missing function or method docstring
34 15 convention consider-using-f-string C0209 ConsoleDecisionHandler.get_options_txt
Formatting a regular string which could be a f-string
37 4 convention missing-function-docstring C0116 ConsoleDecisionHandler.get_body_txt
Missing function or method docstring
50 4 convention missing-function-docstring C0116 ConsoleDecisionHandler.collection_progress
Missing function or method docstring
53 28 convention consider-using-f-string C0209 ConsoleDecisionHandler.collection_progress
Formatting a regular string which could be a f-string
62 11 refactor use-a-generator R1729 ConsoleDecisionHandler.get_answers_for_bunch
Use a generator instead 'all(d.allow_skip for d in bunch)'
83 16 warning unused-variable W0612 ConsoleDecisionHandler.get_answers_for_bunch
Unused variable 'ex'
89 5 warning fixme W0511
TODO: based on decision type
90 5 warning fixme W0511
TODO: merge from element_filter_by_text
91 4 convention missing-function-docstring C0116 ConsoleDecisionHandler.user_input
Missing function or method docstring
91 4 refactor too-many-branches R0912 ConsoleDecisionHandler.user_input
Too many branches (16/12)
125 0 convention line-too-long C0301
Line too long (91/80)
129 0 convention line-too-long C0301
Line too long (97/80)
132 0 convention line-too-long C0301
Line too long (95/80)
139 16 refactor no-else-break R1723 ConsoleDecisionHandler.user_input
Unnecessary "else" after "break", remove the "else" and de-indent the code inside it
146 0 convention line-too-long C0301
Line too long (100/80)
154 4 convention missing-function-docstring C0116 ConsoleDecisionHandler.user_input_live
Missing function or method docstring
154 4 refactor too-many-locals R0914 ConsoleDecisionHandler.user_input_live
Too many local variables (16/15)
154 4 refactor too-many-branches R0912 ConsoleDecisionHandler.user_input_live
Too many branches (19/12)
154 4 refactor too-many-statements R0915 ConsoleDecisionHandler.user_input_live
Too many statements (55/50)
167 0 convention line-too-long C0301
Line too long (87/80)
169 0 convention line-too-long C0301
Line too long (93/80)
171 0 convention line-too-long C0301
Line too long (91/80)
176 16 refactor no-else-break R1723 ConsoleDecisionHandler.user_input_live
Unnecessary "else" after "break", remove the "else" and de-indent the code inside it
183 0 convention line-too-long C0301
Line too long (100/80)
189 16 refactor no-else-break R1723 ConsoleDecisionHandler.user_input_live
Unnecessary "elif" after "break", remove the leading "el" from "elif"
201 20 refactor no-else-break R1723 ConsoleDecisionHandler.user_input_live
Unnecessary "elif" after "break", remove the leading "el" from "elif"
205 30 convention consider-using-f-string C0209 ConsoleDecisionHandler.user_input_live
Formatting a regular string which could be a f-string
232 11 convention unidiomatic-typecheck C0123 ConsoleDecisionHandler.get_matches_list
Use isinstance() rather than type() for a typecheck.
236 45 convention consider-using-f-string C0209 ConsoleDecisionHandler.get_matches_list
Formatting a regular string which could be a f-string
257 8 warning bare-except W0702 ConsoleDecisionHandler.parse_real_input
No exception type(s) specified
278 15 warning broad-exception-caught W0718 ConsoleDecisionHandler.parse_list_input
Catching too general exception Exception
288 15 warning broad-exception-caught W0718 ConsoleDecisionHandler.parse_string_input
Catching too general exception Exception
298 15 warning broad-exception-caught W0718 ConsoleDecisionHandler.parse_guid_input
Catching too general exception Exception

Module bim2sim.kernel.decision.decisionhandler (bim2sim/kernel/decision/decisionhandler.py)

Line Col. Type Symbol ID Obj Message
17 0 convention line-too-long C0301
Line too long (82/80)
32 1 warning fixme W0511
TODO: contextmanager (shutdown) or how to make sure shutdown is called?
67 8 refactor too-many-nested-blocks R1702 DecisionHandler.handle
Too many nested blocks (6/5)
116 4 convention missing-function-docstring C0116 DecisionHandler.get_question
Missing function or method docstring
119 4 convention missing-function-docstring C0116 DecisionHandler.get_body
Missing function or method docstring
122 4 convention missing-function-docstring C0116 DecisionHandler.get_options
Missing function or method docstring
125 4 convention missing-function-docstring C0116 DecisionHandler.validate
Missing function or method docstring
130 8 warning unnecessary-pass W0107 DecisionHandler.shutdown
Unnecessary pass statement
132 4 convention missing-function-docstring C0116 DecisionHandler.parse
Missing function or method docstring
132 4 refactor inconsistent-return-statements R1710 DecisionHandler.parse
Either all return statements in a function should return an expression, or none of them should.
133 8 refactor no-else-return R1705 DecisionHandler.parse
Unnecessary "elif" after "return", remove the leading "el" from "elif"
155 12 warning raise-missing-from W0707 DecisionHandler.parse_real_input
Consider explicitly re-raising using 'except Exception as exc' and 'raise NotImplementedError('Parsing real not implemented.') from exc'
166 4 convention missing-function-docstring C0116 DecisionHandler.parse_list_input
Missing function or method docstring
170 12 warning raise-missing-from W0707 DecisionHandler.parse_list_input
Consider explicitly re-raising using 'except Exception as exc' and 'raise NotImplementedError('Parsing list index not implemented.') from exc'
174 4 convention missing-function-docstring C0116 DecisionHandler.parse_string_input
Missing function or method docstring
178 12 warning raise-missing-from W0707 DecisionHandler.parse_string_input
Consider explicitly re-raising using 'except Exception as exc' and 'raise NotImplementedError('Parsing string not implemented.') from exc'
182 4 convention missing-function-docstring C0116 DecisionHandler.parse_guid_input
Missing function or method docstring
186 12 warning raise-missing-from W0707 DecisionHandler.parse_guid_input
Consider explicitly re-raising using 'except Exception as exc' and 'raise NotImplementedError('Parsing guid not implemented.') from exc'
205 0 convention line-too-long C0301
Line too long (107/80)
205 12 warning raise-missing-from W0707 DebugDecisionHandler.get_answers_for_bunch
Consider explicitly re-raising using 'except StopIteration as exc' and 'raise AssertionError(f'Not enough answers provided. First decision with no answer: {decision}') from exc'
205 96 error used-before-assignment E0601 DebugDecisionHandler.get_answers_for_bunch
Using variable 'decision' before assignment
212 12 warning logging-fstring-interpolation W1203 DebugDecisionHandler.decision_answer_mapping
Use lazy % formatting in logging functions

Module bim2sim.kernel.decorators (bim2sim/kernel/decorators.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring

Module bim2sim.kernel.ifc_file (bim2sim/kernel/ifc_file.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
40 4 convention missing-function-docstring C0116 IfcFileClass.initialize_finder
Missing function or method docstring
62 8 warning logging-fstring-interpolation W1203 IfcFileClass.get_ifc_units
Use lazy % formatting in logging functions
70 26 convention consider-using-f-string C0209 IfcFileClass.get_ifc_units
Formatting a regular string which could be a f-string
73 30 convention consider-using-f-string C0209 IfcFileClass.get_ifc_units
Formatting a regular string which could be a f-string
82 12 warning bare-except W0702 IfcFileClass.get_ifc_units
No exception type(s) specified
83 16 warning logging-fstring-interpolation W1203 IfcFileClass.get_ifc_units
Use lazy % formatting in logging functions

Module bim2sim.kernel.log (bim2sim/kernel/log.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
12 1 warning fixme W0511
TODO: check log calls
13 1 warning fixme W0511
TODO: fix errors exposed by log messages
16 0 convention missing-class-docstring C0115 AudienceFilter
Missing class docstring
16 0 refactor too-few-public-methods R0903 AudienceFilter
Too few public methods (1/2)
26 0 refactor too-few-public-methods R0903 ThreadLogFilter
Too few public methods (1/2)
37 0 convention missing-function-docstring C0116 get_user_logger
Missing function or method docstring
50 4 convention missing-function-docstring C0116 BufferedHandler.flush_buffer
Missing function or method docstring
182 8 convention invalid-name C0103 CustomFormatter.format
Variable name "FORMATS" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginAixLib (bim2sim/plugins/PluginAixLib/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention invalid-name C0103
Module name "PluginAixLib" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginAixLib.bim2sim_aixlib.__init__ (bim2sim/plugins/PluginAixLib/bim2sim_aixlib/__init__.py)

Line Col. Type Symbol ID Obj Message
17 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple

Module bim2sim.plugins.PluginAixLib.bim2sim_aixlib (bim2sim/plugins/PluginAixLib/bim2sim_aixlib/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
19 4 convention missing-function-docstring C0116 LoadLibrariesAixLib.overwrite_standarlib_models
Missing function or method docstring
23 0 convention missing-class-docstring C0115 PluginAixLib
Missing class docstring
23 0 refactor too-few-public-methods R0903 PluginAixLib
Too few public methods (1/2)

Module bim2sim.plugins.PluginAixLib.bim2sim_aixlib.examples.e1_simple_project_hvac_aixlib (bim2sim/plugins/PluginAixLib/bim2sim_aixlib/examples/e1_simple_project_hvac_aixlib.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
21 8 refactor consider-using-with R1732 run_example_simple_hvac_aixlib
Consider using 'with' for resource-allocating operations

Module bim2sim.plugins.PluginAixLib.bim2sim_aixlib.examples.e2_complex_project_hvac_aixlib (bim2sim/plugins/PluginAixLib/bim2sim_aixlib/examples/e2_complex_project_hvac_aixlib.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
23 8 refactor consider-using-with R1732 run_example_complex_hvac_aixlib
Consider using 'with' for resource-allocating operations
55 1 warning fixme W0511
TODO: following are not up2date

Module bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__ (bim2sim/plugins/PluginAixLib/bim2sim_aixlib/models/__init__.py)

Line Col. Type Symbol ID Obj Message
16 5 warning fixme W0511
TODO: The model BoilerGeneric does not exist in AixLib
54 49 warning fixme W0511
ToDo: Gas connection
184 5 warning fixme W0511
TODO: the model does not exists in AiLib
295 5 warning fixme W0511
TODO: the model does not exists in AiLib
472 9 warning fixme W0511
TODO: heat pumps might have 4 ports (if source is modeled in BIM)
502 9 warning fixme W0511
TODO heat pumps might have 4 ports (if source is modeld in BIM)

Module bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models (bim2sim/plugins/PluginAixLib/bim2sim_aixlib/models/__init__.py)

Line Col. Type Symbol ID Obj Message
11 0 convention missing-class-docstring C0115 AixLib
Missing class docstring
15 0 convention missing-class-docstring C0115 Boiler
Missing class docstring
51 8 refactor no-else-return R1705 Boiler.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
57 0 convention missing-class-docstring C0115 Radiator
Missing class docstring
86 8 refactor no-else-return R1705 Radiator.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
92 0 convention missing-class-docstring C0115 Pump
Missing class docstring
128 8 refactor no-else-return R1705 Pump.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
134 0 convention missing-class-docstring C0115 Consumer
Missing class docstring
177 8 refactor no-else-return R1705 Consumer.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
183 0 convention missing-class-docstring C0115 ConsumerHeatingDistributorModule
Missing class docstring
288 8 refactor no-else-return R1705 ConsumerHeatingDistributorModule.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
345 8 refactor no-else-return R1705 BoilerAggregation.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
351 0 convention missing-class-docstring C0115 Distributor
Missing class docstring
372 4 convention missing-function-docstring C0116 Distributor.get_n_ports
Missing function or method docstring
383 8 refactor no-else-return R1705 Distributor.get_port_name
Unnecessary "elif" after "return", remove the leading "el" from "elif"
391 4 convention missing-function-docstring C0116 Distributor.get_new_port_name
Missing function or method docstring
391 4 refactor too-many-arguments R0913 Distributor.get_new_port_name
Too many arguments (6/5)
397 11 convention unidiomatic-typecheck C0123 Distributor.get_new_port_name
Use isinstance() rather than type() for a typecheck.
406 12 convention invalid-name C0103 Distributor.get_new_port_name
Variable name "n" doesn't conform to snake_case naming style
408 25 convention consider-using-f-string C0209 Distributor.get_new_port_name
Formatting a regular string which could be a f-string
409 30 convention consider-using-f-string C0209 Distributor.get_new_port_name
Formatting a regular string which could be a f-string
413 0 convention missing-class-docstring C0115 ThreeWayValve
Missing class docstring
441 8 refactor no-else-return R1705 ThreeWayValve.get_port_name
Unnecessary "elif" after "return", remove the leading "el" from "elif"
451 0 convention missing-class-docstring C0115 Heatpump
Missing class docstring
475 8 refactor no-else-return R1705 Heatpump.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
481 0 convention missing-class-docstring C0115 Chiller
Missing class docstring
505 8 refactor no-else-return R1705 Chiller.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
511 0 convention missing-class-docstring C0115 CHP
Missing class docstring
523 0 convention missing-class-docstring C0115 Storage
Missing class docstring

Module bim2sim.plugins.PluginAixLib.bim2sim_aixlib.sim_settings (bim2sim/plugins/PluginAixLib/bim2sim_aixlib/sim_settings.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
21 0 convention missing-final-newline C0304
Final newline missing

Module bim2sim.plugins.PluginAixLib.test.integration.test_aixlib (bim2sim/plugins/PluginAixLib/test/integration/test_aixlib.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
4 0 warning unused-import W0611
Unused ConsoleDecisionHandler imported from bim2sim
4 0 warning unused-import W0611
Unused run_project imported from bim2sim
13 0 convention missing-class-docstring C0115 IntegrationBaseAixLib
Missing class docstring
22 0 convention missing-class-docstring C0115 TestIntegrationAixLib
Missing class docstring
27 41 convention trailing-whitespace C0303
Trailing whitespace
108 41 convention trailing-whitespace C0303
Trailing whitespace
130 9 warning fixme W0511
TODO check generator
137 43 convention trailing-whitespace C0303
Trailing whitespace
140 0 convention line-too-long C0301
Line too long (88/80)
143 0 convention line-too-long C0301
Line too long (81/80)

Module bim2sim.plugins.PluginAixLib.test.integration.test_usage (bim2sim/plugins/PluginAixLib/test/integration/test_usage.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
10 12 convention import-outside-toplevel C0415 TestUsage.test_import_plugin
Import outside toplevel (bim2sim.plugins.load_plugin, bim2sim.plugins.Plugin)
14 22 convention consider-using-f-string C0209 TestUsage.test_import_plugin
Formatting a regular string which could be a f-string
18 0 convention missing-final-newline C0304
Final newline missing

Module bim2sim.plugins.PluginAixLib.test.regression.prepare_regression_tests (bim2sim/plugins/PluginAixLib/test/regression/prepare_regression_tests.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 0 convention missing-function-docstring C0116 prepare_regression_tests
Missing function or method docstring

Module bim2sim.plugins.PluginAixLib.test.unit.kernel.task.test_export (bim2sim/plugins/PluginAixLib/test/unit/kernel/task/test_export.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
5 0 convention wrong-import-order C0411
standard import "from test.unit.tasks.hvac.test_export import TestStandardLibraryExports" should be placed before "from bim2sim.plugins.PluginAixLib.bim2sim_aixlib import LoadLibrariesAixLib"
8 0 convention missing-class-docstring C0115 TestAixLibExport
Missing class docstring
17 4 convention missing-function-docstring C0116 TestAixLibExport.test_boiler_export
Missing function or method docstring
20 4 convention missing-function-docstring C0116 TestAixLibExport.test_radiator_export
Missing function or method docstring
21 16 error no-member E1101 TestAixLibExport.test_radiator_export
Method 'helper' has no 'get_simple_radiator' member
32 4 convention missing-function-docstring C0116 TestAixLibExport.test_pump_export
Missing function or method docstring
33 19 error no-member E1101 TestAixLibExport.test_pump_export
Method 'helper' has no 'get_simple_pump' member
38 8 convention invalid-name C0103 TestAixLibExport.test_pump_export
Variable name "V_flow" doesn't conform to snake_case naming style
39 8 convention invalid-name C0103 TestAixLibExport.test_pump_export
Variable name "dp" doesn't conform to snake_case naming style
46 4 convention missing-function-docstring C0116 TestAixLibExport.test_consumer_export
Missing function or method docstring
47 19 error no-member E1101 TestAixLibExport.test_consumer_export
Method 'helper' has no 'get_simple_consumer' member
57 4 convention missing-function-docstring C0116 TestAixLibExport.test_consumer_heating_distributor_module_export
Missing function or method docstring
61 4 convention missing-function-docstring C0116 TestAixLibExport.test_consumer_boiler_aggregation_export
Missing function or method docstring
65 4 convention missing-function-docstring C0116 TestAixLibExport.test_consumer_distributor_export
Missing function or method docstring
68 4 convention missing-function-docstring C0116 TestAixLibExport.test_three_way_valve_export
Missing function or method docstring
69 16 error no-member E1101 TestAixLibExport.test_three_way_valve_export
Method 'helper' has no 'get_simple_three_way_valve' member
79 4 convention missing-function-docstring C0116 TestAixLibExport.test_heat_pump_export
Missing function or method docstring
80 16 error no-member E1101 TestAixLibExport.test_heat_pump_export
Method 'helper' has no 'get_simple_heat_pump' member
89 4 convention missing-function-docstring C0116 TestAixLibExport.test_chiller_export
Missing function or method docstring
90 16 error no-member E1101 TestAixLibExport.test_chiller_export
Method 'helper' has no 'get_simple_chiller' member
100 4 convention missing-function-docstring C0116 TestAixLibExport.test_consumer_CHP_export
Missing function or method docstring
100 4 convention invalid-name C0103 TestAixLibExport.test_consumer_CHP_export
Method name "test_consumer_CHP_export" doesn't conform to snake_case naming style
104 16 error no-member E1101 TestAixLibExport.test_storage_export
Method 'helper' has no 'get_simple_storage' member

Module bim2sim.plugins.PluginComfort (bim2sim/plugins/PluginComfort/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention invalid-name C0103
Module name "PluginComfort" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginComfort.bim2sim_comfort (bim2sim/plugins/PluginComfort/bim2sim_comfort/__init__.py)

Line Col. Type Symbol ID Obj Message
20 0 convention missing-class-docstring C0115 PluginComfort
Missing class docstring
20 0 refactor too-few-public-methods R0903 PluginComfort
Too few public methods (0/2)

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.examples.e1_simple_project_comfort_energyplus (bim2sim/plugins/PluginComfort/bim2sim_comfort/examples/e1_simple_project_comfort_energyplus.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
22 24 refactor consider-using-with R1732 run_example_1
Consider using 'with' for resource-allocating operations

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.examples.e3_load_comfort_simulation_results (bim2sim/plugins/PluginComfort/bim2sim_comfort/examples/e3_load_comfort_simulation_results.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
5 0 convention line-too-long C0301
Line too long (105/80)
22 4 error assignment-from-no-return E1111 run_example_load_existing_project
Assigning result of a function call, where the function has no return

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.sim_settings (bim2sim/plugins/PluginComfort/bim2sim_comfort/sim_settings.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
8 0 convention missing-class-docstring C0115 ComfortSimSettings
Missing class docstring
9 4 warning useless-parent-delegation W0246 ComfortSimSettings.__init__
Useless parent or super() delegation in method '__init__'

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.task.__init__ (bim2sim/plugins/PluginComfort/bim2sim_comfort/task/__init__.py)

Line Col. Type Symbol ID Obj Message
4 0 convention missing-final-newline C0304
Final newline missing

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.task (bim2sim/plugins/PluginComfort/bim2sim_comfort/task/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.task.create_result_df (bim2sim/plugins/PluginComfort/bim2sim_comfort/task/create_result_df.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
9 0 warning unused-import W0611
Unused ITask imported from bim2sim.tasks.base
11 0 convention line-too-long C0301
Line too long (98/80)
14 0 convention line-too-long C0301
Line too long (92/80)
15 0 convention line-too-long C0301
Line too long (83/80)
16 0 convention line-too-long C0301
Line too long (121/80)
17 0 convention line-too-long C0301
Line too long (122/80)
18 0 convention line-too-long C0301
Line too long (123/80)
19 0 convention line-too-long C0301
Line too long (155/80)
45 4 warning arguments-renamed W0237 CreateResultDF.run
Parameter 'elements' has been renamed to 'df_finals' in overriding 'CreateResultDF.run' method
49 0 convention line-too-long C0301
Line too long (81/80)
51 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
55 13 warning unspecified-encoding W1514 CreateResultDF.run
Using open without explicitly specifying an encoding
60 0 convention line-too-long C0301
Line too long (82/80)
62 0 convention line-too-long C0301
Line too long (90/80)
63 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
65 4 warning arguments-differ W0221 CreateResultDF.format_dataframe
Number of parameters was 4 in 'CreateResultDF.format_dataframe' and is now 3 in overriding 'CreateResultDF.format_dataframe' method
96 0 convention trailing-newlines C0305
Trailing newlines

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.task.ep_comfort_settings (bim2sim/plugins/PluginComfort/bim2sim_comfort/task/ep_comfort_settings.py)

Line Col. Type Symbol ID Obj Message
19 0 error import-error E0401
Unable to import 'geomeppy'
19 0 convention wrong-import-order C0411
third party import "from geomeppy import IDF" should be placed before "import bim2sim"
38 4 warning arguments-differ W0221 ComfortSettings.run
Number of parameters was 2 in 'ITask.run' and is now 4 in overriding 'ComfortSettings.run' method
38 4 warning arguments-differ W0221 ComfortSettings.run
Variadics removed in overriding 'ComfortSettings.run' method
60 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
75 12 warning unused-variable W0612 ComfortSettings.define_comfort_usage_dict
Unused variable 'usage_dict'
145 0 convention line-too-long C0301
Line too long (81/80)
145 13 warning unspecified-encoding W1514 ComfortSettings.define_comfort_usage_dict
Using open without explicitly specifying an encoding
146 23 convention invalid-name C0103 ComfortSettings.define_comfort_usage_dict
Variable name "cu" doesn't conform to snake_case naming style
150 4 refactor too-many-locals R0914 ComfortSettings.add_comfort_to_people_enrichment
Too many local variables (16/15)
167 13 warning unspecified-encoding W1514 ComfortSettings.add_comfort_to_people_enrichment
Using open without explicitly specifying an encoding
168 23 convention invalid-name C0103 ComfortSettings.add_comfort_to_people_enrichment
Variable name "cu" doesn't conform to snake_case naming style
245 13 warning unspecified-encoding W1514 ComfortSettings.add_comfort_to_people_manual
Using open without explicitly specifying an encoding
246 23 convention invalid-name C0103 ComfortSettings.add_comfort_to_people_manual
Variable name "cu" doesn't conform to snake_case naming style
414 19 convention invalid-name C0103 ComfortSettings.set_day_week_year_limit_schedule
Variable name "l" doesn't conform to snake_case naming style
414 19 warning unused-variable W0612 ComfortSettings.set_day_week_year_limit_schedule
Unused variable 'l'
451 12 convention invalid-name C0103 ComfortSettings.remove_empty_zones
Variable name "z" doesn't conform to snake_case naming style
453 16 convention invalid-name C0103 ComfortSettings.remove_empty_zones
Variable name "s" doesn't conform to snake_case naming style
462 20 convention invalid-name C0103 ComfortSettings.remove_empty_zones
Variable name "l" doesn't conform to snake_case naming style
465 20 convention invalid-name C0103 ComfortSettings.remove_empty_zones
Variable name "g" doesn't conform to snake_case naming style
485 22 refactor unnecessary-comprehension R1721 ComfortSettings.remove_duplicate_names
Unnecessary use of a comprehension, use list(idf.idfobjects) instead.
489 16 convention invalid-name C0103 ComfortSettings.remove_duplicate_names
Variable name "o" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.task.ep_comfort_visualization (bim2sim/plugins/PluginComfort/bim2sim_comfort/task/ep_comfort_visualization.py)

Line Col. Type Symbol ID Obj Message
8 0 warning unused-import W0611
Unused import json
10 0 warning unused-import W0611
Unused import os
13 0 convention wrong-import-order C0411
standard import "from pathlib import Path" should be placed before "import pandas as pd"
17 0 warning unused-import W0611
Unused import bim2sim
20 0 convention wrong-import-order C0411
third party import "from OCC.Core.Quantity import Quantity_Color, Quantity_TOC_RGB" should be placed before "import bim2sim"
22 0 convention ungrouped-imports C0412
Imports from package bim2sim are not grouped
30 0 convention wrong-import-order C0411
third party import "import numpy as np" should be placed before "import bim2sim"
31 0 convention wrong-import-order C0411
third party import "import OCC.Display.SimpleGui" should be placed before "import bim2sim"
32 0 convention wrong-import-order C0411
third party import "from matplotlib import cm, pyplot as plt" should be placed before "import bim2sim"
32 0 convention ungrouped-imports C0412
Imports from package matplotlib are not grouped
34 0 convention wrong-import-order C0411
third party import "import matplotlib as mpl" should be placed before "import bim2sim"
56 4 warning arguments-differ W0221 ComfortVisualization.run
Variadics removed in overriding 'ComfortVisualization.run' method
62 12 warning protected-access W0212 ComfortVisualization.run
Access to a protected member _string_to_datetime of a client class
86 8 warning unused-variable W0612 ComfortVisualization.run
Unused variable 'space_shapes'
94 4 convention missing-function-docstring C0116 ComfortVisualization.visualize_comfort
Missing function or method docstring
94 4 refactor too-many-locals R0914 ComfortVisualization.visualize_comfort
Too many local variables (17/15)
112 32 warning unused-variable W0612 ComfortVisualization.visualize_comfort
Unused variable 'add_menu'
112 42 warning unused-variable W0612 ComfortVisualization.visualize_comfort
Unused variable 'add_function_to_menu'
115 15 error no-member E1101 ComfortVisualization.visualize_comfort
Module 'matplotlib.cm' has no 'get_cmap' member
116 26 refactor consider-using-generator R1728 ComfortVisualization.visualize_comfort
Consider using a generator instead 'max(float(temp) for (space, temp, center) in spaces_and_temps)'
118 26 refactor consider-using-generator R1728 ComfortVisualization.visualize_comfort
Consider using a generator instead 'min(float(temp) for (space, temp, center) in spaces_and_temps)'
143 0 convention line-too-long C0301
Line too long (83/80)
154 0 convention line-too-long C0301
Line too long (88/80)
160 4 convention missing-function-docstring C0116 ComfortVisualization.visualize_calendar
Missing function or method docstring
160 27 convention invalid-name C0103 ComfortVisualization.visualize_calendar
Argument name "df" doesn't conform to snake_case naming style
160 4 refactor too-many-arguments R0913 ComfortVisualization.visualize_calendar
Too many arguments (7/5)
160 4 refactor too-many-statements R0915 ComfortVisualization.visualize_calendar
Too many statements (60/50)
173 17 convention invalid-name C0103 ComfortVisualization.visualize_calendar.visualize
Variable name "ax" doesn't conform to snake_case naming style
173 12 warning unused-variable W0612 ComfortVisualization.visualize_calendar.visualize
Unused variable 'fig'
194 12 convention invalid-name C0103 ComfortVisualization.visualize_calendar.calendar_array
Variable name "ni" doesn't conform to snake_case naming style
200 29 convention invalid-name C0103 ComfortVisualization.visualize_calendar.calendar_heatmap
Argument name "ax" doesn't conform to snake_case naming style
200 33 convention invalid-name C0103 ComfortVisualization.visualize_calendar.calendar_heatmap
Argument name "df" doesn't conform to snake_case naming style
217 12 convention invalid-name C0103 ComfortVisualization.visualize_calendar.calendar_heatmap
Variable name "im" doesn't conform to snake_case naming style
224 16 warning unused-variable W0612 ComfortVisualization.visualize_calendar.calendar_heatmap
Unused variable 'cbar'
233 0 convention line-too-long C0301
Line too long (120/80)
236 23 convention invalid-name C0103 ComfortVisualization.visualize_calendar.label_data
Argument name "ax" doesn't conform to snake_case naming style
238 19 convention unidiomatic-typecheck C0123 ComfortVisualization.visualize_calendar.label_data
Use isinstance() rather than type() for a typecheck.
243 23 convention invalid-name C0103 ComfortVisualization.visualize_calendar.label_days
Argument name "ax" doesn't conform to snake_case naming style
244 12 convention invalid-name C0103 ComfortVisualization.visualize_calendar.label_days
Variable name "ni" doesn't conform to snake_case naming style
244 16 convention invalid-name C0103 ComfortVisualization.visualize_calendar.label_days
Variable name "nj" doesn't conform to snake_case naming style
256 25 convention invalid-name C0103 ComfortVisualization.visualize_calendar.label_months
Argument name "ax" doesn't conform to snake_case naming style
256 39 warning unused-argument W0613 ComfortVisualization.visualize_calendar.label_months
Unused argument 'j'
256 42 warning unused-argument W0613 ComfortVisualization.visualize_calendar.label_months
Unused argument 'calendar'
257 0 convention line-too-long C0301
Line too long (85/80)
271 4 warning pointless-string-statement W0105
String statement has no effect
275 24 warning f-string-without-interpolation W1309
Using an f-string that does not have any interpolated variables
278 14 error unexpected-keyword-arg E1123
Unexpected keyword argument 'ifc_path' in classmethod call
281 43 warning f-string-without-interpolation W1309
Using an f-string that does not have any interpolated variables

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.task.ep_load_idf (bim2sim/plugins/PluginComfort/bim2sim_comfort/task/ep_load_idf.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
4 0 error import-error E0401
Unable to import 'geomeppy'
20 4 warning arguments-differ W0221 LoadIdf.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'LoadIdf.run' method
20 4 warning arguments-differ W0221 LoadIdf.run
Variadics removed in overriding 'LoadIdf.run' method
30 24 warning fixme W0511
todo: handle multiple idfs (choose by name)
36 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.task.plot_comfort_results (bim2sim/plugins/PluginComfort/bim2sim_comfort/task/plot_comfort_results.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
3 0 warning unused-import W0611
Unused Path imported from pathlib
26 0 convention line-too-long C0301
Line too long (103/80)
36 0 convention missing-class-docstring C0115 PlotComfortResults
Missing class docstring
40 4 warning arguments-differ W0221 PlotComfortResults.run
Number of parameters was 5 in 'PlotBEPSResults.run' and is now 4 in overriding 'PlotComfortResults.run' method
40 4 refactor too-many-locals R0914 PlotComfortResults.run
Too many local variables (16/15)
50 0 convention line-too-long C0301
Line too long (82/80)
60 13 warning unspecified-encoding W1514 PlotComfortResults.run
Using open without explicitly specifying an encoding
69 17 warning unspecified-encoding W1514 PlotComfortResults.run
Using open without explicitly specifying an encoding
69 77 convention invalid-name C0103 PlotComfortResults.run
Variable name "rk" doesn't conform to snake_case naming style
74 23 convention invalid-name C0103 PlotComfortResults.run
Variable name "df" doesn't conform to snake_case naming style
105 4 convention missing-function-docstring C0116 PlotComfortResults.rename_duplicates
Missing function or method docstring
119 4 convention missing-function-docstring C0116 PlotComfortResults.rename_zone_usage
Missing function or method docstring
128 4 convention missing-function-docstring C0116 PlotComfortResults.pmv_plot
Missing function or method docstring
128 17 convention invalid-name C0103 PlotComfortResults.pmv_plot
Argument name "df" doesn't conform to snake_case naming style
135 41 convention invalid-name C0103 PlotComfortResults.apply_en16798_to_all_zones
Argument name "df" doesn't conform to snake_case naming style
149 4 convention missing-function-docstring C0116 PlotComfortResults.apply_en16798_to_single_zone
Missing function or method docstring
149 43 convention invalid-name C0103 PlotComfortResults.apply_en16798_to_single_zone
Argument name "df" doesn't conform to snake_case naming style
151 8 warning logging-fstring-interpolation W1203 PlotComfortResults.apply_en16798_to_single_zone
Use lazy % formatting in logging functions
164 40 convention invalid-name C0103 PlotComfortResults.plot_new_en16798_adaptive_count
Argument name "df" doesn't conform to snake_case naming style
164 4 refactor too-many-locals R0914 PlotComfortResults.plot_new_en16798_adaptive_count
Too many local variables (39/15)
164 4 refactor too-many-statements R0915 PlotComfortResults.plot_new_en16798_adaptive_count
Too many statements (66/50)
169 8 warning logging-fstring-interpolation W1203 PlotComfortResults.plot_new_en16798_adaptive_count
Use lazy % formatting in logging functions
172 12 refactor no-else-return R1705 PlotComfortResults.plot_new_en16798_adaptive_count.is_within_thresholds_cat1_16798
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
180 12 refactor no-else-return R1705 PlotComfortResults.plot_new_en16798_adaptive_count.is_within_thresholds_cat2_16798
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
191 12 refactor no-else-return R1705 PlotComfortResults.plot_new_en16798_adaptive_count.is_within_thresholds_cat3_16798
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
202 12 refactor no-else-return R1705 PlotComfortResults.plot_new_en16798_adaptive_count.is_outside_thresholds_16798
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
213 8 convention invalid-name C0103 PlotComfortResults.plot_new_en16798_adaptive_count
Variable name "ot" doesn't conform to snake_case naming style
292 8 warning unused-variable W0612 PlotComfortResults.plot_new_en16798_adaptive_count
Unused variable 'lgnd'
299 29 convention invalid-name C0103 PlotComfortResults.table_bar_plot_16798
Argument name "df" doesn't conform to snake_case naming style
299 4 refactor too-many-locals R0914 PlotComfortResults.table_bar_plot_16798
Too many local variables (17/15)
308 8 warning logging-fstring-interpolation W1203 PlotComfortResults.table_bar_plot_16798
Use lazy % formatting in logging functions
308 20 warning f-string-without-interpolation W1309 PlotComfortResults.table_bar_plot_16798
Using an f-string that does not have any interpolated variables
314 19 warning redundant-u-string-prefix W1406
The u prefix for strings is no longer necessary in Python >=3.0
328 13 convention invalid-name C0103 PlotComfortResults.table_bar_plot_16798
Variable name "ax" doesn't conform to snake_case naming style
328 8 warning unused-variable W0612 PlotComfortResults.table_bar_plot_16798
Unused variable 'fig'
333 12 warning unused-variable W0612 PlotComfortResults.table_bar_plot_16798
Unused variable 'i'
338 22 warning redundant-u-string-prefix W1406
The u prefix for strings is no longer necessary in Python >=3.0
346 62 warning redundant-u-string-prefix W1406
The u prefix for strings is no longer necessary in Python >=3.0
366 4 convention missing-function-docstring C0116 PlotComfortResults.visualize_calendar
Missing function or method docstring
366 4 warning dangerous-default-value W0102 PlotComfortResults.visualize_calendar
Dangerous default value [] as argument
366 4 refactor too-many-arguments R0913 PlotComfortResults.visualize_calendar
Too many arguments (11/5)
366 4 refactor too-many-locals R0914 PlotComfortResults.visualize_calendar
Too many local variables (17/15)
366 4 refactor too-many-statements R0915 PlotComfortResults.visualize_calendar
Too many statements (63/50)
372 8 warning logging-fstring-interpolation W1203 PlotComfortResults.visualize_calendar
Use lazy % formatting in logging functions
375 17 convention invalid-name C0103 PlotComfortResults.visualize_calendar.visualize
Variable name "ax" doesn't conform to snake_case naming style
375 12 warning unused-variable W0612 PlotComfortResults.visualize_calendar.visualize
Unused variable 'fig'
401 12 convention invalid-name C0103 PlotComfortResults.visualize_calendar.calendar_array
Variable name "ni" doesn't conform to snake_case naming style
407 29 convention invalid-name C0103 PlotComfortResults.visualize_calendar.calendar_heatmap
Argument name "ax" doesn't conform to snake_case naming style
407 33 convention invalid-name C0103 PlotComfortResults.visualize_calendar.calendar_heatmap
Argument name "df" doesn't conform to snake_case naming style
424 12 convention invalid-name C0103 PlotComfortResults.visualize_calendar.calendar_heatmap
Variable name "im" doesn't conform to snake_case naming style
431 16 warning unused-variable W0612 PlotComfortResults.visualize_calendar.calendar_heatmap
Unused variable 'cbar'
441 0 convention line-too-long C0301
Line too long (120/80)
444 23 convention invalid-name C0103 PlotComfortResults.visualize_calendar.label_data
Argument name "ax" doesn't conform to snake_case naming style
446 19 convention unidiomatic-typecheck C0123 PlotComfortResults.visualize_calendar.label_data
Use isinstance() rather than type() for a typecheck.
451 23 convention invalid-name C0103 PlotComfortResults.visualize_calendar.label_days
Argument name "ax" doesn't conform to snake_case naming style
452 12 convention invalid-name C0103 PlotComfortResults.visualize_calendar.label_days
Variable name "ni" doesn't conform to snake_case naming style
452 16 convention invalid-name C0103 PlotComfortResults.visualize_calendar.label_days
Variable name "nj" doesn't conform to snake_case naming style
464 25 convention invalid-name C0103 PlotComfortResults.visualize_calendar.label_months
Argument name "ax" doesn't conform to snake_case naming style
464 39 warning unused-argument W0613 PlotComfortResults.visualize_calendar.label_months
Unused argument 'j'
464 42 warning unused-argument W0613 PlotComfortResults.visualize_calendar.label_months
Unused argument 'calendar'
465 0 convention line-too-long C0301
Line too long (85/80)

Module bim2sim.plugins.PluginComfort.bim2sim_comfort.utils.utils_comfort_templates (bim2sim/plugins/PluginComfort/bim2sim_comfort/utils/utils_comfort_templates.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 0 error import-error E0401
Unable to import 'openpyxl'
6 0 warning unused-import W0611
Unused import openpyxl
9 0 convention missing-class-docstring C0115 ComfortUtils
Missing class docstring
15 18 error no-member E1101 ComfortUtils.convert_use_conditions_to_xls
Instance of 'JsonReader' has no 'transpose' member
19 4 convention missing-function-docstring C0116 ComfortUtils.new_empty_json_keeping_first_keys
Missing function or method docstring
21 20 error no-member E1101 ComfortUtils.new_empty_json_keeping_first_keys
Instance of 'JsonReader' has no 'keys' member
26 4 convention missing-function-docstring C0116 ComfortUtils.convert_xlsx_to_json
Missing function or method docstring
28 8 warning unused-variable W0612 ComfortUtils.convert_xlsx_to_json
Unused variable 'json_file'
31 4 convention missing-function-docstring C0116 ComfortUtils.convert_csv_to_json
Missing function or method docstring
34 8 warning unused-variable W0612 ComfortUtils.convert_csv_to_json
Unused variable 'json_file'
37 4 convention missing-function-docstring C0116 ComfortUtils.extend_use_conditions
Missing function or method docstring
38 15 error no-member E1101 ComfortUtils.extend_use_conditions
Instance of 'JsonReader' has no 'transpose' member
39 30 error no-member E1101 ComfortUtils.extend_use_conditions
Instance of 'JsonReader' has no 'transpose' member
68 4 convention invalid-name C0103
Constant name "new_json_name" doesn't conform to UPPER_CASE naming style
76 0 convention trailing-newlines C0305
Trailing newlines

Module bim2sim.plugins.PluginComfort.test.integration.test_comfort (bim2sim/plugins/PluginComfort/test/integration/test_comfort.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
18 0 convention missing-class-docstring C0115 IntegrationBaseComfort
Missing class docstring
30 0 convention line-too-long C0301
Line too long (82/80)
40 0 convention line-too-long C0301
Line too long (84/80)
43 0 convention line-too-long C0301
Line too long (90/80)
44 12 warning bare-except W0702 IntegrationBaseComfort.tearDown
No exception type(s) specified
64 0 convention line-too-long C0301
Line too long (100/80)
67 4 convention invalid-name C0103 TestComfortIntegration.test_base_01_FZK_full_run
Method name "test_base_01_FZK_full_run" doesn't conform to snake_case naming style
86 4 convention invalid-name C0103 TestComfortIntegration.test_base_02_FZK_design_day
Method name "test_base_02_FZK_design_day" doesn't conform to snake_case naming style
98 4 convention invalid-name C0103 TestComfortIntegration.test_base_03_FZK_SB_design_day
Method name "test_base_03_FZK_SB_design_day" doesn't conform to snake_case naming style
115 4 convention invalid-name C0103 TestComfortIntegration.test_base_04_FZK_SB_full_run
Method name "test_base_04_FZK_SB_full_run" doesn't conform to snake_case naming style
136 4 convention invalid-name C0103 TestComfortIntegration.test_base_05_KIT_Inst_design_day
Method name "test_base_05_KIT_Inst_design_day" doesn't conform to snake_case naming style
150 4 convention invalid-name C0103 TestComfortIntegration.test_base_06_KIT_Inst_full_run
Method name "test_base_06_KIT_Inst_full_run" doesn't conform to snake_case naming style
162 4 convention invalid-name C0103 TestComfortIntegration.test_base_07_KIT_Inst_SB_design_day
Method name "test_base_07_KIT_Inst_SB_design_day" doesn't conform to snake_case naming style
178 4 convention invalid-name C0103 TestComfortIntegration.test_base_08_KIT_Inst_SB_full_run
Method name "test_base_08_KIT_Inst_SB_full_run" doesn't conform to snake_case naming style
194 4 convention invalid-name C0103 TestComfortIntegration.test_DigitalHub_SB89
Method name "test_DigitalHub_SB89" doesn't conform to snake_case naming style
229 4 convention invalid-name C0103 TestComfortIntegration.test_base_09_DH_design_day
Method name "test_base_09_DH_design_day" doesn't conform to snake_case naming style
261 4 convention invalid-name C0103 TestComfortIntegration.test_base_13_EDC_SB_design_day
Method name "test_base_13_EDC_SB_design_day" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginComfort.test.integration.test_useage (bim2sim/plugins/PluginComfort/test/integration/test_useage.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
10 12 convention import-outside-toplevel C0415 TestUsage.test_import_plugin
Import outside toplevel (bim2sim.plugins.load_plugin, bim2sim.plugins.Plugin)
14 22 convention consider-using-f-string C0209 TestUsage.test_import_plugin
Formatting a regular string which could be a f-string

Module bim2sim.plugins.PluginComfort.test.regression.prepare_regression_tests (bim2sim/plugins/PluginComfort/test/regression/prepare_regression_tests.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 convention missing-function-docstring C0116 prepare_regression_tests
Missing function or method docstring

Module bim2sim.plugins.PluginComfort.test.regression.test_comfort (bim2sim/plugins/PluginComfort/test/regression/test_comfort.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
9 0 error import-error E0401
Unable to import 'energyplus_regressions.diffs'
10 0 error import-error E0401
Unable to import 'energyplus_regressions.diffs.thresh_dict'
13 0 warning unused-import W0611
Unused LOD imported from bim2sim.utilities.types
40 4 warning arguments-differ W0221 RegressionTestComfort.create_regression_setup
Number of parameters was 2 in 'RegressionTestBase.create_regression_setup' and is now 1 in overriding 'RegressionTestComfort.create_regression_setup' method
51 8 warning unused-variable W0612 RegressionTestComfort.create_regression_setup
Unused variable 'model_export_name'
110 12 warning logging-fstring-interpolation W1203 RegressionTestComfort.run_regression_test
Use lazy % formatting in logging functions
128 24 warning protected-access W0212 RegressionTestComfort.create_regression_results
Access to a protected member _comp_info of a client class
129 25 warning protected-access W0212 RegressionTestComfort.create_regression_results
Access to a protected member _comp_info of a client class
141 28 error no-member E1101 RegressionTestComfort.create_regression_results
Instance of 'RegressionTestComfort' has no 'ref_results_dst_path' member
145 12 warning logging-fstring-interpolation W1203 RegressionTestComfort.create_regression_results
Use lazy % formatting in logging functions
145 25 warning f-string-without-interpolation W1309 RegressionTestComfort.create_regression_results
Using an f-string that does not have any interpolated variables
153 4 convention invalid-name C0103 TestRegressionComfort.test_regression_AC20_FZK_Haus_SB55
Method name "test_regression_AC20_FZK_Haus_SB55" doesn't conform to snake_case naming style
179 4 convention invalid-name C0103 TestRegressionComfort.test_regression_AC20_FZK_Haus
Method name "test_regression_AC20_FZK_Haus" doesn't conform to snake_case naming style
205 4 convention invalid-name C0103 TestRegressionComfort.test_regression_DigitalHub_SB89
Method name "test_regression_DigitalHub_SB89" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginEnergyPlus (bim2sim/plugins/PluginEnergyPlus/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention invalid-name C0103
Module name "PluginEnergyPlus" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/__init__.py)

Line Col. Type Symbol ID Obj Message
13 0 convention missing-class-docstring C0115 PluginEnergyPlus
Missing class docstring
13 0 refactor too-few-public-methods R0903 PluginEnergyPlus
Too few public methods (0/2)

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e1_simple_project_energyplus (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/examples/e1_simple_project_energyplus.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
22 8 refactor consider-using-with R1732 run_example_1
Consider using 'with' for resource-allocating operations

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e2_complex_project_energyplus (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/examples/e2_complex_project_energyplus.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
19 8 refactor consider-using-with R1732 run_example_complex_building_energyplus
Consider using 'with' for resource-allocating operations

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e3_load_energyplus_simulation_results (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/examples/e3_load_energyplus_simulation_results.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
8 0 error import-error E0401
Unable to import 'e1_simple_project_energyplus'
8 0 convention wrong-import-order C0411
third party import "from e1_simple_project_energyplus import run_example_1" should be placed before "import bim2sim"

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.sim_settings (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/sim_settings.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
47 52 warning fixme W0511
todo: Test latest version

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.create_result_df (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/create_result_df.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 0 error import-error E0401
Unable to import 'geomeppy'
17 34 warning duplicate-key W0109
Duplicate key 'NOT_AVAILABLE' in dictionary
26 0 convention line-too-long C0301
Line too long (94/80)
28 0 convention line-too-long C0301
Line too long (94/80)
35 0 convention line-too-long C0301
Line too long (104/80)
36 0 convention line-too-long C0301
Line too long (91/80)
38 0 convention line-too-long C0301
Line too long (90/80)
39 0 convention line-too-long C0301
Line too long (86/80)
40 0 convention line-too-long C0301
Line too long (108/80)
41 0 convention line-too-long C0301
Line too long (91/80)
42 0 convention line-too-long C0301
Line too long (91/80)
72 4 warning arguments-differ W0221 CreateResultDF.run
Number of parameters was 2 in 'ITask.run' and is now 4 in overriding 'CreateResultDF.run' method
72 4 warning arguments-differ W0221 CreateResultDF.run
Variadics removed in overriding 'CreateResultDF.run' method
72 4 refactor too-many-locals R0914 CreateResultDF.run
Too many local variables (17/15)
96 9 warning fixme W0511
ToDO handle multiple buildings/ifcs #35
102 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
104 9 warning fixme W0511
TODO @Veronika: the zone_dict.json can be removed and instead the
110 13 warning unspecified-encoding W1514 CreateResultDF.run
Using open without explicitly specifying an encoding
124 13 warning unspecified-encoding W1514 CreateResultDF.run
Using open without explicitly specifying an encoding
136 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
191 26 warning redefined-outer-name W0621 CreateResultDF.map_zonal_results
Redefining name 'bim2sim_energyplus_mapping_base' from outer scope (line 17)
218 17 warning fixme W0511
TODO write case sensitive GUIDs into dataframe
219 20 warning unused-variable W0612 CreateResultDF.map_zonal_results
Unused variable 'i'
221 21 warning fixme W0511
todo: according to #497, names should keep a _zone_ flag

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_create_idf (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_create_idf.py)

Line Col. Type Symbol ID Obj Message
1 0 convention too-many-lines C0302
Too many lines in module (1997/1000)
1 0 convention missing-module-docstring C0114
Missing module docstring
15 0 error no-name-in-module E0611
No name 'Handle_Geom_Plane_DownCast' in module 'OCC.Core._Geom'
18 0 error import-error E0401
Unable to import 'geomeppy'
41 0 refactor too-many-public-methods R0904 CreateIdf
Too many public methods (27/20)
56 4 warning arguments-differ W0221 CreateIdf.run
Number of parameters was 2 in 'ITask.run' and is now 3 in overriding 'CreateIdf.run' method
56 4 warning arguments-differ W0221 CreateIdf.run
Variadics removed in overriding 'CreateIdf.run' method
145 12 convention invalid-name C0103 CreateIdf.init_idf
Variable name "s" doesn't conform to snake_case naming style
147 12 convention invalid-name C0103 CreateIdf.init_idf
Variable name "t" doesn't conform to snake_case naming style
192 0 convention line-too-long C0301
Line too long (83/80)
231 8 convention invalid-name C0103 CreateIdf.init_zonelist
Variable name "zs" doesn't conform to snake_case naming style
232 15 convention invalid-name C0103 CreateIdf.init_zonelist
Variable name "z" doesn't conform to snake_case naming style
252 12 convention invalid-name C0103 CreateIdf.init_zonegroups
Variable name "st" doesn't conform to snake_case naming style
279 16 refactor no-else-return R1705 CreateIdf.check_preprocessed_materials_and_constructions
Unnecessary "elif" after "return", remove the leading "el" from "elif"
295 0 convention line-too-long C0301
Line too long (81/80)
313 19 refactor use-a-generator R1729 CreateIdf.get_preprocessed_materials_and_constructions
Use a generator instead 'any(isinstance(rel_elem, window) for window in all_subclasses(Window, include_self=True))'
367 9 warning fixme W0511
todo: find a unique key for construction name
373 19 convention invalid-name C0103 CreateIdf.set_preprocessed_construction_elem
Variable name "l" doesn't conform to snake_case naming style
400 8 refactor consider-using-max-builtin R1731 CreateIdf.set_preprocessed_material_elem
Consider using 'specific_heat = max(specific_heat, 100)' instead of unnecessary if block
406 12 warning logging-fstring-interpolation W1203 CreateIdf.set_preprocessed_material_elem
Use lazy % formatting in logging functions
410 12 warning logging-fstring-interpolation W1203 CreateIdf.set_preprocessed_material_elem
Use lazy % formatting in logging functions
496 9 warning fixme W0511
todo: enable use of multilayer windows
540 0 convention line-too-long C0301
Line too long (82/80)
540 4 refactor too-many-arguments R0913 CreateIdf.set_people
Too many arguments (6/5)
621 19 convention invalid-name C0103 CreateIdf.set_day_week_year_schedule
Variable name "l" doesn't conform to snake_case naming style
621 19 warning unused-variable W0612 CreateIdf.set_day_week_year_schedule
Unused variable 'l'
642 4 refactor too-many-arguments R0913 CreateIdf.set_equipment
Too many arguments (6/5)
684 0 convention line-too-long C0301
Line too long (82/80)
684 4 refactor too-many-arguments R0913 CreateIdf.set_lights
Too many arguments (6/5)
709 34 warning fixme W0511
Todo: fractions do not match with .json
910 4 refactor too-many-arguments R0913 CreateIdf.set_hvac_template
Too many arguments (6/5)
933 8 refactor consider-using-min-builtin R1730 CreateIdf.set_hvac_template
Consider using 'setback_htg = min(setback_htg, heating_sp)' instead of unnecessary if block
935 8 refactor consider-using-max-builtin R1731 CreateIdf.set_hvac_template
Consider using 'setback_clg = max(setback_clg, cooling_sp)' instead of unnecessary if block
992 16 warning redefined-builtin W0622 CreateIdf.write_schedule
Redefining built-in 'set'
1026 4 refactor too-many-locals R0914 CreateIdf.add_shadings
Too many local variables (17/15)
1026 4 refactor too-many-branches R0912 CreateIdf.add_shadings
Too many branches (13/12)
1037 16 convention invalid-name C0103 CreateIdf.add_shadings
Variable name "sb" doesn't conform to snake_case naming style
1049 16 convention invalid-name C0103 CreateIdf.add_shadings
Variable name "s" doesn't conform to snake_case naming style
1056 16 convention invalid-name C0103 CreateIdf.add_shadings
Variable name "s" doesn't conform to snake_case naming style
1069 12 convention invalid-name C0103 CreateIdf.add_shadings
Variable name "s" doesn't conform to snake_case naming style
1076 16 convention invalid-name C0103 CreateIdf.add_shadings
Variable name "co" doesn't conform to snake_case naming style
1080 4 refactor too-many-arguments R0913 CreateIdf.add_shading_control
Too many arguments (6/5)
1080 4 refactor too-many-locals R0914 CreateIdf.add_shading_control
Too many local variables (16/15)
1120 0 convention line-too-long C0301
Line too long (82/80)
1187 4 refactor too-many-statements R0915 CreateIdf.set_output_variables
Too many statements (54/50)
1370 0 convention line-too-long C0301
Line too long (83/80)
1443 4 refactor too-many-locals R0914 CreateIdf.idf_validity_check
Too many local variables (22/15)
1443 4 refactor too-many-branches R0912 CreateIdf.idf_validity_check
Too many branches (17/12)
1473 0 convention line-too-long C0301
Line too long (99/80)
1481 12 warning logging-not-lazy W1201 CreateIdf.idf_validity_check
Use lazy % formatting in logging functions
1481 24 convention consider-using-f-string C0209 CreateIdf.idf_validity_check
Formatting a regular string which could be a f-string
1494 0 convention superfluous-parens C0325
Unnecessary parens after 'if' keyword
1524 16 warning logging-not-lazy W1201 CreateIdf.idf_validity_check
Use lazy % formatting in logging functions
1524 28 convention consider-using-f-string C0209 CreateIdf.idf_validity_check
Formatting a regular string which could be a f-string
1534 12 warning logging-not-lazy W1201 CreateIdf.idf_validity_check
Use lazy % formatting in logging functions
1534 24 convention consider-using-f-string C0209 CreateIdf.idf_validity_check
Formatting a regular string which could be a f-string
1543 12 warning logging-not-lazy W1201 CreateIdf.idf_validity_check
Use lazy % formatting in logging functions
1543 24 convention consider-using-f-string C0209 CreateIdf.idf_validity_check
Formatting a regular string which could be a f-string
1548 12 convention invalid-name C0103 CreateIdf.idf_validity_check
Variable name "sf" doesn't conform to snake_case naming style
1550 16 warning logging-not-lazy W1201 CreateIdf.idf_validity_check
Use lazy % formatting in logging functions
1551 20 convention consider-using-f-string C0209 CreateIdf.idf_validity_check
Formatting a regular string which could be a f-string
1556 0 refactor too-many-instance-attributes R0902 IdfObject
Too many instance attributes (16/7)
1645 15 refactor use-a-generator R1729 IdfObject.set_preprocessed_construction_name
Use a generator instead 'any(isinstance(rel_elem, window) for window in all_subclasses(Window, include_self=True))'
1679 12 convention invalid-name C0103 IdfObject.set_idfobject_coordinates
Variable name "co" doesn't conform to snake_case naming style
1683 15 warning broad-exception-caught W0718 IdfObject.set_idfobject_coordinates
Catching too general exception Exception
1684 12 warning logging-fstring-interpolation W1203 IdfObject.set_idfobject_coordinates
Use lazy % formatting in logging functions
1701 15 warning broad-exception-caught W0718 IdfObject.set_idfobject_coordinates
Catching too general exception Exception
1702 12 warning logging-fstring-interpolation W1203 IdfObject.set_idfobject_coordinates
Use lazy % formatting in logging functions
1707 4 refactor inconsistent-return-statements R1710 IdfObject.set_idfobject_attributes
Either all return statements in a function should return an expression, or none of them should.
1740 4 refactor too-many-branches R0912 IdfObject.map_surface_types
Too many branches (26/12)
1740 4 refactor too-many-statements R0915 IdfObject.map_surface_types
Too many statements (54/50)
1750 9 warning fixme W0511
TODO use bim2sim elements mapping instead of ifc.is_a()
1751 9 warning fixme W0511
TODO update to new disaggregations
1755 15 refactor use-a-generator R1729 IdfObject.map_surface_types
Use a generator instead 'any(isinstance(elem, wall) for wall in all_subclasses(Wall, include_self=True))'
1756 0 convention line-too-long C0301
Line too long (91/80)
1758 17 refactor use-a-generator R1729 IdfObject.map_surface_types
Use a generator instead 'any(isinstance(elem, door) for door in all_subclasses(Door, include_self=True))'
1759 0 convention line-too-long C0301
Line too long (93/80)
1761 17 refactor use-a-generator R1729 IdfObject.map_surface_types
Use a generator instead 'any(isinstance(elem, window) for window in all_subclasses(Window, include_self=True))'
1764 17 refactor use-a-generator R1729 IdfObject.map_surface_types
Use a generator instead 'any(isinstance(elem, roof) for roof in all_subclasses(Roof, include_self=True))'
1765 0 convention line-too-long C0301
Line too long (93/80)
1767 17 refactor use-a-generator R1729 IdfObject.map_surface_types
Use a generator instead 'any(isinstance(elem, slab) for slab in all_subclasses(Slab, include_self=True))'
1768 0 convention line-too-long C0301
Line too long (93/80)
1769 19 refactor use-a-generator R1729 IdfObject.map_surface_types
Use a generator instead 'any(isinstance(elem, floor) for floor in all_subclasses(GroundFloor, include_self=True))'
1772 21 refactor use-a-generator R1729 IdfObject.map_surface_types
Use a generator instead 'any(isinstance(elem, floor) for floor in all_subclasses(InnerFloor, include_self=True))'
1780 24 warning logging-fstring-interpolation W1203 IdfObject.map_surface_types
Use lazy % formatting in logging functions
1784 24 warning logging-fstring-interpolation W1203 IdfObject.map_surface_types
Use lazy % formatting in logging functions
1816 20 warning logging-fstring-interpolation W1203 IdfObject.map_surface_types
Use lazy % formatting in logging functions
1827 12 warning logging-fstring-interpolation W1203 IdfObject.map_surface_types
Use lazy % formatting in logging functions
1848 0 convention line-too-long C0301
Line too long (93/80)
1851 0 convention superfluous-parens C0325
Unnecessary parens after 'not' keyword
1940 12 convention invalid-name C0103 IdfObject.process_circular_shapes
Variable name "fc" doesn't conform to snake_case naming style
1951 8 convention invalid-name C0103 IdfObject.process_circular_shapes
Variable name "fc" doesn't conform to snake_case naming style
1962 4 refactor too-many-locals R0914 IdfObject.process_other_shapes
Too many local variables (17/15)

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_idf_cfd_export (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_idf_cfd_export.py)

Line Col. Type Symbol ID Obj Message
10 0 error import-error E0401
Unable to import 'stl'
29 4 warning arguments-differ W0221 ExportIdfForCfd.run
Number of parameters was 2 in 'ITask.run' and is now 3 in overriding 'ExportIdfForCfd.run' method
29 4 warning arguments-differ W0221 ExportIdfForCfd.run
Variadics removed in overriding 'ExportIdfForCfd.run' method
171 13 warning unspecified-encoding W1514 ExportIdfForCfd.combined_space_stl
Using open without explicitly specifying an encoding
174 16 warning unused-variable W0612 ExportIdfForCfd.combined_space_stl
Unused variable 'index'
178 20 warning redefined-builtin W0622 ExportIdfForCfd.combined_space_stl
Redefining built-in 'id'
178 20 convention invalid-name C0103 ExportIdfForCfd.combined_space_stl
Variable name "id" doesn't conform to snake_case naming style
183 13 warning unspecified-encoding W1514 ExportIdfForCfd.combined_space_stl
Using open without explicitly specifying an encoding

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_idf_postprocessing (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_idf_postprocessing.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
5 0 error import-error E0401
Unable to import 'geomeppy'
18 4 warning arguments-differ W0221 IdfPostprocessing.run
Number of parameters was 2 in 'ITask.run' and is now 5 in overriding 'IdfPostprocessing.run' method
18 4 warning arguments-differ W0221 IdfPostprocessing.run
Variadics removed in overriding 'IdfPostprocessing.run' method
67 13 warning unspecified-encoding W1514 IdfPostprocessing.write_zone_names
Using open without explicitly specifying an encoding
79 18 refactor unnecessary-comprehension R1721 IdfPostprocessing._export_surface_areas
Unnecessary use of a comprehension, use list(idf.idfobjects['FenestrationSurface:Detailed'.upper()]) instead.
85 16 refactor unnecessary-comprehension R1721 IdfPostprocessing._export_surface_areas
Unnecessary use of a comprehension, use list(idf.idfobjects['zone'.upper()]) instead.
101 4 refactor too-many-arguments R0913 IdfPostprocessing._append_set_of_area_sum
Too many arguments (7/5)
107 47 refactor consider-using-in R1714 IdfPostprocessing._append_set_of_area_sum
Consider merging these comparisons with 'in' by using 's.Outside_Boundary_Condition in ('Outdoors', 'Ground')'. Use a set instead if elements are hashable.
140 4 refactor too-many-arguments R0913 IdfPostprocessing._sum_of_surface_area
Too many arguments (6/5)
166 43 warning unused-argument W0613 IdfPostprocessing._export_space_info
Unused argument 'idf'
180 4 refactor too-many-locals R0914 IdfPostprocessing._export_boundary_report
Too many local variables (17/15)
223 20 refactor unnecessary-comprehension R1721 IdfPostprocessing._export_boundary_report
Unnecessary use of a comprehension, use list(idf.idfobjects['BUILDINGSURFACE:DETAILED']) instead.
234 20 refactor unnecessary-comprehension R1721 IdfPostprocessing._export_boundary_report
Unnecessary use of a comprehension, use list(idf.idfobjects['FENESTRATIONSURFACE:DETAILED']) instead.

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_ifc_validation (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_ifc_validation.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
21 4 warning arguments-differ W0221 IfcValidation.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'IfcValidation.run' method
21 4 warning arguments-differ W0221 IfcValidation.run
Variadics removed in overriding 'IfcValidation.run' method
46 0 convention line-too-long C0301
Line too long (81/80)
55 0 convention line-too-long C0301
Line too long (95/80)
55 13 warning unspecified-encoding W1514 IfcValidation._write_errors_to_json
Using open without explicitly specifying an encoding
55 92 convention invalid-name C0103 IfcValidation._write_errors_to_json
Variable name "fp" doesn't conform to snake_case naming style
63 0 convention line-too-long C0301
Line too long (111/80)
63 16 convention consider-using-f-string C0209 IfcValidation._evaluate_checks
Formatting a regular string which could be a f-string
65 0 convention line-too-long C0301
Line too long (116/80)
65 32 convention consider-using-f-string C0209 IfcValidation._evaluate_checks
Formatting a regular string which could be a f-string
67 0 convention line-too-long C0301
Line too long (102/80)
70 0 convention line-too-long C0301
Line too long (110/80)
73 0 refactor too-few-public-methods R0903 SpaceBoundaryValidation
Too few public methods (0/2)
86 0 convention line-too-long C0301
Line too long (81/80)
87 0 convention line-too-long C0301
Line too long (81/80)
88 0 convention line-too-long C0301
Line too long (98/80)
89 0 convention line-too-long C0301
Line too long (86/80)
90 0 convention line-too-long C0301
Line too long (99/80)
91 0 convention line-too-long C0301
Line too long (98/80)
92 0 convention line-too-long C0301
Line too long (99/80)
93 0 convention line-too-long C0301
Line too long (97/80)
94 0 convention line-too-long C0301
Line too long (84/80)
95 0 convention line-too-long C0301
Line too long (90/80)
96 0 convention line-too-long C0301
Line too long (101/80)
97 0 convention line-too-long C0301
Line too long (114/80)
99 0 convention line-too-long C0301
Line too long (92/80)
100 0 convention line-too-long C0301
Line too long (109/80)
102 0 convention line-too-long C0301
Line too long (103/80)
103 0 convention line-too-long C0301
Line too long (120/80)
104 0 convention line-too-long C0301
Line too long (81/80)
107 0 convention line-too-long C0301
Line too long (83/80)
108 0 convention line-too-long C0301
Line too long (92/80)
109 0 convention line-too-long C0301
Line too long (93/80)
110 0 convention line-too-long C0301
Line too long (109/80)
127 0 convention line-too-long C0301
Line too long (118/80)
129 4 refactor inconsistent-return-statements R1710 SpaceBoundaryValidation._check_rel_building_elem
Either all return statements in a function should return an expression, or none of them should.
134 0 convention line-too-long C0301
Line too long (81/80)
137 0 convention line-too-long C0301
Line too long (86/80)
142 0 convention line-too-long C0301
Line too long (82/80)
143 0 convention line-too-long C0301
Line too long (81/80)
144 0 convention line-too-long C0301
Line too long (81/80)
148 0 convention line-too-long C0301
Line too long (98/80)
154 0 convention line-too-long C0301
Line too long (99/80)
157 0 convention line-too-long C0301
Line too long (109/80)
160 0 convention line-too-long C0301
Line too long (108/80)
163 0 convention line-too-long C0301
Line too long (88/80)
166 0 convention line-too-long C0301
Line too long (100/80)
168 0 convention line-too-long C0301
Line too long (96/80)
172 0 convention line-too-long C0301
Line too long (103/80)
176 0 convention line-too-long C0301
Line too long (106/80)
180 0 convention line-too-long C0301
Line too long (106/80)
183 0 convention line-too-long C0301
Line too long (119/80)
189 0 convention line-too-long C0301
Line too long (106/80)
193 0 convention line-too-long C0301
Line too long (117/80)
196 0 convention line-too-long C0301
Line too long (110/80)
200 0 convention line-too-long C0301
Line too long (85/80)
209 0 convention line-too-long C0301
Line too long (120/80)
212 0 convention line-too-long C0301
Line too long (120/80)
216 0 convention missing-final-newline C0304
Final newline missing
216 0 convention line-too-long C0301
Line too long (102/80)

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_run_simulation (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_run_simulation.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 warning unused-import W0611
Unused import re
4 0 error import-error E0401
Unable to import 'geomeppy'
18 4 warning arguments-differ W0221 RunEnergyPlusSimulation.run
Number of parameters was 2 in 'ITask.run' and is now 3 in overriding 'RunEnergyPlusSimulation.run' method
18 4 warning arguments-differ W0221 RunEnergyPlusSimulation.run
Variadics removed in overriding 'RunEnergyPlusSimulation.run' method
31 0 convention line-too-long C0301
Line too long (108/80)
41 25 warning f-string-without-interpolation W1309 RunEnergyPlusSimulation.run
Using an f-string that does not have any interpolated variables
43 12 warning unused-variable W0612 RunEnergyPlusSimulation.run
Unused variable 'webtool_df_ep'
45 29 warning f-string-without-interpolation W1309 RunEnergyPlusSimulation.run
Using an f-string that does not have any interpolated variables
47 29 warning f-string-without-interpolation W1309 RunEnergyPlusSimulation.run
Using an f-string that does not have any interpolated variables

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_visualize_results (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_visualize_results.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
21 4 warning arguments-differ W0221 VisualizeResults.run
Number of parameters was 2 in 'ITask.run' and is now 3 in overriding 'VisualizeResults.run' method
21 4 warning arguments-differ W0221 VisualizeResults.run
Variadics removed in overriding 'VisualizeResults.run' method
41 0 convention trailing-newlines C0305
Trailing newlines

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.load_energyplus_results (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/load_energyplus_results.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 warning unused-import W0611
Unused import json
2 0 warning unused-import W0611
Unused import re
3 0 warning unused-import W0611
Unused Path imported from pathlib
5 0 error import-error E0401
Unable to import 'geomeppy'
7 0 warning unused-import W0611
Unused import bim2sim
15 4 warning arguments-differ W0221 LoadEnergyPlusResults.run
Variadics removed in overriding 'LoadEnergyPlusResults.run' method
29 0 convention superfluous-parens C0325
Unnecessary parens after '=' keyword

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/utils/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils.utils_postprocessing (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/utils/utils_postprocessing.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
3 0 convention wrong-import-order C0411
standard import "import datetime as dt" should be placed before "import pandas as pd"
3 0 warning unused-import W0611
Unused datetime imported as dt
6 0 convention missing-class-docstring C0115 PostprocessingUtils
Missing class docstring
29 30 convention invalid-name C0103 PostprocessingUtils._extract_cols_from_df
Argument name "df" doesn't conform to snake_case naming style
41 4 convention missing-function-docstring C0116 PostprocessingUtils.read_csv_and_format_datetime
Missing function or method docstring
59 0 convention line-too-long C0301
Line too long (81/80)
64 4 convention missing-function-docstring C0116 PostprocessingUtils.shift_dataframe_to_midnight
Missing function or method docstring
64 36 convention invalid-name C0103 PostprocessingUtils.shift_dataframe_to_midnight
Argument name "df" doesn't conform to snake_case naming style
70 4 convention missing-function-docstring C0116 PostprocessingUtils.export_df_for_webtool
Missing function or method docstring
75 0 convention line-too-long C0301
Line too long (89/80)
77 8 convention invalid-name C0103 PostprocessingUtils.export_df_for_webtool
Variable name "zone_cooling_rates_W" doesn't conform to snake_case naming style
79 8 convention invalid-name C0103 PostprocessingUtils.export_df_for_webtool
Variable name "zone_heating_rates_W" doesn't conform to snake_case naming style
87 4 refactor too-many-locals R0914 PostprocessingUtils._visualize_results
Too many local variables (27/15)
87 4 refactor too-many-statements R0915 PostprocessingUtils._visualize_results
Too many statements (62/50)
116 8 warning unused-variable W0612 PostprocessingUtils._visualize_results
Unused variable 'equip_rate'
122 8 warning unused-variable W0612 PostprocessingUtils._visualize_results
Unused variable 'people_rate'
126 8 warning unused-variable W0612 PostprocessingUtils._visualize_results
Unused variable 'rad_dir'
142 8 refactor no-else-return R1705 PostprocessingUtils._visualize_results
Unnecessary "elif" after "return", remove the leading "el" from "elif"
144 16 convention invalid-name C0103 PostprocessingUtils._visualize_results
Variable name "ax" doesn't conform to snake_case naming style
154 16 convention invalid-name C0103 PostprocessingUtils._visualize_results
Variable name "ax" doesn't conform to snake_case naming style
168 16 convention invalid-name C0103 PostprocessingUtils._visualize_results
Variable name "ax" doesn't conform to snake_case naming style
184 12 warning redefined-builtin W0622 PostprocessingUtils._visualize_results
Redefining built-in 'min'
185 12 warning redefined-builtin W0622 PostprocessingUtils._visualize_results
Redefining built-in 'max'
190 12 convention invalid-name C0103 PostprocessingUtils._visualize_results
Variable name "ax" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils.utils_visualization (bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/utils/utils_visualization.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
12 0 warning unused-import W0611
Unused ImageFont imported from PIL
19 0 convention missing-class-docstring C0115 VisualizationUtils
Missing class docstring
24 32 warning unused-variable W0612 VisualizationUtils._display_shape_of_space_boundaries
Unused variable 'add_menu'
24 42 warning unused-variable W0612 VisualizationUtils._display_shape_of_space_boundaries
Unused variable 'add_function_to_menu'
36 0 convention line-too-long C0301
Line too long (98/80)
37 16 warning bare-except W0702 VisualizationUtils._display_shape_of_space_boundaries
No exception type(s) specified
44 32 warning unused-variable W0612 VisualizationUtils._display_bound_normal_orientation
Unused variable 'add_menu'
44 42 warning unused-variable W0612 VisualizationUtils._display_bound_normal_orientation
Unused variable 'add_function_to_menu'
45 8 warning unused-variable W0612 VisualizationUtils._display_bound_normal_orientation
Unused variable 'col'
65 32 warning unused-variable W0612 VisualizationUtils.display_occ_shapes
Unused variable 'add_menu'
65 42 warning unused-variable W0612 VisualizationUtils.display_occ_shapes
Unused variable 'add_function_to_menu'
69 12 warning bare-except W0702 VisualizationUtils.display_occ_shapes
No exception type(s) specified
86 4 convention missing-function-docstring C0116 VisualizationUtils.rgb
Missing function or method docstring
89 8 convention invalid-name C0103 VisualizationUtils.rgb
Variable name "r" doesn't conform to snake_case naming style
90 8 convention invalid-name C0103 VisualizationUtils.rgb
Variable name "b" doesn't conform to snake_case naming style
91 8 convention invalid-name C0103 VisualizationUtils.rgb
Variable name "g" doesn't conform to snake_case naming style
95 4 convention missing-function-docstring C0116 VisualizationUtils.interpolate_to_rgb
Missing function or method docstring
97 8 convention invalid-name C0103 VisualizationUtils.interpolate_to_rgb
Variable name "s" doesn't conform to snake_case naming style
98 8 convention invalid-name C0103 VisualizationUtils.interpolate_to_rgb
Variable name "l" doesn't conform to snake_case naming style
99 8 convention invalid-name C0103 VisualizationUtils.interpolate_to_rgb
Variable name "h" doesn't conform to snake_case naming style
101 8 convention invalid-name C0103 VisualizationUtils.interpolate_to_rgb
Variable name "r" doesn't conform to snake_case naming style
101 11 convention invalid-name C0103 VisualizationUtils.interpolate_to_rgb
Variable name "g" doesn't conform to snake_case naming style
101 14 convention invalid-name C0103 VisualizationUtils.interpolate_to_rgb
Variable name "b" doesn't conform to snake_case naming style
123 8 convention invalid-name C0103 VisualizationUtils.get_column_from_ep_results
Variable name "df" doesn't conform to snake_case naming style
123 13 warning protected-access W0212 VisualizationUtils.get_column_from_ep_results
Access to a protected member _extract_cols_from_df of a client class
133 4 convention missing-function-docstring C0116 VisualizationUtils.add_legend
Missing function or method docstring
133 4 refactor too-many-arguments R0913 VisualizationUtils.add_legend
Too many arguments (9/5)
133 4 refactor too-many-locals R0914 VisualizationUtils.add_legend
Too many local variables (22/15)
133 30 warning unused-argument W0613 VisualizationUtils.add_legend
Unused argument 'paths'
137 8 convention invalid-name C0103 VisualizationUtils.add_legend
Variable name "im" doesn't conform to snake_case naming style
142 18 warning unused-variable W0612 VisualizationUtils.add_legend
Unused variable 'im_heigth'
178 4 refactor too-many-locals R0914 VisualizationUtils.visualize_zones
Too many local variables (30/15)
196 9 warning fixme W0511
todo multi storage floor plan where all floors are placed
230 17 warning unused-variable W0612 VisualizationUtils.visualize_zones
Unused variable 'start_display'
230 32 warning unused-variable W0612 VisualizationUtils.visualize_zones
Unused variable 'add_menu'
230 42 warning unused-variable W0612 VisualizationUtils.visualize_zones
Unused variable 'add_function_to_menu'
253 27 refactor consider-using-set-comprehension R1718 VisualizationUtils.visualize_zones
Consider using a set comprehension
281 0 convention line-too-long C0301
Line too long (82/80)
288 13 warning fixme W0511
todo: rescale underlying image so that the floorplan does not

Module bim2sim.plugins.PluginEnergyPlus.setup (bim2sim/plugins/PluginEnergyPlus/setup.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring

Module bim2sim.plugins.PluginEnergyPlus.test.integration.__init__ (bim2sim/plugins/PluginEnergyPlus/test/integration/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention trailing-newlines C0305
Trailing newlines

Module bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus (bim2sim/plugins/PluginEnergyPlus/test/integration/test_energyplus.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
8 0 error import-error E0401
Unable to import 'energyplus_regressions.diffs'
8 0 warning unused-import W0611
Unused math_diff imported from energyplus_regressions.diffs
8 0 warning unused-import W0611
Unused table_diff imported from energyplus_regressions.diffs
9 0 error import-error E0401
Unable to import 'energyplus_regressions.diffs.thresh_dict'
9 0 warning unused-import W0611
Unused ThreshDict imported from energyplus_regressions.diffs.thresh_dict
21 0 convention missing-class-docstring C0115 IntegrationBaseEP
Missing class docstring
29 0 convention line-too-long C0301
Line too long (87/80)
32 0 convention line-too-long C0301
Line too long (82/80)
42 0 convention line-too-long C0301
Line too long (84/80)
45 0 convention line-too-long C0301
Line too long (90/80)
46 12 warning bare-except W0702 IntegrationBaseEP.tearDown
No exception type(s) specified
66 0 convention line-too-long C0301
Line too long (100/80)
69 4 convention invalid-name C0103 TestEPIntegration.test_base_01_FZK_design_day
Method name "test_base_01_FZK_design_day" doesn't conform to snake_case naming style
90 4 convention invalid-name C0103 TestEPIntegration.test_base_02_FZK_full_run
Method name "test_base_02_FZK_full_run" doesn't conform to snake_case naming style
102 4 convention invalid-name C0103 TestEPIntegration.test_base_03_FZK_SB_design_day
Method name "test_base_03_FZK_SB_design_day" doesn't conform to snake_case naming style
119 4 convention invalid-name C0103 TestEPIntegration.test_base_04_FZK_SB_full_run
Method name "test_base_04_FZK_SB_full_run" doesn't conform to snake_case naming style
140 4 convention invalid-name C0103 TestEPIntegration.test_base_05_KIT_Inst_design_day
Method name "test_base_05_KIT_Inst_design_day" doesn't conform to snake_case naming style
155 4 convention invalid-name C0103 TestEPIntegration.test_base_06_KIT_Inst_full_run
Method name "test_base_06_KIT_Inst_full_run" doesn't conform to snake_case naming style
167 4 convention invalid-name C0103 TestEPIntegration.test_base_07_KIT_Inst_SB_design_day
Method name "test_base_07_KIT_Inst_SB_design_day" doesn't conform to snake_case naming style
184 4 convention invalid-name C0103 TestEPIntegration.test_base_08_KIT_Inst_SB_full_run
Method name "test_base_08_KIT_Inst_SB_full_run" doesn't conform to snake_case naming style
200 4 convention invalid-name C0103 TestEPIntegration.test_DigitalHub_SB89
Method name "test_DigitalHub_SB89" doesn't conform to snake_case naming style
236 4 convention invalid-name C0103 TestEPIntegration.test_base_09_DH_design_day
Method name "test_base_09_DH_design_day" doesn't conform to snake_case naming style
268 4 convention invalid-name C0103 TestEPIntegration.test_base_13_EDC_SB_design_day
Method name "test_base_13_EDC_SB_design_day" doesn't conform to snake_case naming style
289 4 convention invalid-name C0103 TestEPIntegration.test_base_14_EDC_SB_full_run
Method name "test_base_14_EDC_SB_full_run" doesn't conform to snake_case naming style
308 4 convention invalid-name C0103 TestEPIntegration.test_base_17_ERC_design_day
Method name "test_base_17_ERC_design_day" doesn't conform to snake_case naming style
324 4 convention invalid-name C0103 TestEPIntegration.test_base_19_linear_SB_design_day
Method name "test_base_19_linear_SB_design_day" doesn't conform to snake_case naming style
326 0 convention line-too-long C0301
Line too long (95/80)

Module bim2sim.plugins.PluginEnergyPlus.test.integration.test_useage (bim2sim/plugins/PluginEnergyPlus/test/integration/test_useage.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
10 12 convention import-outside-toplevel C0415 TestUsage.test_import_plugin
Import outside toplevel (bim2sim.plugins.load_plugin, bim2sim.plugins.Plugin)
14 22 convention consider-using-f-string C0209 TestUsage.test_import_plugin
Formatting a regular string which could be a f-string

Module bim2sim.plugins.PluginEnergyPlus.test.regression.prepare_regression_tests (bim2sim/plugins/PluginEnergyPlus/test/regression/prepare_regression_tests.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 convention missing-function-docstring C0116 prepare_regression_tests
Missing function or method docstring

Module bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus (bim2sim/plugins/PluginEnergyPlus/test/regression/test_energyplus.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
9 0 error import-error E0401
Unable to import 'energyplus_regressions.diffs'
10 0 error import-error E0401
Unable to import 'energyplus_regressions.diffs.thresh_dict'
13 0 warning unused-import W0611
Unused LOD imported from bim2sim.utilities.types
40 4 warning arguments-differ W0221 RegressionTestEnergyPlus.create_regression_setup
Number of parameters was 2 in 'RegressionTestBase.create_regression_setup' and is now 1 in overriding 'RegressionTestEnergyPlus.create_regression_setup' method
51 8 warning unused-variable W0612 RegressionTestEnergyPlus.create_regression_setup
Unused variable 'model_export_name'
110 12 warning logging-fstring-interpolation W1203 RegressionTestEnergyPlus.run_regression_test
Use lazy % formatting in logging functions
127 24 warning protected-access W0212 RegressionTestEnergyPlus.create_regression_results
Access to a protected member _comp_info of a client class
128 25 warning protected-access W0212 RegressionTestEnergyPlus.create_regression_results
Access to a protected member _comp_info of a client class
140 28 error no-member E1101 RegressionTestEnergyPlus.create_regression_results
Instance of 'RegressionTestEnergyPlus' has no 'ref_results_dst_path' member
144 12 warning logging-fstring-interpolation W1203 RegressionTestEnergyPlus.create_regression_results
Use lazy % formatting in logging functions
144 25 warning f-string-without-interpolation W1309 RegressionTestEnergyPlus.create_regression_results
Using an f-string that does not have any interpolated variables
150 4 convention invalid-name C0103 TestRegressionEnergyPlus.test_regression_AC20_FZK_Haus
Method name "test_regression_AC20_FZK_Haus" doesn't conform to snake_case naming style
174 4 convention invalid-name C0103 TestRegressionEnergyPlus.test_regression_DigitalHub_SB89
Method name "test_regression_DigitalHub_SB89" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginEnergyPlus.test.unit.task.test_weather (bim2sim/plugins/PluginEnergyPlus/test/unit/task/test_weather.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
15 0 convention missing-class-docstring C0115 PluginWeatherDummyEP
Missing class docstring
15 0 refactor too-few-public-methods R0903 PluginWeatherDummyEP
Too few public methods (0/2)
39 24 refactor consider-using-with R1732 TestWeather.test_weather_energyplus
Consider using 'with' for resource-allocating operations
39 8 warning attribute-defined-outside-init W0201 TestWeather.test_weather_energyplus
Attribute 'test_dir' defined outside __init__
42 8 warning attribute-defined-outside-init W0201 TestWeather.test_weather_energyplus
Attribute 'project' defined outside __init__
51 12 warning raise-missing-from W0707 TestWeather.test_weather_energyplus
Consider explicitly re-raising using 'except Exception as exc' and 'raise ValueError(f'No weather file set through Weather task. Anerror occurred.') from exc'
51 29 warning f-string-without-interpolation W1309 TestWeather.test_weather_energyplus
Using an f-string that does not have any interpolated variables
53 8 warning deprecated-method W4902 TestWeather.test_weather_energyplus
Using deprecated method assertEquals()

Module bim2sim.plugins.PluginHKESim (bim2sim/plugins/PluginHKESim/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention invalid-name C0103
Module name "PluginHKESim" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginHKESim.bim2sim_hkesim.__init__ (bim2sim/plugins/PluginHKESim/bim2sim_hkesim/__init__.py)

Line Col. Type Symbol ID Obj Message
17 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple

Module bim2sim.plugins.PluginHKESim.bim2sim_hkesim (bim2sim/plugins/PluginHKESim/bim2sim_hkesim/__init__.py)

Line Col. Type Symbol ID Obj Message
20 0 convention missing-class-docstring C0115 PluginHKESim
Missing class docstring
20 0 refactor too-few-public-methods R0903 PluginHKESim
Too few public methods (0/2)

Module bim2sim.plugins.PluginHKESim.bim2sim_hkesim.examples.e1_simple_project_hvac_hkesim (bim2sim/plugins/PluginHKESim/bim2sim_hkesim/examples/e1_simple_project_hvac_hkesim.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
20 8 refactor consider-using-with R1732 run_example_simple_hvac_hkesim
Consider using 'with' for resource-allocating operations

Module bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__ (bim2sim/plugins/PluginHKESim/bim2sim_hkesim/models/__init__.py)

Line Col. Type Symbol ID Obj Message
42 9 warning fixme W0511
TODO: Gas and electric connection see
265 9 warning fixme W0511
TODO: heat pump might have 4 ports (if source is modeled in BIM)
301 9 warning fixme W0511
TODO: chiller might have 4 ports (if source is modeled in BIM)

Module bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models (bim2sim/plugins/PluginHKESim/bim2sim_hkesim/models/__init__.py)

Line Col. Type Symbol ID Obj Message
12 0 convention missing-class-docstring C0115 HKESim
Missing class docstring
16 0 convention missing-class-docstring C0115 Boiler
Missing class docstring
38 8 refactor no-else-return R1705 Boiler.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
46 0 convention missing-class-docstring C0115 Radiator
Missing class docstring
68 8 refactor no-else-return R1705 Radiator.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
74 0 convention missing-class-docstring C0115 Pump
Missing class docstring
104 8 refactor no-else-return R1705 Pump.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
110 0 convention missing-class-docstring C0115 ThreeWayValve
Missing class docstring
127 8 refactor no-else-return R1705 ThreeWayValve.get_port_name
Unnecessary "elif" after "return", remove the leading "el" from "elif"
137 0 convention missing-class-docstring C0115 ConsumerHeatingDistributorModule
Missing class docstring
191 8 refactor no-else-return R1705 ConsumerHeatingDistributorModule.get_port_name
Unnecessary "elif" after "return", remove the leading "el" from "elif"
196 19 convention consider-using-f-string C0209 ConsumerHeatingDistributorModule.get_port_name
Formatting a regular string which could be a f-string
199 19 convention consider-using-f-string C0209 ConsumerHeatingDistributorModule.get_port_name
Formatting a regular string which could be a f-string
205 0 convention missing-class-docstring C0115 BoilerModule
Missing class docstring
238 8 refactor no-else-return R1705 BoilerModule.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
244 0 convention missing-class-docstring C0115 HeatPump
Missing class docstring
268 8 refactor no-else-return R1705 HeatPump.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
274 0 convention missing-class-docstring C0115 Chiller
Missing class docstring
304 8 refactor no-else-return R1705 Chiller.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
310 0 convention missing-class-docstring C0115 CHP
Missing class docstring
329 8 refactor no-else-return R1705 CHP.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
335 0 convention missing-class-docstring C0115 CoolingTower
Missing class docstring
354 8 refactor no-else-return R1705 CoolingTower.get_port_name
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it

Module bim2sim.plugins.PluginHKESim.test.integration.test_hkesim (bim2sim/plugins/PluginHKESim/test/integration/test_hkesim.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
12 0 convention missing-class-docstring C0115 IntegrationBaseHKESIM
Missing class docstring
21 0 convention missing-class-docstring C0115 TestIntegrationHKESIM
Missing class docstring

Module bim2sim.plugins.PluginHKESim.test.unit.kernel.task.test_export (bim2sim/plugins/PluginHKESim/test/unit/kernel/task/test_export.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 warning unused-import W0611
Unused import tempfile
7 0 warning unused-import W0611
Unused DebugDecisionHandler imported from bim2sim.kernel.decision.decisionhandler
9 0 convention wrong-import-order C0411
standard import "from test.unit.tasks.hvac.test_export import TestStandardLibraryExports" should be placed before "from bim2sim.elements.aggregation.hvac_aggregations import ConsumerHeatingDistributorModule"
12 0 convention missing-class-docstring C0115 TestHKESimExport
Missing class docstring
21 4 convention missing-function-docstring C0116 TestHKESimExport.test_boiler_export
Missing function or method docstring
22 16 error no-member E1101 TestHKESimExport.test_boiler_export
Method 'helper' has no 'get_simple_boiler' member
32 4 convention missing-function-docstring C0116 TestHKESimExport.test_radiator_export
Missing function or method docstring
33 16 error no-member E1101 TestHKESimExport.test_radiator_export
Method 'helper' has no 'get_simple_radiator' member
43 4 convention missing-function-docstring C0116 TestHKESimExport.test_pump_export
Missing function or method docstring
44 19 error no-member E1101 TestHKESimExport.test_pump_export
Method 'helper' has no 'get_simple_pump' member
56 4 convention missing-function-docstring C0116 TestHKESimExport.test_three_way_valve_export
Missing function or method docstring
57 9 warning fixme W0511
TODO: there are no parameters to test for
60 4 convention missing-function-docstring C0116 TestHKESimExport.test_consumer_heating_distributor_module_export
Missing function or method docstring
62 16 error no-member E1101 TestHKESimExport.test_consumer_heating_distributor_module_export
Method 'helper' has no 'get_simple_consumer_heating_distributor_module' member
97 4 convention missing-function-docstring C0116 TestHKESimExport.test_boiler_module_export
Missing function or method docstring
98 16 error no-member E1101 TestHKESimExport.test_boiler_module_export
Method 'helper' has no 'get_simple_generator_one_fluid' member
113 4 convention missing-function-docstring C0116 TestHKESimExport.test_heat_pump_export
Missing function or method docstring
114 16 error no-member E1101 TestHKESimExport.test_heat_pump_export
Method 'helper' has no 'get_simple_heat_pump' member
123 4 convention missing-function-docstring C0116 TestHKESimExport.test_chiller_export
Missing function or method docstring
124 16 error no-member E1101 TestHKESimExport.test_chiller_export
Method 'helper' has no 'get_simple_chiller' member
134 4 convention missing-function-docstring C0116 TestHKESimExport.test_chp_export
Missing function or method docstring
135 16 error no-member E1101 TestHKESimExport.test_chp_export
Method 'helper' has no 'get_simple_chp' member
144 4 convention missing-function-docstring C0116 TestHKESimExport.test_cooling_tower_export
Missing function or method docstring
145 16 error no-member E1101 TestHKESimExport.test_cooling_tower_export
Method 'helper' has no 'get_simple_cooling_tower' member

Module bim2sim.plugins.PluginLCA (bim2sim/plugins/PluginLCA/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention invalid-name C0103
Module name "PluginLCA" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginLCA.bim2sim_lca (bim2sim/plugins/PluginLCA/bim2sim_lca/__init__.py)

Line Col. Type Symbol ID Obj Message
12 0 convention missing-class-docstring C0115 PluginLCA
Missing class docstring
12 0 refactor too-few-public-methods R0903 PluginLCA
Too few public methods (0/2)

Module bim2sim.plugins.PluginLCA.bim2sim_lca.examples.e1_export_quantities_for_lca (bim2sim/plugins/PluginLCA/bim2sim_lca/examples/e1_export_quantities_for_lca.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
25 24 refactor consider-using-with R1732 run_example_complex_building_lca
Consider using 'with' for resource-allocating operations

Module bim2sim.plugins.PluginLCA.bim2sim_lca.sim_settings (bim2sim/plugins/PluginLCA/bim2sim_lca/sim_settings.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 convention useless-import-alias C0414
Import alias does not rename original package
1 0 convention useless-import-alias C0414
Import alias does not rename original package

Module bim2sim.plugins.PluginLCA.bim2sim_lca.task.export_lca (bim2sim/plugins/PluginLCA/bim2sim_lca/task/export_lca.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
35 0 convention line-too-long C0301
Line too long (93/80)
36 0 convention line-too-long C0301
Line too long (82/80)
44 0 convention line-too-long C0301
Line too long (93/80)
45 0 convention line-too-long C0301
Line too long (82/80)
97 0 convention line-too-long C0301
Line too long (104/80)
153 4 warning arguments-differ W0221 ExportLCA.run
Number of parameters was 2 in 'ITask.run' and is now 3 in overriding 'ExportLCA.run' method
153 4 warning arguments-differ W0221 ExportLCA.run
Variadics removed in overriding 'ExportLCA.run' method
153 18 warning unused-argument W0613 ExportLCA.run
Unused argument 'ifc_files'
159 4 refactor too-many-branches R0912 ExportLCA.export_materials
Too many branches (14/12)
173 9 warning fixme W0511
todo: if we have the volume of each layer we can do this more straight
175 8 refactor too-many-nested-blocks R1702 ExportLCA.export_materials
Too many nested blocks (6/5)
175 8 refactor too-many-nested-blocks R1702 ExportLCA.export_materials
Too many nested blocks (6/5)
195 13 warning unspecified-encoding W1514 ExportLCA.export_materials
Using open without explicitly specifying an encoding
205 12 convention consider-using-dict-items C0206 ExportLCA.export_materials
Consider iterating with .items()
205 23 convention consider-iterating-dictionary C0201 ExportLCA.export_materials
Consider iterating the dictionary directly instead of calling .keys()
216 4 convention missing-function-docstring C0116 ExportLCA.export_overview
Missing function or method docstring
216 4 refactor too-many-locals R0914 ExportLCA.export_overview
Too many local variables (25/15)
220 13 warning unspecified-encoding W1514 ExportLCA.export_overview
Using open without explicitly specifying an encoding
339 8 refactor no-else-return R1705 ExportLCA.ureg_to_str
Unnecessary "elif" after "return", remove the leading "el" from "elif"

Module bim2sim.plugins.PluginLCA.test.integration.test_lca (bim2sim/plugins/PluginLCA/test/integration/test_lca.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
8 0 convention missing-class-docstring C0115 IntegrationBaseLCA
Missing class docstring
13 0 convention missing-class-docstring C0115 TestIntegrationLCA
Missing class docstring
25 4 convention invalid-name C0103 TestIntegrationLCA.test_run_ERC_lca
Method name "test_run_ERC_lca" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginLCA.test.integration.test_useage (bim2sim/plugins/PluginLCA/test/integration/test_useage.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
10 12 convention import-outside-toplevel C0415 TestUsage.test_import_plugin
Import outside toplevel (bim2sim.plugins.load_plugin, bim2sim.plugins.Plugin)
14 22 convention consider-using-f-string C0209 TestUsage.test_import_plugin
Formatting a regular string which could be a f-string

Module bim2sim.plugins.PluginTEASER (bim2sim/plugins/PluginTEASER/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention invalid-name C0103
Module name "PluginTEASER" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.__init__ (bim2sim/plugins/PluginTEASER/bim2sim_teaser/__init__.py)

Line Col. Type Symbol ID Obj Message
18 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser (bim2sim/plugins/PluginTEASER/bim2sim_teaser/__init__.py)

Line Col. Type Symbol ID Obj Message
21 0 convention missing-class-docstring C0115 PluginTEASER
Missing class docstring
21 0 refactor too-few-public-methods R0903 PluginTEASER
Too few public methods (0/2)

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e1_simple_project_bps_teaser (bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e1_simple_project_bps_teaser.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
19 24 refactor consider-using-with R1732 run_example_simple_building_teaser
Consider using 'with' for resource-allocating operations
72 4 convention import-outside-toplevel C0415 run_example_simple_building_teaser
Import outside toplevel (bim2sim.elements.bps_elements.OuterWall)
88 4 warning unused-variable W0612 run_example_simple_building_teaser
Unused variable 'teaser_prj'

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser (bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e2_complex_project_teaser.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
20 8 refactor consider-using-with R1732 run_example_complex_building_teaser
Consider using 'with' for resource-allocating operations
64 0 convention line-too-long C0301
Line too long (84/80)

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e3_load_teaser_simulation_results (bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e3_load_teaser_simulation_results.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
7 0 error import-error E0401
Unable to import 'e1_simple_project_bps_teaser'
7 0 convention wrong-import-order C0411
third party import "from e1_simple_project_bps_teaser import run_example_simple_building_teaser" should be placed before "import bim2sim"
35 5 warning fixme W0511
TODO those 2 are not used but are needed currently as otherwise the

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e4_visualize_zone_binding (bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e4_visualize_zone_binding.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
11 0 warning unused-import W0611
Unused LOD imported from bim2sim.utilities.types
23 8 refactor consider-using-with R1732 visualize_zoning_of_complex_building
Consider using 'with' for resource-allocating operations

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj (bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e5_serialize_teaser_prj.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
5 0 warning unused-import W0611
Unused run_project imported from bim2sim
5 0 warning unused-import W0611
Unused ConsoleDecisionHandler imported from bim2sim
10 0 warning unused-import W0611
Unused PluginTEASER imported from bim2sim.plugins.PluginTEASER.bim2sim_teaser
20 8 refactor consider-using-with R1732 run_serialize_teaser_project_example
Consider using 'with' for resource-allocating operations
66 0 convention line-too-long C0301
Line too long (84/80)

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e6_load_serialized_teaser_prj (bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e6_load_serialized_teaser_prj.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 warning unused-import W0611
Unused Path imported from pathlib
2 0 error import-error E0401
Unable to import 'teaser.project'
4 0 error import-error E0401
Unable to import 'bim2sim_teaser.task'
5 0 error import-error E0401
Unable to import 'e5_serialize_teaser_prj'
8 0 refactor too-many-locals R0914 load_serialized_teaser_project
Too many local variables (21/15)
24 12 convention invalid-name C0103 load_serialized_teaser_project
Variable name "tz" doesn't conform to snake_case naming style
26 16 convention invalid-name C0103 load_serialized_teaser_project
Variable name "ow" doesn't conform to snake_case naming style
45 16 convention invalid-name C0103 load_serialized_teaser_project
Variable name "ow" doesn't conform to snake_case naming style
49 16 convention invalid-name C0103 load_serialized_teaser_project
Variable name "ow" doesn't conform to snake_case naming style
64 4 warning unused-variable W0612 load_serialized_teaser_project
Unused variable 'orig_heat_loads'
64 21 warning unused-variable W0612 load_serialized_teaser_project
Unused variable 'orig_cool_loads'
77 0 convention trailing-newlines C0305
Trailing newlines

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.export.__init__ (bim2sim/plugins/PluginTEASER/bim2sim_teaser/export/__init__.py)

Line Col. Type Symbol ID Obj Message
50 0 convention line-too-long C0301
Line too long (96/80)
54 0 convention line-too-long C0301
Line too long (83/80)
93 0 convention line-too-long C0301
Line too long (83/80)
116 0 convention line-too-long C0301
Line too long (95/80)

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.export (bim2sim/plugins/PluginTEASER/bim2sim_teaser/export/__init__.py)

Line Col. Type Symbol ID Obj Message
51 12 warning logging-fstring-interpolation W1203 TEASERExportInstance._lookup_add
Use lazy % formatting in logging functions
93 17 refactor consider-using-set-comprehension R1718 TEASERExportInstance.init_factory
Consider using a set comprehension
95 20 convention consider-using-f-string C0209 TEASERExportInstance.init_factory
Formatting a regular string which could be a f-string
100 4 convention missing-function-docstring C0116 TEASERExportInstance.get_library_classes
Missing function or method docstring
119 15 refactor consider-merging-isinstance R1701 TEASERExportInstance.factory
Consider merging these isinstance calls to isinstance(element, (InnerFloor, InnerFloorDisaggregated))
124 16 warning logging-fstring-interpolation W1203 TEASERExportInstance.factory
Use lazy % formatting in logging functions
131 4 refactor too-many-branches R0912 TEASERExportInstance.handle_ceiling_floor
Too many branches (14/12)
150 8 convention import-outside-toplevel C0415 TEASERExportInstance.handle_ceiling_floor
Import outside toplevel (bim2sim.plugins.PluginTEASER.bim2sim_teaser.models.Ceiling, bim2sim.plugins.PluginTEASER.bim2sim_teaser.models.Floor)
157 20 convention invalid-name C0103 TEASERExportInstance.handle_ceiling_floor
Variable name "tz" doesn't conform to snake_case naming style
158 24 convention invalid-name C0103 TEASERExportInstance.handle_ceiling_floor
Variable name "sb" doesn't conform to snake_case naming style
167 16 warning logging-fstring-interpolation W1203 TEASERExportInstance.handle_ceiling_floor
Use lazy % formatting in logging functions
191 16 warning logging-fstring-interpolation W1203 TEASERExportInstance.handle_ceiling_floor
Use lazy % formatting in logging functions
194 15 error used-before-assignment E0601 TEASERExportInstance.handle_ceiling_floor
Using variable 'export_cls' before assignment
215 8 warning unnecessary-pass W0107 TEASERExportInstance.request_params
Unnecessary pass statement
300 15 convention consider-using-f-string C0209 TEASERExportInstance.__repr__
Formatting a regular string which could be a f-string
300 49 error no-member E1101 TEASERExportInstance.__repr__
Instance of 'TEASERExportInstance' has no 'name' member
303 0 convention missing-class-docstring C0115 Dummy
Missing class docstring

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.models.__init__ (bim2sim/plugins/PluginTEASER/bim2sim_teaser/models/__init__.py)

Line Col. Type Symbol ID Obj Message
70 9 warning fixme W0511
todo workaround until setter method is changed in TEASER, see TEASER

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.models (bim2sim/plugins/PluginTEASER/bim2sim_teaser/models/__init__.py)

Line Col. Type Symbol ID Obj Message
2 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.building'
3 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.door'
5 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.floor'
7 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.ceiling'
9 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.groundfloor'
11 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.innerwall'
13 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.layer'
15 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.material'
17 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.outerwall'
19 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.rooftop'
21 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.window'
23 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.thermalzone'
25 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.useconditions'
27 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingsystems.buildingahu'
37 0 convention missing-class-docstring C0115 TEASER
Missing class docstring
41 0 convention missing-class-docstring C0115 Building
Missing class docstring
53 4 convention missing-function-docstring C0116 Building.add_thermal_zones_to_building
Missing function or method docstring
54 12 convention invalid-name C0103 Building.add_thermal_zones_to_building
Variable name "tz" doesn't conform to snake_case naming style
75 0 convention missing-class-docstring C0115 ThermalZone
Missing class docstring
85 4 convention missing-function-docstring C0116 ThermalZone.add_elements_to_thermal_zone
Missing function or method docstring
104 0 convention missing-class-docstring C0115 BuildingAHU
Missing class docstring
137 0 convention missing-class-docstring C0115 UseConditions
Missing class docstring
137 0 refactor too-many-instance-attributes R0902 UseConditions
Too many instance attributes (36/7)
156 8 convention invalid-name C0103 UseConditions.overwrite_teaser_defaults
Attribute name "T_threshold_heating" doesn't conform to snake_case naming style
157 8 convention invalid-name C0103 UseConditions.overwrite_teaser_defaults
Attribute name "T_threshold_cooling" doesn't conform to snake_case naming style
237 0 convention missing-class-docstring C0115 ElementWithLayers
Missing class docstring
245 4 convention missing-function-docstring C0116 ElementWithLayers.add_layers_to_element
Missing function or method docstring
252 15 convention consider-using-f-string C0209 ElementWithLayers.__repr__
Formatting a regular string which could be a f-string
255 0 convention missing-class-docstring C0115 InnerWall
Missing class docstring
278 0 convention missing-class-docstring C0115 OuterWall
Missing class docstring
293 0 convention missing-class-docstring C0115 Rooftop
Missing class docstring
306 0 convention missing-class-docstring C0115 Floor
Missing class docstring
319 0 convention missing-class-docstring C0115 Ceiling
Missing class docstring
332 0 convention missing-class-docstring C0115 GroundFloor
Missing class docstring
345 0 convention missing-class-docstring C0115 Window
Missing class docstring
367 0 convention missing-class-docstring C0115 Door
Missing class docstring
386 0 convention missing-class-docstring C0115 Layer
Missing class docstring
398 15 convention consider-using-f-string C0209 Layer.__repr__
Formatting a regular string which could be a f-string
401 0 convention missing-class-docstring C0115 Material
Missing class docstring

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.sim_settings (bim2sim/plugins/PluginTEASER/bim2sim_teaser/sim_settings.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
3 0 warning unused-import W0611
Unused LOD imported from bim2sim.utilities.types
107 0 convention missing-final-newline C0304
Final newline missing

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.task (bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.create_result_df (bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/create_result_df.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 error import-error E0401
Unable to import 'ebcpy'
23 5 warning fixme W0511
TODO check if the array indexing works correctly
30 5 warning fixme W0511
TODO calculate by specificPersons*roomArea
71 4 warning arguments-differ W0221 CreateResultDF.run
Number of parameters was 2 in 'ITask.run' and is now 4 in overriding 'CreateResultDF.run' method
71 4 warning arguments-differ W0221 CreateResultDF.run
Variadics removed in overriding 'CreateResultDF.run' method
93 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
98 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
99 17 warning fixme W0511
ToDO handle multiple buildings/ifcs #35
113 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
118 12 warning unused-argument W0613 CreateResultDF.format_dataframe
Unused argument 'relevant_vars'
194 12 convention invalid-name C0103 CreateResultDF.map_zonal_results
Variable name "tz" doesn't conform to snake_case naming style
208 27 convention invalid-name C0103 CreateResultDF.convert_time_index
Argument name "df" doesn't conform to snake_case naming style
218 0 convention line-too-long C0301
Line too long (90/80)
221 9 warning fixme W0511
TODO remove this in EP as well if correct
231 4 convention missing-function-docstring C0116 CreateResultDF.calc_indirect_result
Missing function or method docstring
232 9 warning fixme W0511
TODO

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.create_teaser_prj (bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/create_teaser_prj.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 error import-error E0401
Unable to import 'teaser.data.dataclass'
2 0 error import-error E0401
Unable to import 'teaser.data.utilities'
3 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.building'
4 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.outerwall'
5 0 error import-error E0401
Unable to import 'teaser.logic.buildingobjects.buildingphysics.window'
6 0 error import-error E0401
Unable to import 'teaser.project'
20 4 warning arguments-differ W0221 CreateTEASER.run
Number of parameters was 2 in 'ITask.run' and is now 4 in overriding 'CreateTEASER.run' method
20 4 warning arguments-differ W0221 CreateTEASER.run
Variadics removed in overriding 'CreateTEASER.run' method
59 0 convention line-too-long C0301
Line too long (83/80)
60 0 convention line-too-long C0301
Line too long (82/80)
103 16 convention invalid-name C0103 CreateTEASER.prepare_export
Variable name "tz" doesn't conform to snake_case naming style
119 16 convention invalid-name C0103 CreateTEASER.overwrite_heatloads
Variable name "tz" doesn't conform to snake_case naming style
128 4 convention missing-function-docstring C0116 CreateTEASER.min_admissible_elements
Missing function or method docstring
128 32 convention invalid-name C0103 CreateTEASER.min_admissible_elements
Argument name "tz" doesn't conform to snake_case naming style
128 36 warning unused-argument W0613 CreateTEASER.min_admissible_elements
Unused argument 'bldg'

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.export_teaser (bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/export_teaser.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
5 0 warning unused-import W0611
Unused bim2sim_teaser_mapping_base imported from bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.create_result_df
5 0 warning unused-import W0611
Unused CreateResultDF imported from bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.create_result_df
13 4 warning arguments-differ W0221 ExportTEASER.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'ExportTEASER.run' method
13 4 warning arguments-differ W0221 ExportTEASER.run
Variadics removed in overriding 'ExportTEASER.run' method
74 13 warning unspecified-encoding W1514 ExportTEASER.run
Using open without explicitly specifying an encoding

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.load_modelica_results (bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/load_modelica_results.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
1 0 warning unused-import W0611
Unused import json
3 0 warning unused-import W0611
Unused Path imported from pathlib
5 0 error import-error E0401
Unable to import 'ebcpy'
5 0 warning unused-import W0611
Unused DymolaAPI imported from ebcpy
7 0 warning unused-import W0611
Unused import bim2sim
15 4 warning arguments-differ W0221 LoadModelicaResults.run
Variadics removed in overriding 'LoadModelicaResults.run' method
28 8 warning unused-variable W0612 LoadModelicaResults.run
Unused variable 'teaser_mat_result_paths'

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.serialize_teaser_prj (bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/serialize_teaser_prj.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
8 4 warning arguments-differ W0221 SerializeTEASER.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'SerializeTEASER.run' method
8 4 warning arguments-differ W0221 SerializeTEASER.run
Variadics removed in overriding 'SerializeTEASER.run' method
19 0 convention line-too-long C0301
Line too long (82/80)

Module bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.simulate_dymola_ebcpy (bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/simulate_dymola_ebcpy.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
4 0 error import-error E0401
Unable to import 'ebcpy'
16 4 warning arguments-differ W0221 SimulateModelEBCPy.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'SimulateModelEBCPy.run' method
16 4 warning arguments-differ W0221 SimulateModelEBCPy.run
Variadics removed in overriding 'SimulateModelEBCPy.run' method
16 4 refactor too-many-locals R0914 SimulateModelEBCPy.run
Too many local variables (16/15)
33 8 refactor no-else-return R1705 SimulateModelEBCPy.run
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
38 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
46 20 warning f-string-without-interpolation W1309 SimulateModelEBCPy.run
Using an f-string that does not have any interpolated variables
101 20 warning raise-missing-from W0707 SimulateModelEBCPy.run
Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('Dymola API could not be initialized, thereare several possible reasons. One could be a missing Dymola license.') from exc'
101 20 warning broad-exception-raised W0719 SimulateModelEBCPy.run
Raising too general exception: Exception
122 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple

Module bim2sim.plugins.PluginTEASER.test.integration.test_teaser (bim2sim/plugins/PluginTEASER/test/integration/test_teaser.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
11 0 convention missing-class-docstring C0115 IntegrationBaseTEASER
Missing class docstring
16 0 convention missing-class-docstring C0115 TestIntegrationTEASER
Missing class docstring
42 4 convention invalid-name C0103 TestIntegrationTEASER.test_DH_spaces_medium_material_low
Method name "test_DH_spaces_medium_material_low" doesn't conform to snake_case naming style
69 0 convention line-too-long C0301
Line too long (82/80)
78 4 convention invalid-name C0103 TestIntegrationTEASER.test_ERC_Full
Method name "test_ERC_Full" doesn't conform to snake_case naming style
101 4 convention invalid-name C0103 TestIntegrationTEASER.test_ERC_Medium
Method name "test_ERC_Medium" doesn't conform to snake_case naming style
114 4 convention invalid-name C0103 TestIntegrationTEASER.test_ERC_Low
Method name "test_ERC_Low" doesn't conform to snake_case naming style
207 4 convention missing-function-docstring C0116 TestIntegrationTEASER.test_live_decisions
Missing function or method docstring
217 0 convention line-too-long C0301
Line too long (82/80)
221 8 warning unused-variable W0612 TestIntegrationTEASER.test_live_decisions
Unused variable 'answers_haus'

Module bim2sim.plugins.PluginTEASER.test.integration.test_useage (bim2sim/plugins/PluginTEASER/test/integration/test_useage.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
10 12 convention import-outside-toplevel C0415 TestUsage.test_import_plugin
Import outside toplevel (bim2sim.plugins.load_plugin, bim2sim.plugins.Plugin)
14 22 convention consider-using-f-string C0209 TestUsage.test_import_plugin
Formatting a regular string which could be a f-string

Module bim2sim.plugins.PluginTEASER.test.regression.create_regression_results (bim2sim/plugins/PluginTEASER/test/regression/create_regression_results.py)

Line Col. Type Symbol ID Obj Message
15 0 convention missing-class-docstring C0115 CreateRegressionResultsTEASER
Missing class docstring

Module bim2sim.plugins.PluginTEASER.test.regression.prepare_regression_tests (bim2sim/plugins/PluginTEASER/test/regression/prepare_regression_tests.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 0 convention missing-function-docstring C0116 prepare_regression_tests
Missing function or method docstring

Module bim2sim.plugins.PluginTEASER.test.regression.test_teaser (bim2sim/plugins/PluginTEASER/test/regression/test_teaser.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
7 0 error import-error E0401
Unable to import 'buildingspy.development.regressiontest'
17 0 convention missing-class-docstring C0115 RegressionTestTEASER
Missing class docstring
26 9 warning fixme W0511
TODO if statement is only needed, because CI discovers more tests
67 8 warning attribute-defined-outside-init W0201 RegressionTestTEASER.create_regression_setup
Attribute 'ref_results_src_path' defined outside __init__
70 8 warning attribute-defined-outside-init W0201 RegressionTestTEASER.create_regression_setup
Attribute 'ref_results_dst_path' defined outside __init__
83 16 warning f-string-without-interpolation W1309 RegressionTestTEASER.create_regression_setup
Using an f-string that does not have any interpolated variables
94 12 warning logging-fstring-interpolation W1203 RegressionTestTEASER.run_regression_test
Use lazy % formatting in logging functions
111 24 warning protected-access W0212 RegressionTestTEASER.create_regression_results
Access to a protected member _comp_info of a client class
112 25 warning protected-access W0212 RegressionTestTEASER.create_regression_results
Access to a protected member _comp_info of a client class
128 12 warning logging-fstring-interpolation W1203 RegressionTestTEASER.create_regression_results
Use lazy % formatting in logging functions
128 25 warning f-string-without-interpolation W1309 RegressionTestTEASER.create_regression_results
Using an f-string that does not have any interpolated variables
132 0 convention missing-class-docstring C0115 TestRegressionTEASER
Missing class docstring

Module bim2sim.plugins.PluginTEASER.test.unit.task.test_weather (bim2sim/plugins/PluginTEASER/test/unit/task/test_weather.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
15 0 convention missing-class-docstring C0115 PluginWeatherDummyTEASER
Missing class docstring
15 0 refactor too-few-public-methods R0903 PluginWeatherDummyTEASER
Too few public methods (0/2)
39 24 refactor consider-using-with R1732 TestWeather.test_weather_modelica
Consider using 'with' for resource-allocating operations
39 8 warning attribute-defined-outside-init W0201 TestWeather.test_weather_modelica
Attribute 'test_dir' defined outside __init__
42 8 warning attribute-defined-outside-init W0201 TestWeather.test_weather_modelica
Attribute 'project' defined outside __init__
51 12 warning raise-missing-from W0707 TestWeather.test_weather_modelica
Consider explicitly re-raising using 'except Exception as exc' and 'raise ValueError(f'No weather file set through Weather task. Anerror occurred.') from exc'
51 29 warning f-string-without-interpolation W1309 TestWeather.test_weather_modelica
Using an f-string that does not have any interpolated variables
53 8 warning deprecated-method W4902 TestWeather.test_weather_modelica
Using deprecated method assertEquals()

Module bim2sim.plugins.PluginTemplate (bim2sim/plugins/PluginTemplate/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention invalid-name C0103
Module name "PluginTemplate" doesn't conform to snake_case naming style

Module bim2sim.plugins.PluginTemplate.bim2sim_template (bim2sim/plugins/PluginTemplate/bim2sim_template/__init__.py)

Line Col. Type Symbol ID Obj Message
10 0 convention missing-class-docstring C0115 PluginTemplate
Missing class docstring
10 0 refactor too-few-public-methods R0903 PluginTemplate
Too few public methods (0/2)

Module bim2sim.plugins.__init__ (bim2sim/plugins/__init__.py)

Line Col. Type Symbol ID Obj Message
60 5 warning fixme W0511
TODO this plugin is currently not found as plugins need a

Module bim2sim.plugins (bim2sim/plugins/__init__.py)

Line Col. Type Symbol ID Obj Message
34 0 refactor too-few-public-methods R0903 Plugin
Too few public methods (1/2)
56 15 convention consider-using-f-string C0209 Plugin.__repr__
Formatting a regular string which could be a f-string
59 0 convention missing-class-docstring C0115 PluginBPSBase
Missing class docstring
59 0 refactor too-few-public-methods R0903 PluginBPSBase
Too few public methods (0/2)
78 8 warning unused-variable W0612 available_plugins
Unused variable 'finder'
107 8 warning unused-variable W0612 get_plugin
Unused variable 'name'

Module bim2sim.project (bim2sim/project.py)

Line Col. Type Symbol ID Obj Message
8 0 warning deprecated-module W4901
Deprecated module 'distutils.dir_util'
29 20 refactor consider-using-with R1732 open_config
Consider using 'with' for resource-allocating operations
31 5 warning fixme W0511
todo for any reason wait() seems not to work on linux
45 19 warning protected-access W0212 add_config_section
Access to a protected member _sections of a client class
81 9 warning unspecified-encoding W1514 config_base_setup
Using open without explicitly specifying an encoding
111 4 convention missing-function-docstring C0116 FolderStructure.assets
Missing function or method docstring
115 4 convention missing-function-docstring C0116 FolderStructure.enrichment
Missing function or method docstring
185 13 warning unspecified-encoding W1514 FolderStructure.create_project_folder
Using open without explicitly specifying an encoding
192 0 convention line-too-long C0301
Line too long (81/80)
216 12 warning logging-not-lazy W1201 FolderStructure.create
Use lazy % formatting in logging functions
217 16 convention consider-using-f-string C0209 FolderStructure.create
Formatting a regular string which could be a f-string
230 20 refactor no-else-raise R1720 FolderStructure.create
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
243 0 convention line-too-long C0301
Line too long (83/80)
261 9 warning fixme W0511
TODO: decision system
278 15 convention consider-using-f-string C0209 FolderStructure.__repr__
Formatting a regular string which could be a f-string
281 0 refactor too-many-instance-attributes R0902 Project
Too many instance attributes (11/7)
301 0 convention line-too-long C0301
Line too long (85/80)
307 8 warning bare-except W0702 Project.__init__
No exception type(s) specified
324 8 refactor no-else-return R1705 Project._get_plugin
Unnecessary "elif" after "return", remove the leading "el" from "elif"
362 4 convention missing-function-docstring C0116 Project.is_project_folder
Missing function or method docstring
394 4 convention missing-function-docstring C0116 Project.rewrite_config
Missing function or method docstring
395 9 warning fixme W0511
TODO this might need changes due to handling of enums
399 12 convention invalid-name C0103 Project.rewrite_config
Variable name "s" doesn't conform to snake_case naming style
406 13 warning unspecified-encoding W1514 Project.rewrite_config
Using open without explicitly specifying an encoding
448 15 warning broad-exception-caught W0718 Project.run
Catching too general exception Exception
449 12 warning logging-fstring-interpolation W1203 Project.run
Use lazy % formatting in logging functions
472 0 convention line-too-long C0301
Line too long (137/80)
472 54 convention consider-using-f-string C0209 Project._run_interactive
Formatting a regular string which could be a f-string
490 12 warning logging-fstring-interpolation W1203 Project.finalize
Use lazy % formatting in logging functions
495 12 warning logging-fstring-interpolation W1203 Project.finalize
Use lazy % formatting in logging functions
497 12 warning logging-fstring-interpolation W1203 Project.finalize
Use lazy % formatting in logging functions
518 15 convention consider-using-f-string C0209 Project.__repr__
Formatting a regular string which could be a f-string

Module bim2sim.sim_settings (bim2sim/sim_settings.py)

Line Col. Type Symbol ID Obj Message
1 0 convention too-many-lines C0302
Too many lines in module (1129/1000)
15 0 convention useless-import-alias C0414
Import alias does not rename original package
15 0 convention useless-import-alias C0414
Import alias does not rename original package
62 12 refactor redefined-argument-from-local R1704 AutoSettingNameMeta.__init__
Redefining argument with the local name 'name'
104 0 refactor too-many-instance-attributes R0902 Setting
Too many instance attributes (8/7)
118 4 refactor too-many-arguments R0913 Setting.__init__
Too many arguments (6/5)
149 4 convention missing-function-docstring C0116 Setting.load_default
Missing function or method docstring
169 26 warning unused-argument W0613 Setting.check_value
Unused argument 'bound_simulation_settings'
169 53 warning unused-argument W0613 Setting.check_value
Unused argument 'value'
189 0 convention missing-class-docstring C0115 NumberSetting
Missing class docstring
190 4 refactor too-many-arguments R0913 NumberSetting.__init__
Too many arguments (7/5)
207 12 warning logging-fstring-interpolation W1203 NumberSetting.check_setting_config
Use lazy % formatting in logging functions
211 12 warning logging-fstring-interpolation W1203 NumberSetting.check_setting_config
Use lazy % formatting in logging functions
219 8 refactor no-else-raise R1720 NumberSetting.check_setting_config
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
244 8 refactor no-else-return R1705 NumberSetting.check_value
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
252 0 convention missing-class-docstring C0115 ChoiceSetting
Missing class docstring
253 4 refactor too-many-arguments R0913 ChoiceSetting.__init__
Too many arguments (7/5)
291 8 refactor no-else-return R1705 ChoiceSetting.check_value
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
300 12 refactor no-else-raise R1720 ChoiceSetting.check_value
Unnecessary "elif" after "raise", remove the leading "el" from "elif"
310 0 convention missing-class-docstring C0115 PathSetting
Missing class docstring
324 9 warning fixme W0511
TODO #556 Do not check default path for existence because this might
344 20 warning raise-missing-from W0707 PathSetting.__set__
Consider explicitly re-raising using 'except TypeError as exc' and 'raise TypeError(f'Could not convert the simulation setting for {self.name} into a path, please check the path.') from exc'
356 0 convention missing-class-docstring C0115 BooleanSetting
Missing class docstring
358 8 refactor no-else-raise R1720 BooleanSetting.check_value
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
370 17 warning unused-argument W0613 BaseSimSettings.__init__
Unused argument 'filters'
382 4 refactor too-many-branches R0912 BaseSimSettings.update_from_config
Too many branches (15/12)
386 8 refactor too-many-nested-blocks R1702 BaseSimSettings.update_from_config
Too many nested blocks (7/5)
395 16 refactor no-else-raise R1720 BaseSimSettings.update_from_config
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
401 20 refactor no-else-continue R1724 BaseSimSettings.update_from_config
Unnecessary "elif" after "continue", remove the leading "el" from "elif"
406 29 warning fixme W0511
todo ast.literal_eval is safer but not safe.
409 28 warning logging-fstring-interpolation W1203 BaseSimSettings.update_from_config
Use lazy % formatting in logging functions
425 36 warning raise-missing-from W0707 BaseSimSettings.update_from_config
Consider explicitly re-raising using 'except AttributeError as exc' and 'raise AttributeError(f" Tried to create the enumeration {enum_type} but it doesn't exist.") from exc'
440 8 warning logging-fstring-interpolation W1203 BaseSimSettings.update_from_config
Use lazy % formatting in logging functions
543 0 convention missing-class-docstring C0115 PlantSimSettings
Missing class docstring
549 5 warning fixme W0511
Todo maybe make every aggregation its own setting with LOD in the future,
591 0 convention missing-class-docstring C0115 BuildingSimSettings
Missing class docstring

Module bim2sim.tasks.base (bim2sim/tasks/base.py)

Line Col. Type Symbol ID Obj Message
18 0 convention missing-class-docstring C0115 TaskFailed
Missing class docstring
44 42 convention consider-using-f-string C0209 ITask.__init__
Formatting a regular string which could be a f-string
69 15 convention consider-using-f-string C0209 ITask.__repr__
Formatting a regular string which could be a f-string
72 0 refactor too-many-instance-attributes R0902 Playground
Too many instance attributes (9/7)
90 59 warning fixme W0511
TODO: from workflow?
90 15 refactor unnecessary-comprehension R1721 Playground.all_tasks
Unnecessary use of a comprehension, use ITask.__subclasses__() instead.
94 0 convention line-too-long C0301
Line too long (101/80)
96 4 refactor too-many-branches R0912 Playground.run_task
Too many branches (16/12)
99 33 convention consider-using-f-string C0209 Playground.run_task
Formatting a regular string which could be a f-string
103 8 refactor no-else-raise R1720 Playground.run_task
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
111 8 warning unused-variable W0612 Playground.run_task
Unused variable 'ex'
113 12 warning raise-missing-from W0707 Playground.run_task
Consider explicitly re-raising using 'raise TaskFailed(str(task)) from ex'
152 0 convention line-too-long C0301
Line too long (115/80)
152 33 convention consider-using-f-string C0209 Playground.run_task
Formatting a regular string which could be a f-string
153 0 convention line-too-long C0301
Line too long (112/80)

Module bim2sim.tasks.bps (bim2sim/tasks/bps/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring

Module bim2sim.tasks.bps.combine_tz (bim2sim/tasks/bps/combine_tz.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
5 0 convention wrong-import-order C0411
standard import "from typing import Callable" should be placed before "from bim2sim.elements.aggregation.bps_aggregations import AggregatedThermalZone"
23 4 warning arguments-differ W0221 CombineThermalZones.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'CombineThermalZones.run' method
23 4 warning arguments-differ W0221 CombineThermalZones.run
Variadics removed in overriding 'CombineThermalZones.run' method
44 8 warning unused-variable W0612 CombineThermalZones.combine_tzs_to_one_zone
Unused variable 'new_aggregations'
47 0 convention line-too-long C0301
Line too long (81/80)
50 0 convention line-too-long C0301
Line too long (95/80)
61 0 convention line-too-long C0301
Line too long (82/80)
69 12 warning unused-variable W0612 CombineThermalZones.combine_tzs_based_on_criteria
Unused variable 'new_aggregations'
115 12 convention invalid-name C0103 CombineThermalZones.group_by_is_external
Variable name "tz" doesn't conform to snake_case naming style
127 12 convention invalid-name C0103 CombineThermalZones.group_by_usage
Variable name "tz" doesn't conform to snake_case naming style
166 12 convention invalid-name C0103 CombineThermalZones.group_by_external_orientation
Variable name "tz" doesn't conform to snake_case naming style
180 12 convention invalid-name C0103 CombineThermalZones.group_by_glass_percentage
Variable name "tz" doesn't conform to snake_case naming style
192 12 convention invalid-name C0103 CombineThermalZones.group_by_is_neighbor
Variable name "tz" doesn't conform to snake_case naming style
212 0 convention line-too-long C0301
Line too long (89/80)
225 35 convention consider-using-f-string C0209 CombineThermalZones.group_grouped_tz
Formatting a regular string which could be a f-string
239 12 convention invalid-name C0103 CombineThermalZones.group_not_grouped_tz
Variable name "tz" doesn't conform to snake_case naming style

Module bim2sim.tasks.bps.disaggr_creation (bim2sim/tasks/bps/disaggr_creation.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
3 0 warning unused-import W0611
Unused Union imported from typing
3 0 warning unused-import W0611
Unused Any imported from typing
26 4 warning arguments-differ W0221 DisaggregationCreationAndTypeCheck.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'DisaggregationCreationAndTypeCheck.run' method
26 4 warning arguments-differ W0221 DisaggregationCreationAndTypeCheck.run
Variadics removed in overriding 'DisaggregationCreationAndTypeCheck.run' method
26 4 refactor too-many-branches R0912 DisaggregationCreationAndTypeCheck.run
Too many branches (24/12)
53 19 refactor use-a-generator R1729 DisaggregationCreationAndTypeCheck.run
Use a generator instead 'any(isinstance(ele, bps_product_layer_ele) for bps_product_layer_ele in all_subclasses(BPSProductWithLayers))'
62 16 convention invalid-name C0103 DisaggregationCreationAndTypeCheck.run
Variable name "sb" doesn't conform to snake_case naming style
75 21 warning fixme W0511
todo
145 12 warning unused-variable W0612 DisaggregationCreationAndTypeCheck.run
Unused variable 'key'
186 4 refactor too-many-branches R0912 DisaggregationCreationAndTypeCheck.create_disaggregation_with_type_correction
Too many branches (17/12)
186 4 refactor inconsistent-return-statements R1710 DisaggregationCreationAndTypeCheck.create_disaggregation_with_type_correction
Either all return statements in a function should return an expression, or none of them should.
187 0 convention line-too-long C0301
Line too long (101/80)
261 0 convention line-too-long C0301
Line too long (101/80)
273 11 refactor use-a-generator R1729 DisaggregationCreationAndTypeCheck.get_corrected_door_type
Use a generator instead 'any(isinstance(element, door_class) for door_class in all_subclasses(Door))'
276 12 refactor no-else-return R1705 DisaggregationCreationAndTypeCheck.get_corrected_door_type
Unnecessary "elif" after "return", remove the leading "el" from "elif"
280 16 refactor no-else-return R1705 DisaggregationCreationAndTypeCheck.get_corrected_door_type
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
286 23 error not-callable E1102 DisaggregationCreationAndTypeCheck.get_corrected_door_type
self.logger is not callable
291 0 convention line-too-long C0301
Line too long (81/80)
303 11 refactor use-a-generator R1729 DisaggregationCreationAndTypeCheck.get_corrected_wall_type
Use a generator instead 'any(isinstance(element, wall_class) for wall_class in all_subclasses(Wall))'
306 12 refactor no-else-return R1705 DisaggregationCreationAndTypeCheck.get_corrected_wall_type
Unnecessary "elif" after "return", remove the leading "el" from "elif"
310 16 refactor no-else-return R1705 DisaggregationCreationAndTypeCheck.get_corrected_wall_type
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
316 23 error not-callable E1102 DisaggregationCreationAndTypeCheck.get_corrected_wall_type
self.logger is not callable
320 4 refactor too-many-return-statements R0911 DisaggregationCreationAndTypeCheck.get_corrected_slab_type
Too many return statements (8/6)
320 4 refactor inconsistent-return-statements R1710 DisaggregationCreationAndTypeCheck.get_corrected_slab_type
Either all return statements in a function should return an expression, or none of them should.
321 0 convention line-too-long C0301
Line too long (81/80)
333 11 refactor use-a-generator R1729 DisaggregationCreationAndTypeCheck.get_corrected_slab_type
Use a generator instead 'any(isinstance(element, slab_class) for slab_class in all_subclasses(Slab))'
336 12 refactor no-else-return R1705 DisaggregationCreationAndTypeCheck.get_corrected_slab_type
Unnecessary "elif" after "return", remove the leading "el" from "elif"
340 16 convention invalid-name C0103 DisaggregationCreationAndTypeCheck.get_corrected_slab_type
Variable name "sb" doesn't conform to snake_case naming style
342 20 refactor no-else-return R1705 DisaggregationCreationAndTypeCheck.get_corrected_slab_type
Unnecessary "elif" after "return", remove the leading "el" from "elif"

Module bim2sim.tasks.bps.enrich_material (bim2sim/tasks/bps/enrich_material.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
40 4 warning arguments-differ W0221 EnrichMaterial.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'EnrichMaterial.run' method
40 4 warning arguments-differ W0221 EnrichMaterial.run
Variadics removed in overriding 'EnrichMaterial.run' method
49 9 warning fixme W0511
TODO add data_source also to non attributes values:
58 13 warning fixme W0511
TODO #676
80 9 warning fixme W0511
TODO multi building support would require to have relations
97 17 warning fixme W0511
TODO set layer_set also to not disaggregated parent, t.b.d.
175 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
226 0 convention line-too-long C0301
Line too long (86/80)
229 0 convention line-too-long C0301
Line too long (89/80)
230 0 convention line-too-long C0301
Line too long (86/80)
267 4 refactor too-many-return-statements R0911 EnrichMaterial.get_element_template
Too many return statements (7/6)
270 0 convention line-too-long C0301
Line too long (93/80)
275 0 convention line-too-long C0301
Line too long (81/80)
312 0 convention line-too-long C0301
Line too long (82/80)

Module bim2sim.tasks.bps.enrich_use_cond (bim2sim/tasks/bps/enrich_use_cond.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
24 4 warning arguments-differ W0221 EnrichUseConditions.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'EnrichUseConditions.run' method
24 4 warning arguments-differ W0221 EnrichUseConditions.run
Variadics removed in overriding 'EnrichUseConditions.run' method
47 16 convention invalid-name C0103 EnrichUseConditions.run
Variable name "tz" doesn't conform to snake_case naming style
76 4 refactor too-many-branches R0912 EnrichUseConditions.overwrite_heating_cooling_ahu_by_settings
Too many branches (13/12)
91 12 convention invalid-name C0103 EnrichUseConditions.overwrite_heating_cooling_ahu_by_settings
Variable name "tz" doesn't conform to snake_case naming style
144 28 convention invalid-name C0103 EnrichUseConditions.list_decision_usage
Argument name "tz" doesn't conform to snake_case naming style
153 38 convention consider-using-f-string C0209 EnrichUseConditions.list_decision_usage
Formatting a regular string which could be a f-string
158 49 convention consider-using-f-string C0209 EnrichUseConditions.list_decision_usage
Formatting a regular string which could be a f-string
165 21 convention invalid-name C0103 EnrichUseConditions.office_usage
Argument name "tz" doesn't conform to snake_case naming style
193 12 refactor no-else-return R1705 EnrichUseConditions.office_usage
Unnecessary "elif" after "return", remove the leading "el" from "elif"
204 4 refactor too-many-locals R0914 EnrichUseConditions.enrich_usages
Too many local variables (19/15)
204 4 refactor too-many-branches R0912 EnrichUseConditions.enrich_usages
Too many branches (24/12)
228 12 convention invalid-name C0103 EnrichUseConditions.enrich_usages
Variable name "tz" doesn't conform to snake_case naming style
228 8 refactor too-many-nested-blocks R1702 EnrichUseConditions.enrich_usages
Too many nested blocks (7/5)
228 8 refactor too-many-nested-blocks R1702 EnrichUseConditions.enrich_usages
Too many nested blocks (8/5)
273 12 convention invalid-name C0103 EnrichUseConditions.enrich_usages
Variable name "tz" doesn't conform to snake_case naming style
304 25 convention invalid-name C0103 EnrichUseConditions.load_usage
Argument name "tz" doesn't conform to snake_case naming style
320 4 convention empty-docstring C0112 EnrichUseConditions.value_processing
Empty method docstring
322 8 refactor no-else-return R1705 EnrichUseConditions.value_processing
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it

Module bim2sim.tasks.bps.plot_results (bim2sim/tasks/bps/plot_results.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 0 convention wrong-import-order C0411
standard import "from pathlib import Path" should be placed before "import matplotlib as mpl"
7 0 warning unused-import W0611
Unused Image imported from PIL
11 0 warning unused-import W0611
Unused import scienceplots
12 0 convention ungrouped-imports C0412
Imports from package matplotlib are not grouped
29 0 convention line-too-long C0301
Line too long (103/80)
50 4 warning arguments-differ W0221 PlotBEPSResults.run
Number of parameters was 2 in 'ITask.run' and is now 5 in overriding 'PlotBEPSResults.run' method
50 4 warning arguments-differ W0221 PlotBEPSResults.run
Variadics removed in overriding 'PlotBEPSResults.run' method
75 23 convention invalid-name C0103 PlotBEPSResults.run
Variable name "df" doesn't conform to snake_case naming style
89 18 convention invalid-name C0103 PlotBEPSResults.plot_total_consumption
Argument name "df" doesn't conform to snake_case naming style
107 33 convention invalid-name C0103 PlotBEPSResults.plot_demands_time_series
Argument name "df" doesn't conform to snake_case naming style
107 4 refactor too-many-arguments R0913 PlotBEPSResults.plot_demands_time_series
Too many arguments (9/5)
107 4 refactor too-many-locals R0914 PlotBEPSResults.plot_demands_time_series
Too many local variables (24/15)
112 0 convention line-too-long C0301
Line too long (86/80)
118 0 convention line-too-long C0301
Line too long (95/80)
119 0 convention line-too-long C0301
Line too long (99/80)
121 0 convention line-too-long C0301
Line too long (81/80)
127 13 convention invalid-name C0103 PlotBEPSResults.plot_demands_time_series
Variable name "ax" doesn't conform to snake_case naming style
127 8 warning unused-variable W0612 PlotBEPSResults.plot_demands_time_series
Unused variable 'fig'
132 12 convention invalid-name C0103 PlotBEPSResults.plot_demands_time_series
Variable name "dt" doesn't conform to snake_case naming style
149 0 convention line-too-long C0301
Line too long (85/80)
170 0 convention line-too-long C0301
Line too long (152/80)
170 0 convention consider-using-dict-items C0206 PlotBEPSResults.plot_demands_time_series
Consider iterating with .items()
190 25 convention invalid-name C0103 PlotBEPSResults.plot_demands_bar
Argument name "df" doesn't conform to snake_case naming style
190 4 refactor too-many-arguments R0913 PlotBEPSResults.plot_demands_bar
Too many arguments (7/5)
190 4 refactor too-many-locals R0914 PlotBEPSResults.plot_demands_bar
Too many local variables (18/15)
192 44 warning unused-argument W0613 PlotBEPSResults.plot_demands_bar
Unused argument 'total_label'
229 13 convention invalid-name C0103 PlotBEPSResults.plot_demands_bar
Variable name "ax" doesn't conform to snake_case naming style
229 8 warning unused-variable W0612 PlotBEPSResults.plot_demands_bar
Unused variable 'fig'
255 12 error no-member E1101 PlotBEPSResults.plot_demands_bar
Class 'PlotBEPSResults' has no 'add_logo' member
261 26 warning redefined-builtin W0622 PlotBEPSResults.save_or_show_plot
Redefining built-in 'format'
277 4 refactor too-many-arguments R0913 PlotBEPSResults.plot_floor_plan_with_results
Too many arguments (8/5)
277 4 refactor too-many-locals R0914 PlotBEPSResults.plot_floor_plan_with_results
Too many local variables (27/15)
277 4 refactor too-many-branches R0912 PlotBEPSResults.plot_floor_plan_with_results
Too many branches (20/12)
277 4 refactor too-many-statements R0915 PlotBEPSResults.plot_floor_plan_with_results
Too many statements (54/50)
278 18 convention invalid-name C0103 PlotBEPSResults.plot_floor_plan_with_results
Argument name "df" doesn't conform to snake_case naming style
336 25 warning fixme W0511
TODO use all storeys for aggregated zones
416 9 warning fixme W0511
TODO merge the create color_mapping.svg into each of the created
420 9 warning fixme W0511
TODO cleanup temp files of color mapping and so on
452 8 convention invalid-name C0103 PlotBEPSResults.create_color_mapping
Variable name "sm" doesn't conform to snake_case naming style
456 13 convention invalid-name C0103 PlotBEPSResults.create_color_mapping
Variable name "ax" doesn't conform to snake_case naming style
500 26 convention invalid-name C0103 PlotBEPSResults.plot_temperatures
Argument name "df" doesn't conform to snake_case naming style
500 4 refactor too-many-arguments R0913 PlotBEPSResults.plot_temperatures
Too many arguments (7/5)
503 21 warning unused-argument W0613 PlotBEPSResults.plot_temperatures
Unused argument 'window'
516 8 warning unused-variable W0612 PlotBEPSResults.plot_temperatures
Unused variable 'fig'
559 12 warning unreachable W0101 PlotBEPSResults.plot_temperatures
Unreachable code
561 12 error no-member E1101 PlotBEPSResults.plot_temperatures
Class 'PlotBEPSResults' has no 'add_logo' member
567 4 refactor too-many-arguments R0913 PlotBEPSResults.plot_multiple_temperatures
Too many arguments (6/5)
567 4 refactor too-many-locals R0914 PlotBEPSResults.plot_multiple_temperatures
Too many local variables (21/15)
568 12 convention invalid-name C0103 PlotBEPSResults.plot_multiple_temperatures
Argument name "df" doesn't conform to snake_case naming style
568 64 warning unused-argument W0613 PlotBEPSResults.plot_multiple_temperatures
Unused argument 'logo'
569 18 warning unused-argument W0613 PlotBEPSResults.plot_multiple_temperatures
Unused argument 'window'
575 0 convention line-too-long C0301
Line too long (81/80)
599 17 warning unused-variable W0612 PlotBEPSResults.plot_multiple_temperatures
Unused variable 'value'
600 32 refactor unnecessary-dict-index-lookup R1733 PlotBEPSResults.plot_multiple_temperatures
Unnecessary dictionary index lookup, use 'value' instead
600 22 warning unused-variable W0612 PlotBEPSResults.plot_multiple_temperatures
Unused variable 'value2'
624 8 warning unused-variable W0612 PlotBEPSResults.plot_multiple_temperatures
Unused variable 'fig'
629 12 warning unused-variable W0612 PlotBEPSResults.plot_multiple_temperatures
Unused variable 'i'
674 23 convention invalid-name C0103 PlotBEPSResults.plot_dataframe
Argument name "df" doesn't conform to snake_case naming style
674 4 warning dangerous-default-value W0102 PlotBEPSResults.plot_dataframe
Dangerous default value {} as argument
674 4 refactor too-many-arguments R0913 PlotBEPSResults.plot_dataframe
Too many arguments (13/5)
674 4 refactor too-many-locals R0914 PlotBEPSResults.plot_dataframe
Too many local variables (27/15)
679 23 warning unused-argument W0613 PlotBEPSResults.plot_dataframe
Unused argument 'logo'
679 42 warning unused-argument W0613 PlotBEPSResults.plot_dataframe
Unused argument 'window'
700 17 warning unused-variable W0612 PlotBEPSResults.plot_dataframe
Unused variable 'value'
701 22 warning unused-variable W0612 PlotBEPSResults.plot_dataframe
Unused variable 'value2'
725 8 warning unused-variable W0612 PlotBEPSResults.plot_dataframe
Unused variable 'fig'
729 12 warning unused-variable W0612 PlotBEPSResults.plot_dataframe
Unused variable 'i'
773 4 convention missing-function-docstring C0116 PlotBEPSResults.plot_thermal_discomfort
Missing function or method docstring
774 9 warning fixme W0511
TODO
779 5 warning fixme W0511
# TODO: this is not completed yet
784 5 warning fixme W0511
# todo get rid of PIL package
788 5 warning fixme W0511
# TOdo resizing is not well done yet, this is an option but not
801 0 convention line-too-long C0301
Line too long (84/80)
802 0 convention missing-final-newline C0304
Final newline missing

Module bim2sim.tasks.bps.sb_2b_generation (bim2sim/tasks/bps/sb_2b_generation.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
28 4 warning arguments-differ W0221 AddSpaceBoundaries2B.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'AddSpaceBoundaries2B.run' method
28 4 warning arguments-differ W0221 AddSpaceBoundaries2B.run
Variadics removed in overriding 'AddSpaceBoundaries2B.run' method
44 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
48 16 convention invalid-name C0103 AddSpaceBoundaries2B.run
Variable name "sb" doesn't conform to snake_case naming style
55 16 convention invalid-name C0103 AddSpaceBoundaries2B.run
Variable name "sb" doesn't conform to snake_case naming style
63 15 warning broad-exception-caught W0718 AddSpaceBoundaries2B.run
Catching too general exception Exception
64 12 warning logging-fstring-interpolation W1203 AddSpaceBoundaries2B.run
Use lazy % formatting in logging functions
66 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
69 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
90 18 refactor use-dict-literal R1735 AddSpaceBoundaries2B._compute_2b_bound_gaps
Consider using '{}' instead of a call to 'dict'.
124 0 convention line-too-long C0301
Line too long (81/80)
149 18 refactor use-dict-literal R1735 AddSpaceBoundaries2B.create_2b_space_boundaries
Consider using '{}' instead of a call to 'dict'.
157 16 convention invalid-name C0103 AddSpaceBoundaries2B.create_2b_space_boundaries
Variable name "bi" doesn't conform to snake_case naming style
162 12 warning unused-variable W0612 AddSpaceBoundaries2B.create_2b_space_boundaries
Unused variable 'i'
171 19 refactor consider-merging-isinstance R1701 AddSpaceBoundaries2B.create_2b_space_boundaries
Consider merging these isinstance calls to isinstance(instance, (Door, Window))

Module bim2sim.tasks.bps.sb_correction (bim2sim/tasks/bps/sb_correction.py)

Line Col. Type Symbol ID Obj Message
10 0 warning unused-import W0611
Unused import copy
51 4 warning useless-parent-delegation W0246 CorrectSpaceBoundaries.__init__
Useless parent or super() delegation in method '__init__'
54 4 warning arguments-differ W0221 CorrectSpaceBoundaries.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'CorrectSpaceBoundaries.run' method
54 4 warning arguments-differ W0221 CorrectSpaceBoundaries.run
Variadics removed in overriding 'CorrectSpaceBoundaries.run' method
57 0 convention line-too-long C0301
Line too long (85/80)
59 0 convention line-too-long C0301
Line too long (83/80)
78 9 warning fixme W0511
todo: refactor elements to initial_elements.
79 9 warning fixme W0511
todo: space_boundaries should be already included in elements
109 20 convention invalid-name C0103 CorrectSpaceBoundaries.add_and_split_bounds_for_shadings
Variable name "sb" doesn't conform to snake_case naming style
173 4 refactor too-many-locals R0914 CorrectSpaceBoundaries.fix_surface_orientation
Too many local variables (18/15)
173 4 refactor too-many-branches R0912 CorrectSpaceBoundaries.fix_surface_orientation
Too many branches (22/12)
173 4 refactor too-many-statements R0915 CorrectSpaceBoundaries.fix_surface_orientation
Too many statements (53/50)
185 8 refactor too-many-nested-blocks R1702 CorrectSpaceBoundaries.fix_surface_orientation
Too many nested blocks (6/5)
204 16 convention invalid-name C0103 CorrectSpaceBoundaries.fix_surface_orientation
Variable name "fc" doesn't conform to snake_case naming style
211 12 convention invalid-name C0103 CorrectSpaceBoundaries.fix_surface_orientation
Variable name "p" doesn't conform to snake_case naming style
222 16 convention invalid-name C0103 CorrectSpaceBoundaries.fix_surface_orientation
Variable name "fc" doesn't conform to snake_case naming style
227 16 convention invalid-name C0103 CorrectSpaceBoundaries.fix_surface_orientation
Variable name "p" doesn't conform to snake_case naming style
252 32 convention invalid-name C0103 CorrectSpaceBoundaries.fix_surface_orientation
Variable name "op" doesn't conform to snake_case naming style
268 4 refactor too-many-branches R0912 CorrectSpaceBoundaries.split_non_convex_bounds
Too many branches (14/12)
352 0 convention line-too-long C0301
Line too long (83/80)
353 0 convention line-too-long C0301
Line too long (83/80)
355 19 warning broad-exception-caught W0718 CorrectSpaceBoundaries.split_non_convex_bounds
Catching too general exception Exception
356 16 warning logging-fstring-interpolation W1203 CorrectSpaceBoundaries.split_non_convex_bounds
Use lazy % formatting in logging functions
430 19 refactor use-a-generator R1729 CorrectSpaceBoundaries.create_new_convex_bounds
Use a generator instead 'all(abs(i) < 0.001 for i in (new_bound.bound_normal - bound.bound_normal).Coord())'
464 24 convention invalid-name C0103 CorrectSpaceBoundaries.create_new_convex_bounds
Variable name "op" doesn't conform to snake_case naming style
492 19 warning broad-exception-caught W0718 CorrectSpaceBoundaries.split_non_convex_shadings
Catching too general exception Exception
493 16 warning logging-fstring-interpolation W1203 CorrectSpaceBoundaries.split_non_convex_shadings
Use lazy % formatting in logging functions

Module bim2sim.tasks.bps.sb_creation (bim2sim/tasks/bps/sb_creation.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
3 0 warning unused-import W0611
Unused Tuple imported from typing
3 0 warning unused-import W0611
Unused Dict imported from typing
32 4 warning arguments-differ W0221 CreateSpaceBoundaries.run
Number of parameters was 2 in 'ITask.run' and is now 3 in overriding 'CreateSpaceBoundaries.run' method
32 4 warning arguments-differ W0221 CreateSpaceBoundaries.run
Variadics removed in overriding 'CreateSpaceBoundaries.run' method
59 30 warning unused-variable W0612 CreateSpaceBoundaries.run
Unused variable 'unknown_entities'
67 12 warning logging-fstring-interpolation W1203 CreateSpaceBoundaries.run
Use lazy % formatting in logging functions
70 8 warning logging-fstring-interpolation W1203 CreateSpaceBoundaries.run
Use lazy % formatting in logging functions
84 19 refactor use-a-generator R1729 CreateSpaceBoundaries.remove_elements_without_sbs
Use a generator instead 'any(isinstance(ele, bps_product_layer_ele) for bps_product_layer_ele in all_subclasses(BPSProductWithLayers))'
116 16 refactor no-else-continue R1724 CreateSpaceBoundaries.add_bounds_to_elements
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it
125 16 warning logging-fstring-interpolation W1203 CreateSpaceBoundaries.add_bounds_to_elements
Use lazy % formatting in logging functions
128 12 warning logging-fstring-interpolation W1203 CreateSpaceBoundaries.add_bounds_to_elements
Use lazy % formatting in logging functions
271 4 refactor too-many-arguments R0913 CreateSpaceBoundaries.reassign_opening_bounds
Too many arguments (6/5)
314 8 convention invalid-name C0103 CreateSpaceBoundaries.reassign_opening_bounds
Variable name "ib" doesn't conform to snake_case naming style
321 16 convention invalid-name C0103 CreateSpaceBoundaries.reassign_opening_bounds
Variable name "b" doesn't conform to snake_case naming style
335 16 refactor no-else-continue R1724 CreateSpaceBoundaries.reassign_opening_bounds
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it
343 0 convention line-too-long C0301
Line too long (83/80)
344 16 convention invalid-name C0103 CreateSpaceBoundaries.reassign_opening_bounds
Variable name "b" doesn't conform to snake_case naming style
352 23 warning broad-exception-caught W0718 CreateSpaceBoundaries.reassign_opening_bounds
Catching too general exception Exception
353 20 warning logging-fstring-interpolation W1203 CreateSpaceBoundaries.reassign_opening_bounds
Use lazy % formatting in logging functions
365 16 refactor no-else-continue R1724 CreateSpaceBoundaries.reassign_opening_bounds
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it
371 4 refactor too-many-arguments R0913 CreateSpaceBoundaries.instantiate_space_boundaries
Too many arguments (6/5)

Module bim2sim.tasks.common (bim2sim/tasks/common/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring

Module bim2sim.tasks.common.base_tasks (bim2sim/tasks/common/base_tasks.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
14 4 warning arguments-differ W0221 Reset.run
Variadics removed in overriding 'Reset.run' method
25 4 warning arguments-differ W0221 Quit.run
Variadics removed in overriding 'Quit.run' method

Module bim2sim.tasks.common.check_ifc (bim2sim/tasks/common/check_ifc.py)

Line Col. Type Symbol ID Obj Message
1 0 convention too-many-lines C0302
Too many lines in module (1429/1000)
1 0 convention missing-module-docstring C0114
Missing module docstring
25 0 refactor too-many-instance-attributes R0902 CheckIfc
Too many instance attributes (12/7)
45 4 warning arguments-differ W0221 CheckIfc.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'CheckIfc.run' method
45 4 warning arguments-differ W0221 CheckIfc.run
Variadics removed in overriding 'CheckIfc.run' method
63 64 warning fixme W0511
todo
63 33 warning f-string-without-interpolation W1309 CheckIfc.run
Using an f-string that does not have any interpolated variables
68 63 warning fixme W0511
todo
68 33 warning f-string-without-interpolation W1309 CheckIfc.run
Using an f-string that does not have any interpolated variables
87 0 convention line-too-long C0301
Line too long (81/80)
96 12 warning logging-not-lazy W1201 CheckIfc.run
Use lazy % formatting in logging functions
97 16 convention consider-using-f-string C0209 CheckIfc.run
Formatting a regular string which could be a f-string
101 12 warning logging-not-lazy W1201 CheckIfc.run
Use lazy % formatting in logging functions
102 16 convention consider-using-f-string C0209 CheckIfc.run
Formatting a regular string which could be a f-string
237 4 convention missing-function-docstring C0116 CheckIfc.validate_sub_inst
Missing function or method docstring
240 4 convention missing-function-docstring C0116 CheckIfc.validate_elements
Missing function or method docstring
267 13 warning unspecified-encoding W1514 CheckIfc._write_errors_to_json
Using open without explicitly specifying an encoding
269 18 warning f-string-without-interpolation W1309 CheckIfc._write_errors_to_json
Using an f-string that does not have any interpolated variables
270 27 convention invalid-name C0103 CheckIfc._write_errors_to_json
Variable name "fp" doesn't conform to snake_case naming style
272 13 warning unspecified-encoding W1514 CheckIfc._write_errors_to_json
Using open without explicitly specifying an encoding
274 18 warning f-string-without-interpolation W1309 CheckIfc._write_errors_to_json
Using an f-string that does not have any interpolated variables
275 27 convention invalid-name C0103 CheckIfc._write_errors_to_json
Variable name "fp" doesn't conform to snake_case naming style
346 16 warning f-string-without-interpolation W1309 CheckIfc.check_critical_uniqueness
Using an f-string that does not have any interpolated variables
372 12 convention invalid-name C0103 CheckIfc._check_inst_properties
Variable name "ps" doesn't conform to snake_case naming style
397 8 refactor no-else-return R1705 CheckIfc._check_inst_representation
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
440 13 warning unspecified-encoding W1514 CheckIfc._write_errors_to_html_table
Using open without explicitly specifying an encoding
450 13 warning unspecified-encoding W1514 CheckIfc._write_errors_to_html_table
Using open without explicitly specifying an encoding
458 13 warning unspecified-encoding W1514 CheckIfc._write_errors_to_html_table
Using open without explicitly specifying an encoding
473 0 convention line-too-long C0301
Line too long (117/80)
482 4 warning arguments-renamed W0237 CheckIfcHVAC.validate_sub_inst
Parameter 'sub_inst' has been renamed to 'port' in overriding 'CheckIfcHVAC.validate_sub_inst' method
500 0 convention line-too-long C0301
Line too long (83/80)
503 0 convention line-too-long C0301
Line too long (81/80)
515 0 convention line-too-long C0301
Line too long (92/80)
527 0 convention line-too-long C0301
Line too long (84/80)
545 0 convention line-too-long C0301
Line too long (85/80)
620 8 refactor simplifiable-if-statement R1703 CheckIfcHVAC._check_inst_ports
The if statement can be replaced with 'return bool(test)'
620 8 refactor no-else-return R1705 CheckIfcHVAC._check_inst_ports
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
637 8 refactor no-else-return R1705 CheckIfcHVAC._check_contained_in_structure
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
683 16 warning f-string-without-interpolation W1309 CheckIfcBPS.check_sub_inst_exist
Using an f-string that does not have any interpolated variables
707 16 warning f-string-without-interpolation W1309 CheckIfcBPS.check_rel_space_exist
Using an f-string that does not have any interpolated variables
713 4 warning arguments-renamed W0237 CheckIfcBPS.validate_sub_inst
Parameter 'sub_inst' has been renamed to 'bound' in overriding 'CheckIfcBPS.validate_sub_inst' method
880 0 convention line-too-long C0301
Line too long (85/80)
936 4 refactor inconsistent-return-statements R1710 CheckIfcBPS._check_rel_building_elem
Either all return statements in a function should return an expression, or none of them should.
1347 8 refactor no-else-return R1705 CheckIfcBPS._check_inst_sb
Unnecessary "elif" after "return", remove the leading "el" from "elif"
1383 0 convention superfluous-parens C0325
Unnecessary parens after 'not' keyword
1404 0 convention superfluous-parens C0325
Unnecessary parens after 'not' keyword
1406 8 refactor no-else-return R1705 CheckIfcBPS._check_inst_contained_in_structure
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
1427 0 convention superfluous-parens C0325
Unnecessary parens after 'not' keyword

Module bim2sim.tasks.common.create_elements (bim2sim/tasks/common/create_elements.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
8 0 convention line-too-long C0301
Line too long (83/80)
19 0 convention wrong-import-order C0411
third party import "from ifcopenshell import file, entity_instance" should be placed before "from bim2sim.elements import bps_elements as bps"
19 0 warning unused-import W0611
Unused file imported from ifcopenshell
36 4 warning arguments-differ W0221 CreateElementsOnIfcTypes.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'CreateElementsOnIfcTypes.run' method
36 4 warning arguments-differ W0221 CreateElementsOnIfcTypes.run
Variadics removed in overriding 'CreateElementsOnIfcTypes.run' method
36 4 refactor too-many-locals R0914 CreateElementsOnIfcTypes.run
Too many local variables (22/15)
59 9 warning fixme W0511
Todo maybe move this into IfcFileClass instead simulation settings
73 0 convention line-too-long C0301
Line too long (83/80)
92 0 convention line-too-long C0301
Line too long (81/80)
95 13 warning fixme W0511
TODO why do we run this two times, once without and once with
109 0 convention line-too-long C0301
Line too long (84/80)
120 27 warning broad-exception-caught W0718 CreateElementsOnIfcTypes.run
Catching too general exception Exception
120 20 warning unused-variable W0612 CreateElementsOnIfcTypes.run
Unused variable 'ex'
143 0 convention line-too-long C0301
Line too long (86/80)
143 4 refactor too-many-branches R0912 CreateElementsOnIfcTypes.create_with_validation
Too many branches (14/12)
197 13 warning fixme W0511
TODO #676
203 0 convention line-too-long C0301
Line too long (90/80)
204 20 warning unreachable W0101 CreateElementsOnIfcTypes.create_with_validation
Unreachable code
274 21 warning fixme W0511
TODO maybe use in future
286 0 convention line-too-long C0301
Line too long (87/80)
323 0 convention line-too-long C0301
Line too long (159/80)
341 13 warning fixme W0511
todo if every element of the constituent has a geometric
349 16 convention invalid-name C0103 CreateElementsOnIfcTypes.create_constituent
Variable name "n" doesn't conform to snake_case naming style
368 0 convention line-too-long C0301
Line too long (103/80)
368 4 refactor too-many-locals R0914 CreateElementsOnIfcTypes.filter_by_text
Too many local variables (18/15)
383 21 warning fixme W0511
TODO: filter_for_text_fragments()
385 28 warning f-string-without-interpolation W1309 CreateElementsOnIfcTypes.filter_by_text
Using an f-string that does not have any interpolated variables
399 31 convention consider-using-f-string C0209 CreateElementsOnIfcTypes.filter_by_text
Formatting a regular string which could be a f-string
409 24 warning unused-variable W0612 CreateElementsOnIfcTypes.filter_by_text
Unused variable 'element_classes'
419 4 refactor too-many-locals R0914 CreateElementsOnIfcTypes.set_class_by_user
Too many local variables (32/15)
419 4 refactor too-many-statements R0915 CreateElementsOnIfcTypes.set_class_by_user
Too many statements (57/50)
439 8 refactor too-many-branches R0912 CreateElementsOnIfcTypes.set_class_by_user.group_similar_entities
Too many branches (13/12)
495 28 warning redefined-builtin W0622 CreateElementsOnIfcTypes.set_class_by_user.group_similar_entities
Redefining built-in 'repr'
503 0 convention line-too-long C0301
Line too long (84/80)
527 28 warning unused-variable W0612 CreateElementsOnIfcTypes.set_class_by_user
Unused variable 'represented'
547 24 convention consider-using-f-string C0209 CreateElementsOnIfcTypes.set_class_by_user
Formatting a regular string which could be a f-string
553 29 convention consider-using-f-string C0209 CreateElementsOnIfcTypes.set_class_by_user
Formatting a regular string which could be a f-string
555 39 convention consider-using-f-string C0209 CreateElementsOnIfcTypes.set_class_by_user
Formatting a regular string which could be a f-string
564 31 convention consider-using-f-string C0209 CreateElementsOnIfcTypes.set_class_by_user
Formatting a regular string which could be a f-string
580 21 warning fixme W0511
todo check
597 0 convention missing-final-newline C0304
Final newline missing

Module bim2sim.tasks.common.create_relations (bim2sim/tasks/common/create_relations.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
12 4 warning arguments-differ W0221 CreateRelations.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'CreateRelations.run' method
12 4 warning arguments-differ W0221 CreateRelations.run
Variadics removed in overriding 'CreateRelations.run' method
12 4 refactor too-many-branches R0912 CreateRelations.run
Too many branches (17/12)

Module bim2sim.tasks.common.deserialize_elements (bim2sim/tasks/common/deserialize_elements.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
12 4 warning arguments-differ W0221 DeserializeElements.run
Variadics removed in overriding 'DeserializeElements.run' method
12 4 refactor inconsistent-return-statements R1710 DeserializeElements.run
Either all return statements in a function should return an expression, or none of them should.
26 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple

Module bim2sim.tasks.common.inner_loop_remover (bim2sim/tasks/common/inner_loop_remover.py)

Line Col. Type Symbol ID Obj Message
44 24 refactor use-dict-literal R1735 _UnionFind.__init__
Consider using '{}' instead of a call to 'dict'.
45 22 refactor use-dict-literal R1735 _UnionFind.__init__
Consider using '{}' instead of a call to 'dict'.
47 4 convention missing-function-docstring C0116 _UnionFind.union
Missing function or method docstring
57 4 convention missing-function-docstring C0116 _UnionFind.find
Missing function or method docstring
80 4 convention invalid-name C0103 _subshapes
Variable name "it" doesn't conform to snake_case naming style
88 0 refactor too-many-locals R0914 _get_triangulation
Too many local variables (16/15)
96 4 convention invalid-name C0103 _get_triangulation
Variable name "bt" doesn't conform to snake_case naming style
99 8 convention invalid-name C0103 _get_triangulation
Variable name "L" doesn't conform to snake_case naming style
115 12 convention invalid-name C0103 _get_triangulation
Variable name "P1" doesn't conform to snake_case naming style
116 12 convention invalid-name C0103 _get_triangulation
Variable name "P2" doesn't conform to snake_case naming style
117 12 convention invalid-name C0103 _get_triangulation
Variable name "P3" doesn't conform to snake_case naming style
137 4 convention consider-using-enumerate C0200 _iterate_edges
Consider using enumerate instead of iterating with range and len
138 8 convention invalid-name C0103 _iterate_edges
Variable name "v1" doesn't conform to snake_case naming style
139 8 convention invalid-name C0103 _iterate_edges
Variable name "v2" doesn't conform to snake_case naming style
155 18 refactor use-dict-literal R1735 _get_inside_outside_edges
Consider using '{}' instead of a call to 'dict'.
188 15 refactor use-dict-literal R1735 _get_jump_map
Consider using '{}' instead of a call to 'dict'.
226 4 convention invalid-name C0103 _order_points_cw
Variable name "n" doesn't conform to snake_case naming style
226 7 convention invalid-name C0103 _order_points_cw
Variable name "p" doesn't conform to snake_case naming style
226 10 convention invalid-name C0103 _order_points_cw
Variable name "q" doesn't conform to snake_case naming style
228 17 convention invalid-name C0103 _order_points_cw.sort_key
Argument name "v" doesn't conform to snake_case naming style
229 8 convention invalid-name C0103 _order_points_cw.sort_key
Variable name "t" doesn't conform to snake_case naming style
230 8 convention invalid-name C0103 _order_points_cw.sort_key
Variable name "u" doesn't conform to snake_case naming style
233 4 convention invalid-name C0103 _order_points_cw
Variable name "s" doesn't conform to snake_case naming style
244 4 convention invalid-name C0103 _calculate_plane_vectors
Variable name "a" doesn't conform to snake_case naming style
244 7 convention invalid-name C0103 _calculate_plane_vectors
Variable name "b" doesn't conform to snake_case naming style
244 10 convention invalid-name C0103 _calculate_plane_vectors
Variable name "c" doesn't conform to snake_case naming style
245 4 convention invalid-name C0103 _calculate_plane_vectors
Variable name "d" doesn't conform to snake_case naming style
246 4 convention invalid-name C0103 _calculate_plane_vectors
Variable name "n" doesn't conform to snake_case naming style
248 0 convention line-too-long C0301
Line too long (96/80)
250 4 convention invalid-name C0103 _calculate_plane_vectors
Variable name "p" doesn't conform to snake_case naming style
252 8 convention invalid-name C0103 _calculate_plane_vectors
Variable name "np" doesn't conform to snake_case naming style
254 12 convention invalid-name C0103 _calculate_plane_vectors
Variable name "p" doesn't conform to snake_case naming style
255 4 convention invalid-name C0103 _calculate_plane_vectors
Variable name "q" doesn't conform to snake_case naming style
267 12 refactor use-dict-literal R1735 _reconstruct_polygons
Consider using '{}' instead of a call to 'dict'.
291 12 refactor use-dict-literal R1735 _index_polygon_vertices
Consider using '{}' instead of a call to 'dict'.
292 8 convention invalid-name C0103 _index_polygon_vertices
Variable name "pIdx" doesn't conform to snake_case naming style
293 12 convention invalid-name C0103 _index_polygon_vertices
Variable name "vIdx" doesn't conform to snake_case naming style
312 4 refactor inconsistent-return-statements R1710 _reconstruct_cut_polygon.find_start_index
Either all return statements in a function should return an expression, or none of them should.
313 12 convention invalid-name C0103 _reconstruct_cut_polygon.find_start_index
Variable name "i1" doesn't conform to snake_case naming style
314 16 convention invalid-name C0103 _reconstruct_cut_polygon.find_start_index
Variable name "i2" doesn't conform to snake_case naming style
367 0 convention missing-function-docstring C0116 remove_inner_loops
Missing function or method docstring
402 11 convention invalid-name C0103 _cross
Argument name "a" doesn't conform to snake_case naming style
402 22 convention invalid-name C0103 _cross
Argument name "b" doesn't conform to snake_case naming style
407 9 convention invalid-name C0103 _dot
Argument name "a" doesn't conform to snake_case naming style
407 20 convention invalid-name C0103 _dot
Argument name "b" doesn't conform to snake_case naming style
411 11 convention invalid-name C0103 _minus
Argument name "a" doesn't conform to snake_case naming style
411 22 convention invalid-name C0103 _minus
Argument name "b" doesn't conform to snake_case naming style
415 21 convention invalid-name C0103 _is_convex_angle
Argument name "p1" doesn't conform to snake_case naming style
415 33 convention invalid-name C0103 _is_convex_angle
Argument name "p2" doesn't conform to snake_case naming style
415 45 convention invalid-name C0103 _is_convex_angle
Argument name "p3" doesn't conform to snake_case naming style
421 0 convention missing-function-docstring C0116 fuse_pieces
Missing function or method docstring
421 0 warning dangerous-default-value W0102 fuse_pieces
Dangerous default value [] as argument
421 0 refactor too-many-locals R0914 fuse_pieces
Too many local variables (27/15)
421 0 refactor too-many-branches R0912 fuse_pieces
Too many branches (27/12)
421 0 refactor too-many-statements R0915 fuse_pieces
Too many statements (72/50)
432 19 convention invalid-name C0103 fuse_pieces
Variable name "p" doesn't conform to snake_case naming style
432 19 warning unused-variable W0612 fuse_pieces
Unused variable 'p'
438 4 convention invalid-name C0103 fuse_pieces
Variable name "i1" doesn't conform to snake_case naming style
441 8 convention invalid-name C0103 fuse_pieces
Variable name "i1" doesn't conform to snake_case naming style
442 8 convention consider-using-enumerate C0200 fuse_pieces
Consider using enumerate instead of iterating with range and len
443 12 convention invalid-name C0103 fuse_pieces
Variable name "a1" doesn't conform to snake_case naming style
444 12 convention invalid-name C0103 fuse_pieces
Variable name "a2" doesn't conform to snake_case naming style
449 16 convention invalid-name C0103 fuse_pieces
Variable name "i2" doesn't conform to snake_case naming style
451 16 convention consider-using-enumerate C0200 fuse_pieces
Consider using enumerate instead of iterating with range and len
467 12 convention invalid-name C0103 fuse_pieces
Variable name "p1" doesn't conform to snake_case naming style
468 12 convention invalid-name C0103 fuse_pieces
Variable name "p2" doesn't conform to snake_case naming style
469 12 convention invalid-name C0103 fuse_pieces
Variable name "p3" doesn't conform to snake_case naming style
495 12 convention invalid-name C0103 fuse_pieces
Variable name "p1" doesn't conform to snake_case naming style
496 12 convention invalid-name C0103 fuse_pieces
Variable name "p2" doesn't conform to snake_case naming style
497 12 convention invalid-name C0103 fuse_pieces
Variable name "p3" doesn't conform to snake_case naming style
525 12 convention invalid-name C0103 fuse_pieces
Variable name "i1" doesn't conform to snake_case naming style
534 0 warning dangerous-default-value W0102 convex_decomposition_base
Dangerous default value [] as argument
552 0 convention missing-function-docstring C0116 convex_decomposition
Missing function or method docstring
552 0 warning dangerous-default-value W0102 convex_decomposition
Dangerous default value [] as argument
552 0 refactor too-many-locals R0914 convex_decomposition
Too many local variables (24/15)
552 0 refactor too-many-branches R0912 convex_decomposition
Too many branches (16/12)
552 0 refactor too-many-statements R0915 convex_decomposition
Too many statements (53/50)
559 8 convention invalid-name C0103 convex_decomposition
Variable name "p" doesn't conform to snake_case naming style
567 12 convention invalid-name C0103 convex_decomposition
Variable name "p" doesn't conform to snake_case naming style
574 12 warning unnecessary-lambda W0108 convex_decomposition.<lambda>
Lambda may not be necessary
579 11 refactor use-a-generator R1729 convex_decomposition
Use a generator instead 'all(abs(i) < 0.001 for i in (new_normal - org_normal).Coord())'
584 15 refactor use-a-generator R1729 convex_decomposition
Use a generator instead 'all(abs(i) < 0.001 for i in (new_normal - org_normal).Coord())'
604 12 convention invalid-name C0103 convex_decomposition
Variable name "cs" doesn't conform to snake_case naming style
606 19 refactor use-a-generator R1729 convex_decomposition
Use a generator instead 'all(abs(i) < 0.001 for i in (new_normal - org_normal).Coord())'
608 16 convention invalid-name C0103 convex_decomposition
Variable name "cs" doesn't conform to snake_case naming style
612 12 convention invalid-name C0103 convex_decomposition
Variable name "cs" doesn't conform to snake_case naming style
615 8 refactor no-else-break R1723 convex_decomposition
Unnecessary "else" after "break", remove the "else" and de-indent the code inside it
640 20 warning unnecessary-lambda W0108 is_convex_no_holes.<lambda>
Lambda may not be necessary
641 4 convention invalid-name C0103 is_convex_no_holes
Variable name "z" doesn't conform to snake_case naming style
642 4 convention consider-using-enumerate C0200 is_convex_no_holes
Consider using enumerate instead of iterating with range and len
643 8 convention invalid-name C0103 is_convex_no_holes
Variable name "p0" doesn't conform to snake_case naming style
644 8 convention invalid-name C0103 is_convex_no_holes
Variable name "p1" doesn't conform to snake_case naming style
645 8 convention invalid-name C0103 is_convex_no_holes
Variable name "p2" doesn't conform to snake_case naming style
647 8 refactor no-else-return R1705 is_convex_no_holes
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
650 12 convention invalid-name C0103 is_convex_no_holes
Variable name "z" doesn't conform to snake_case naming style
657 4 convention invalid-name C0103 is_polygon_convex_no_holes
Variable name "z" doesn't conform to snake_case naming style
658 4 convention consider-using-enumerate C0200 is_polygon_convex_no_holes
Consider using enumerate instead of iterating with range and len
659 8 convention invalid-name C0103 is_polygon_convex_no_holes
Variable name "p0" doesn't conform to snake_case naming style
660 8 convention invalid-name C0103 is_polygon_convex_no_holes
Variable name "p1" doesn't conform to snake_case naming style
661 8 convention invalid-name C0103 is_polygon_convex_no_holes
Variable name "p2" doesn't conform to snake_case naming style
663 8 refactor no-else-return R1705 is_polygon_convex_no_holes
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
666 12 convention invalid-name C0103 is_polygon_convex_no_holes
Variable name "z" doesn't conform to snake_case naming style

Module bim2sim.tasks.common.load_ifc (bim2sim/tasks/common/load_ifc.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
21 4 warning arguments-differ W0221 LoadIFC.run
Variadics removed in overriding 'LoadIFC.run' method
24 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
47 0 convention line-too-long C0301
Line too long (86/80)
65 33 convention consider-using-f-string C0209 LoadIFC.load_ifc_files
Formatting a regular string which could be a f-string

Module bim2sim.tasks.common.serialize_elements (bim2sim/tasks/common/serialize_elements.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
15 4 warning arguments-differ W0221 SerializeElements.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'SerializeElements.run' method
15 4 warning arguments-differ W0221 SerializeElements.run
Variadics removed in overriding 'SerializeElements.run' method
36 12 convention invalid-name C0103 SerializeElements.run
Variable name "se" doesn't conform to snake_case naming style
42 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple

Module bim2sim.tasks.common.weather (bim2sim/tasks/common/weather.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
3 0 convention wrong-import-order C0411
standard import "from typing import Any" should be placed before "from bim2sim.tasks.base import ITask"
3 0 warning unused-import W0611
Unused Any imported from typing
4 0 convention wrong-import-order C0411
standard import "from pathlib import WindowsPath, Path" should be placed before "from bim2sim.tasks.base import ITask"
4 0 warning unused-import W0611
Unused Path imported from pathlib
5 0 convention wrong-import-order C0411
standard import "from typing import Optional" should be placed before "from bim2sim.tasks.base import ITask"
5 0 convention ungrouped-imports C0412
Imports from package typing are not grouped
11 4 warning arguments-differ W0221 Weather.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'Weather.run' method
11 4 warning arguments-differ W0221 Weather.run
Variadics removed in overriding 'Weather.run' method
11 18 warning unused-argument W0613 Weather.run
Unused argument 'elements'
27 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
69 4 convention missing-function-docstring C0116 Weather.get_weatherfile_from_dwd
Missing function or method docstring
70 9 warning fixme W0511
TODO implement scraper, if DWD allows it
84 9 warning fixme W0511
TODO: this might be obsolete, because if we use DWD method, we don't
87 8 convention import-outside-toplevel C0415 Weather.get_location_name
Import outside toplevel (requests)
99 19 warning missing-timeout W3101 Weather.get_location_name
Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely

Module bim2sim.tasks.hvac (bim2sim/tasks/hvac/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring

Module bim2sim.tasks.hvac.check_ifc (bim2sim/tasks/hvac/check_ifc.py)

Line Col. Type Symbol ID Obj Message
2 0 convention trailing-newlines C0305
Trailing newlines

Module bim2sim.tasks.hvac.connect_elements (bim2sim/tasks/hvac/connect_elements.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
27 8 warning unnecessary-pass W0107 ConnectElements.__init__
Unnecessary pass statement
29 4 warning arguments-differ W0221 ConnectElements.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'ConnectElements.run' method
29 4 warning arguments-differ W0221 ConnectElements.run
Variadics removed in overriding 'ConnectElements.run' method
29 4 refactor too-many-locals R0914 ConnectElements.run
Too many local variables (18/15)
107 12 warning unused-variable W0612 ConnectElements.run
Unused variable 'bb_connections'
116 9 warning fixme W0511
TODO: manually add / modify connections
117 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
152 4 refactor too-many-branches R0912 ConnectElements.connections_by_relation
Too many branches (14/12)
340 9 warning fixme W0511
TODO: if a lot of decisions occur, it would help to merge
348 35 warning unused-argument W0613 ConnectElements.connections_by_boundingbox
Unused argument 'open_ports'
348 47 warning unused-argument W0613 ConnectElements.connections_by_boundingbox
Unused argument 'elements'
355 9 warning fixme W0511
TODO: implement

Module bim2sim.tasks.hvac.dead_ends (bim2sim/tasks/hvac/dead_ends.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
7 0 convention missing-class-docstring C0115 DeadEnds
Missing class docstring
12 4 warning arguments-differ W0221 DeadEnds.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'DeadEnds.run' method
12 4 warning arguments-differ W0221 DeadEnds.run
Variadics removed in overriding 'DeadEnds.run' method
31 25 convention consider-using-f-string C0209 DeadEnds.run
Formatting a regular string which could be a f-string
35 25 convention consider-using-f-string C0209 DeadEnds.run
Formatting a regular string which could be a f-string
40 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
73 4 refactor too-many-locals R0914 DeadEnds.decide_dead_ends
Too many local variables (22/15)
73 4 refactor too-many-branches R0912 DeadEnds.decide_dead_ends
Too many branches (16/12)
100 12 refactor no-else-continue R1724 DeadEnds.decide_dead_ends
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it
105 17 warning fixme W0511
TODO: how to handle devices where we might want to connect
128 27 warning unused-variable W0612 DeadEnds.decide_dead_ends
Unused variable 'port_strand'
137 29 convention consider-using-f-string C0209 DeadEnds.decide_dead_ends
Formatting a regular string which could be a f-string
139 39 convention consider-using-f-string C0209 DeadEnds.decide_dead_ends
Formatting a regular string which could be a f-string
141 31 convention consider-using-f-string C0209 DeadEnds.decide_dead_ends
Formatting a regular string which could be a f-string
159 21 warning fixme W0511
TODO connect elements that are open but not dead ends
161 21 warning fixme W0511
TODO: handle consumers

Module bim2sim.tasks.hvac.expansiontanks (bim2sim/tasks/hvac/expansiontanks.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
8 0 convention missing-class-docstring C0115 ExpansionTanks
Missing class docstring
13 4 warning arguments-differ W0221 ExpansionTanks.run
Number of parameters was 2 in 'ITask.run' and is now 3 in overriding 'ExpansionTanks.run' method
13 4 warning arguments-differ W0221 ExpansionTanks.run
Variadics removed in overriding 'ExpansionTanks.run' method
42 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
106 31 convention consider-using-f-string C0209 ExpansionTanks.decide_expansion_tanks
Formatting a regular string which could be a f-string
123 21 warning fixme W0511
TODO: handle real storages

Module bim2sim.tasks.hvac.export (bim2sim/tasks/hvac/export.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
18 4 warning arguments-differ W0221 Export.run
Number of parameters was 2 in 'ITask.run' and is now 3 in overriding 'Export.run' method
18 4 warning arguments-differ W0221 Export.run
Variadics removed in overriding 'Export.run' method
39 8 warning unused-variable W0612 Export.run
Unused variable 'connections'
69 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
101 23 convention unidiomatic-typecheck C0123 Export.create_connections
Use isinstance() rather than type() for a typecheck.
114 8 convention consider-using-dict-items C0206 Export.create_connections
Consider iterating with .items()
115 0 convention line-too-long C0301
Line too long (89/80)

Module bim2sim.tasks.hvac.fixports (bim2sim/tasks/hvac/fixports.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
11 0 warning unused-import W0611
Unused BaseSimSettings imported from bim2sim.sim_settings
20 4 warning arguments-differ W0221 FixPorts.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'FixPorts.run' method
20 4 warning arguments-differ W0221 FixPorts.run
Variadics removed in overriding 'FixPorts.run' method
20 18 warning redefined-outer-name W0621 FixPorts.run
Redefining name 'ifc' from outer scope (line 146)
30 13 warning unspecified-encoding W1514 FixPorts.run
Using open without explicitly specifying an encoding
33 8 warning unreachable W0101 FixPorts.run
Unreachable code
37 8 warning redefined-outer-name W0621 FixPorts.run
Redefining name 'path' from outer scope (line 145)
39 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
41 49 warning redefined-outer-name W0621 FixPorts.unconnected_ports_on_same_position
Redefining name 'ifc' from outer scope (line 146)
59 28 refactor unnecessary-dict-index-lookup R1733 FixPorts.unconnected_ports_on_same_position
Unnecessary dictionary index lookup, use 'ports' instead
64 0 convention line-too-long C0301
Line too long (86/80)
64 4 convention missing-function-docstring C0116 FixPorts.ports_with_same_parent_and_same_position
Missing function or method docstring
64 55 warning redefined-outer-name W0621 FixPorts.ports_with_same_parent_and_same_position
Redefining name 'ifc' from outer scope (line 146)
67 0 convention line-too-long C0301
Line too long (83/80)
70 8 convention consider-using-dict-items C0206 FixPorts.ports_with_same_parent_and_same_position
Consider iterating with .items()
86 0 convention line-too-long C0301
Line too long (83/80)
86 4 convention missing-function-docstring C0116 FixPorts.entities_with_unusual_number_of_ports
Missing function or method docstring
86 52 warning redefined-outer-name W0621 FixPorts.entities_with_unusual_number_of_ports
Redefining name 'ifc' from outer scope (line 146)
97 4 convention missing-function-docstring C0116 FixPorts.get_unconnected_ports
Missing function or method docstring
97 36 warning redefined-outer-name W0621 FixPorts.get_unconnected_ports
Redefining name 'ifc' from outer scope (line 146)
104 12 warning unused-variable W0612 FixPorts._is_connected
Unused variable 'other'
113 0 convention line-too-long C0301
Line too long (107/80)
118 0 convention line-too-long C0301
Line too long (83/80)
126 0 convention line-too-long C0301
Line too long (110/80)
130 4 convention missing-function-docstring C0116 FixPorts.get_product_position
Missing function or method docstring
132 0 convention line-too-long C0301
Line too long (94/80)
135 0 convention line-too-long C0301
Line too long (90/80)
147 4 error too-many-function-args E1121
Too many positional arguments for method call
147 4 error no-value-for-parameter E1120
No value for argument 'playground' in constructor call

Module bim2sim.tasks.hvac.load_standardlibrary (bim2sim/tasks/hvac/load_standardlibrary.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
10 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple

Module bim2sim.tasks.hvac.make_graph (bim2sim/tasks/hvac/make_graph.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 0 convention missing-class-docstring C0115 MakeGraph
Missing class docstring
11 4 warning arguments-differ W0221 MakeGraph.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'MakeGraph.run' method
11 4 warning arguments-differ W0221 MakeGraph.run
Variadics removed in overriding 'MakeGraph.run' method
27 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple

Module bim2sim.tasks.hvac.reduce (bim2sim/tasks/hvac/reduce.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
11 0 convention missing-class-docstring C0115 Reduce
Missing class docstring
16 4 warning arguments-differ W0221 Reduce.run
Number of parameters was 2 in 'ITask.run' and is now 2 in overriding 'Reduce.run' method
16 4 warning arguments-differ W0221 Reduce.run
Variadics removed in overriding 'Reduce.run' method
16 4 refactor too-many-locals R0914 Reduce.run
Too many local variables (19/15)
57 23 warning broad-exception-caught W0718 Reduce.run
Catching too general exception Exception
57 16 warning unused-variable W0612 Reduce.run
Unused variable 'ex'
75 18 convention consider-using-f-string C0209 Reduce.run
Formatting a regular string which could be a f-string
78 23 convention consider-using-f-string C0209 Reduce.run
Formatting a regular string which could be a f-string
87 0 refactor trailing-comma-tuple R1707
Disallow trailing comma tuple
90 4 refactor too-many-branches R0912 Reduce.set_flow_sides
Too many branches (13/12)
105 9 warning fixme W0511
TODO: needs testing!
106 9 warning fixme W0511
TODO: at least one master element required
123 21 warning fixme W0511
TODO: ask user?
129 28 convention consider-using-f-string C0209 Reduce.set_flow_sides
Formatting a regular string which could be a f-string
130 40 convention consider-using-f-string C0209 Reduce.set_flow_sides
Formatting a regular string which could be a f-string
139 21 warning fixme W0511
TODO: ask user?

Module bim2sim.utilities.check_docstrings (bim2sim/utilities/check_docstrings.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
7 0 convention line-too-long C0301
Line too long (89/80)
8 0 convention line-too-long C0301
Line too long (86/80)
8 13 warning subprocess-run-check W1510 count_functions_with_correct_docstrings
'subprocess.run' used without explicitly defining the value for 'check'.
15 4 warning redefined-outer-name W0621 count_functions_with_correct_docstrings
Redefining name 'structured_messages' from outer scope (line 56)
35 0 convention missing-function-docstring C0116 generate_markdown_table
Missing function or method docstring
37 0 convention line-too-long C0301
Line too long (106/80)
46 0 convention line-too-long C0301
Line too long (93/80)
56 0 convention line-too-long C0301
Line too long (119/80)

Module bim2sim.utilities.common_functions (bim2sim/utilities/common_functions.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 0 warning unused-import W0611
Unused import shutil
7 0 warning unused-import W0611
Unused import zipfile
8 0 warning unused-import W0611
Unused urlopen imported from urllib.request
11 0 warning unused-import W0611
Unused sleep imported from time
15 0 warning unused-import W0611
Unused IFCDomain imported from bim2sim.utilities.types
21 0 convention missing-function-docstring C0116 angle_equivalent
Missing function or method docstring
32 4 convention invalid-name C0103 vector_angle
Variable name "x" doesn't conform to snake_case naming style
33 4 convention invalid-name C0103 vector_angle
Variable name "y" doesn't conform to snake_case naming style
61 0 convention missing-function-docstring C0116 validateJSON
Missing function or method docstring
61 0 convention invalid-name C0103 validateJSON
Function name "validateJSON" doesn't conform to snake_case naming style
72 0 convention missing-function-docstring C0116 get_use_conditions_dict
Missing function or method docstring
87 0 convention missing-function-docstring C0116 get_common_pattern_usage
Missing function or method docstring
97 0 refactor inconsistent-return-statements R1710 get_custom_pattern_usage
Either all return statements in a function should return an expression, or none of them should.
134 16 convention consider-using-f-string C0209 get_pattern_usage
Formatting a regular string which could be a f-string
138 24 convention consider-using-f-string C0209 get_pattern_usage
Formatting a regular string which could be a f-string
144 8 convention consider-using-f-string C0209 get_pattern_usage
Formatting a regular string which could be a f-string
162 20 warning raise-missing-from W0707 combine_usages
Consider explicitly re-raising using 'except TypeError as exc' and 'raise TypeError('custom usages must be a list') from exc'
171 0 refactor too-many-return-statements R0911 wildcard_match
Too many return statements (7/6)
219 0 convention missing-function-docstring C0116 get_type_building_elements
Missing function or method docstring
223 13 warning unspecified-encoding W1514 get_type_building_elements
Using open without explicitly specifying an encoding
241 0 convention missing-function-docstring C0116 get_material_templates
Missing function or method docstring
245 13 warning unspecified-encoding W1514 get_material_templates
Using open without explicitly specifying an encoding
245 52 convention invalid-name C0103 get_material_templates
Variable name "f" doesn't conform to snake_case naming style
267 4 convention import-outside-toplevel C0415 filter_elements
Import outside toplevel (bim2sim.elements.base_elements.SerializedElement)
269 41 convention unidiomatic-typecheck C0123 filter_elements
Use isinstance() rather than type() for a typecheck.
286 4 refactor no-else-return R1705 filter_elements
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
298 4 convention invalid-name C0103 remove_umlaut
Variable name "u" doesn't conform to snake_case naming style
299 4 convention invalid-name C0103 remove_umlaut
Variable name "U" doesn't conform to snake_case naming style
300 4 convention invalid-name C0103 remove_umlaut
Variable name "a" doesn't conform to snake_case naming style
301 4 convention invalid-name C0103 remove_umlaut
Variable name "A" doesn't conform to snake_case naming style
302 4 convention invalid-name C0103 remove_umlaut
Variable name "o" doesn't conform to snake_case naming style
303 4 convention invalid-name C0103 remove_umlaut
Variable name "O" doesn't conform to snake_case naming style
304 4 convention invalid-name C0103 remove_umlaut
Variable name "ss" doesn't conform to snake_case naming style
324 8 convention import-outside-toplevel C0415 translate_deep
Import outside toplevel (deep_translator.GoogleTranslator)
328 4 warning bare-except W0702 translate_deep
No exception type(s) specified
404 16 warning broad-exception-raised W0719 download_library
Raising too general exception: Exception
417 12 warning raise-missing-from W0707 download_library
Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception(f'Directory {clone_dir} exists but is not a Git repository.') from exc'
417 12 warning broad-exception-raised W0719 download_library
Raising too general exception: Exception
443 0 convention missing-function-docstring C0116 create_plotly_graphs_from_df
Missing function or method docstring
443 33 warning unused-argument W0613 create_plotly_graphs_from_df
Unused argument 'self'
445 5 warning fixme W0511
todo 497
464 4 convention import-outside-toplevel C0415 group_by_levenshtein
Import outside toplevel (collections.defaultdict)
466 20 convention invalid-name C0103 group_by_levenshtein.levenshtein
Argument name "s1" doesn't conform to snake_case naming style
466 24 convention invalid-name C0103 group_by_levenshtein.levenshtein
Argument name "s2" doesn't conform to snake_case naming style
467 8 convention invalid-name C0103 group_by_levenshtein.levenshtein
Variable name "m" doesn't conform to snake_case naming style
467 11 convention invalid-name C0103 group_by_levenshtein.levenshtein
Variable name "n" doesn't conform to snake_case naming style
468 8 convention invalid-name C0103 group_by_levenshtein.levenshtein
Variable name "dp" doesn't conform to snake_case naming style
489 0 convention line-too-long C0301
Line too long (134/80)

Module bim2sim.utilities.pyocc_tools (bim2sim/utilities/pyocc_tools.py)

Line Col. Type Symbol ID Obj Message
32 0 refactor too-many-public-methods R0904 PyOCCTools
Too many public methods (33/20)
43 12 convention invalid-name C0103 PyOCCTools.remove_coincident_vertices
Variable name "v" doesn't conform to snake_case naming style
58 12 convention invalid-name C0103 PyOCCTools.remove_collinear_vertices2
Variable name "v" doesn't conform to snake_case naming style
61 12 convention invalid-name C0103 PyOCCTools.remove_collinear_vertices2
Variable name "v1" doesn't conform to snake_case naming style
62 12 convention invalid-name C0103 PyOCCTools.remove_collinear_vertices2
Variable name "v2" doesn't conform to snake_case naming style
263 13 convention invalid-name C0103 PyOCCTools._a2p
Argument name "o" doesn't conform to snake_case naming style
263 16 convention invalid-name C0103 PyOCCTools._a2p
Argument name "z" doesn't conform to snake_case naming style
263 19 convention invalid-name C0103 PyOCCTools._a2p
Argument name "x" doesn't conform to snake_case naming style
265 8 convention invalid-name C0103 PyOCCTools._a2p
Variable name "y" doesn't conform to snake_case naming style
266 8 convention invalid-name C0103 PyOCCTools._a2p
Variable name "r" doesn't conform to snake_case naming style
274 8 convention invalid-name C0103 PyOCCTools._axis2placement
Variable name "z" doesn't conform to snake_case naming style
275 8 convention invalid-name C0103 PyOCCTools._axis2placement
Variable name "x" doesn't conform to snake_case naming style
277 8 convention invalid-name C0103 PyOCCTools._axis2placement
Variable name "o" doesn't conform to snake_case naming style
317 8 warning bare-except W0702 PyOCCTools.get_face_from_shape
No exception type(s) specified
357 0 convention superfluous-parens C0325
Unnecessary parens after '=' keyword
378 4 convention missing-function-docstring C0116 PyOCCTools.sew_shapes
Missing function or method docstring
386 4 convention missing-function-docstring C0116 PyOCCTools.move_bounds_to_vertical_pos
Missing function or method docstring
386 48 refactor use-list-literal R1734 PyOCCTools.move_bounds_to_vertical_pos
Consider using [] instead of list()
387 0 convention line-too-long C0301
Line too long (82/80)
411 4 refactor too-many-locals R0914 PyOCCTools.get_footprint_of_shape
Too many local variables (16/15)
420 12 convention invalid-name C0103 PyOCCTools.get_footprint_of_shape
Variable name "p" doesn't conform to snake_case naming style
428 16 convention invalid-name C0103 PyOCCTools.get_footprint_of_shape
Variable name "p" doesn't conform to snake_case naming style
438 42 warning unused-variable W0612 PyOCCTools.get_footprint_of_shape
Unused variable 'zmax'
452 4 warning dangerous-default-value W0102 PyOCCTools.triangulate_bound_shape
Dangerous default value [] as argument

Module bim2sim.utilities.svg_utils (bim2sim/utilities/svg_utils.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
10 0 convention invalid-name C0103
Constant name "est_time" doesn't conform to UPPER_CASE naming style
11 0 convention invalid-name C0103
Constant name "aggregate_model" doesn't conform to UPPER_CASE naming style
84 4 convention invalid-name C0103 convert_ifc_to_svg
Variable name "sr" doesn't conform to snake_case naming style
109 8 warning unused-variable W0612 convert_ifc_to_svg
Unused variable 'progress'
127 9 warning unspecified-encoding W1514 split_svg_by_storeys
Using open without explicitly specifying an encoding
144 4 warning unused-variable W0612 split_svg_by_storeys
Unused variable 'style_element'
167 60 convention invalid-name C0103 split_svg_by_storeys
Variable name "f" doesn't conform to snake_case naming style
172 0 refactor too-many-locals R0914 modify_svg_elements
Too many local variables (24/15)
172 0 refactor too-many-branches R0912 modify_svg_elements
Too many branches (15/12)
172 0 refactor too-many-statements R0915 modify_svg_elements
Too many statements (53/50)
188 4 convention invalid-name C0103 modify_svg_elements
Variable name "ns" doesn't conform to snake_case naming style
190 4 refactor too-many-nested-blocks R1702 modify_svg_elements
Too many nested blocks (6/5)
212 16 warning f-string-without-interpolation W1309 modify_svg_elements
Using an f-string that does not have any interpolated variables
225 13 warning fixme W0511
TODO set spacearea and space name to false in convert, store
271 0 refactor too-many-locals R0914 combine_two_svgs
Too many local variables (19/15)
283 4 convention import-outside-toplevel C0415 combine_two_svgs
Import outside toplevel (reportlab.graphics.renderSVG)
284 4 convention import-outside-toplevel C0415 combine_two_svgs
Import outside toplevel (reportlab.graphics.shapes.Drawing, reportlab.graphics.shapes.Group)
285 4 convention import-outside-toplevel C0415 combine_two_svgs
Import outside toplevel (svglib.svglib.svg2rlg)
336 16 warning logging-fstring-interpolation W1203 combine_svgs_complete
Use lazy % formatting in logging functions
339 12 convention invalid-name C0103 combine_svgs_complete
Variable name "e" doesn't conform to snake_case naming style
340 16 warning logging-fstring-interpolation W1203 combine_svgs_complete
Use lazy % formatting in logging functions

Module bim2sim.utilities.test (bim2sim/utilities/test.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
17 4 convention missing-function-docstring C0116 IntegrationBase.setUp
Missing function or method docstring
17 4 convention invalid-name C0103 IntegrationBase.setUp
Method name "setUp" doesn't conform to snake_case naming style
24 4 convention missing-function-docstring C0116 IntegrationBase.tearDown
Missing function or method docstring
24 4 convention invalid-name C0103 IntegrationBase.tearDown
Method name "tearDown" doesn't conform to snake_case naming style
27 12 error no-member E1101 IntegrationBase.tearDown
Instance of 'IntegrationBase' has no 'assertFalse' member
52 12 refactor consider-using-with R1732 IntegrationBase.create_project
Consider using 'with' for resource-allocating operations
60 4 convention missing-function-docstring C0116 IntegrationBase.test_resources_path
Missing function or method docstring
63 4 convention missing-function-docstring C0116 IntegrationBase.model_domain_path
Missing function or method docstring
66 4 convention missing-function-docstring C0116 IntegrationBase.weather_file_path
Missing function or method docstring
79 4 convention missing-function-docstring C0116 RegressionTestBase.create_regression_setup
Missing function or method docstring
82 4 convention missing-function-docstring C0116 RegressionTestBase.run_regression_test
Missing function or method docstring
84 0 convention trailing-whitespace C0303
Trailing whitespace

Module bim2sim.utilities.types (bim2sim/utilities/types.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 4 convention invalid-name C0103 IFCDomain
Class constant name "arch" doesn't conform to UPPER_CASE naming style
7 4 convention invalid-name C0103 IFCDomain
Class constant name "ventilation" doesn't conform to UPPER_CASE naming style
8 4 convention invalid-name C0103 IFCDomain
Class constant name "hydraulic" doesn't conform to UPPER_CASE naming style
9 4 convention invalid-name C0103 IFCDomain
Class constant name "sanitary" doesn't conform to UPPER_CASE naming style
10 4 convention invalid-name C0103 IFCDomain
Class constant name "mixed" doesn't conform to UPPER_CASE naming style
11 4 convention invalid-name C0103 IFCDomain
Class constant name "unknown" doesn't conform to UPPER_CASE naming style
17 4 convention invalid-name C0103 LOD
Class constant name "ignore" doesn't conform to UPPER_CASE naming style
18 4 convention invalid-name C0103 LOD
Class constant name "low" doesn't conform to UPPER_CASE naming style
19 4 convention invalid-name C0103 LOD
Class constant name "medium" doesn't conform to UPPER_CASE naming style
20 4 convention invalid-name C0103 LOD
Class constant name "full" doesn't conform to UPPER_CASE naming style
52 0 convention line-too-long C0301
Line too long (82/80)
55 4 convention invalid-name C0103 ZoningCriteria
Class constant name "external" doesn't conform to UPPER_CASE naming style
56 4 convention invalid-name C0103 ZoningCriteria
Class constant name "usage" doesn't conform to UPPER_CASE naming style
57 4 convention invalid-name C0103 ZoningCriteria
Class constant name "external_orientation" doesn't conform to UPPER_CASE naming style
58 4 convention invalid-name C0103 ZoningCriteria
Class constant name "external_orientation_usage" doesn't conform to UPPER_CASE naming style
59 4 convention invalid-name C0103 ZoningCriteria
Class constant name "all_criteria" doesn't conform to UPPER_CASE naming style
60 4 convention invalid-name C0103 ZoningCriteria
Class constant name "individual_spaces" doesn't conform to UPPER_CASE naming style
61 4 convention invalid-name C0103 ZoningCriteria
Class constant name "combined_single_zone" doesn't conform to UPPER_CASE naming style
90 4 convention invalid-name C0103 AttributeDataSource
Class constant name "ifc_attr" doesn't conform to UPPER_CASE naming style
91 4 convention invalid-name C0103 AttributeDataSource
Class constant name "default_ps" doesn't conform to UPPER_CASE naming style
92 4 convention invalid-name C0103 AttributeDataSource
Class constant name "default_association" doesn't conform to UPPER_CASE naming style
93 4 convention invalid-name C0103 AttributeDataSource
Class constant name "finder" doesn't conform to UPPER_CASE naming style
94 4 convention invalid-name C0103 AttributeDataSource
Class constant name "patterns" doesn't conform to UPPER_CASE naming style
95 4 convention invalid-name C0103 AttributeDataSource
Class constant name "function" doesn't conform to UPPER_CASE naming style
96 4 convention invalid-name C0103 AttributeDataSource
Class constant name "default" doesn't conform to UPPER_CASE naming style
97 4 convention invalid-name C0103 AttributeDataSource
Class constant name "decision" doesn't conform to UPPER_CASE naming style
98 4 convention invalid-name C0103 AttributeDataSource
Class constant name "manual_overwrite" doesn't conform to UPPER_CASE naming style
99 4 convention invalid-name C0103 AttributeDataSource
Class constant name "enrichment" doesn't conform to UPPER_CASE naming style
100 4 convention invalid-name C0103 AttributeDataSource
Class constant name "space_boundary" doesn't conform to UPPER_CASE naming style
111 4 convention invalid-name C0103 BoundaryOrientation
Class constant name "top" doesn't conform to UPPER_CASE naming style
112 4 convention invalid-name C0103 BoundaryOrientation
Class constant name "bottom" doesn't conform to UPPER_CASE naming style
113 4 convention invalid-name C0103 BoundaryOrientation
Class constant name "vertical" doesn't conform to UPPER_CASE naming style

Module bim2sim.utilities.visualize_spaces (bim2sim/utilities/visualize_spaces.py)

Line Col. Type Symbol ID Obj Message
50 0 refactor too-many-locals R0914 visualize_zones
Too many local variables (34/15)
75 5 warning fixme W0511
TODO this messes with the logger, but method like below doesn't work
77 13 warning unused-variable W0612 visualize_zones
Unused variable 'start_display'
77 28 warning unused-variable W0612 visualize_zones
Unused variable 'add_menu'
77 38 warning unused-variable W0612 visualize_zones
Unused variable 'add_function_to_menu'
83 8 convention invalid-name C0103 visualize_zones
Variable name "tz" doesn't conform to snake_case naming style
86 25 refactor consider-using-generator R1728 visualize_zones
Consider using a generator instead 'tuple(round(x / 256, 2) for x in rgb_tuple)'
87 24 convention consider-iterating-dictionary C0201 visualize_zones
Consider iterating the dictionary directly instead of calling .keys()
123 4 convention invalid-name C0103 visualize_zones
Variable name "x0" doesn't conform to snake_case naming style
125 4 convention invalid-name C0103 visualize_zones
Variable name "y0" doesn't conform to snake_case naming style
128 8 convention invalid-name C0103 visualize_zones
Variable name "xy" doesn't conform to snake_case naming style
134 8 convention invalid-name C0103 visualize_zones
Variable name "y0" doesn't conform to snake_case naming style
137 4 warning logging-fstring-interpolation W1203 visualize_zones
Use lazy % formatting in logging functions

Metrics

Count per types

Name Count
warning 938
convention 1342
refactor 671
error 104

Count per messages

Name Count
broad-exception-caught 19
too-many-lines 6
fixme 169
useless-import-alias 4
redefined-argument-from-local 2
too-many-instance-attributes 14
too-many-arguments 28
missing-function-docstring 158
unused-argument 124
missing-class-docstring 138
logging-fstring-interpolation 66
no-else-raise 9
no-else-return 98
raise-missing-from 22
no-else-continue 6
too-many-branches 36
too-many-nested-blocks 9
line-too-long 277
deprecated-module 1
consider-using-with 18
protected-access 12
unspecified-encoding 33
logging-not-lazy 11
consider-using-f-string 130
bare-except 18
invalid-name 418
consider-using-sys-exit 2
redefined-outer-name 80
too-many-locals 46
abstract-method 71
inconsistent-return-statements 41
trailing-whitespace 9
consider-using-set-comprehension 6
use-implicit-booleaness-not-len 1
consider-using-generator 17
redefined-builtin 12
too-many-return-statements 5
too-many-statements 19
unused-variable 86
use-a-generator 23
unnecessary-pass 5
super-with-arguments 1
useless-parent-delegation 4
missing-module-docstring 108
no-value-for-parameter 3
too-many-public-methods 4
function-redefined 1
assignment-from-none 1
no-member 32
unused-import 57
superfluous-parens 9
unidiomatic-typecheck 15
method-hidden 2
use-dict-literal 23
too-many-ancestors 8
simplifiable-if-expression 9
consider-using-enumerate 6
import-outside-toplevel 17
undefined-loop-variable 1
too-few-public-methods 16
logging-format-interpolation 1
unnecessary-comprehension 8
unexpected-special-method-signature 1
undefined-variable 9
wrong-import-order 19
empty-docstring 2
arguments-differ 84
unreachable 6
super-init-not-called 1
unnecessary-dunder-call 1
no-name-in-module 2
import-error 45
invalid-unary-operand-type 1
no-else-break 6
dangerous-default-value 7
raising-format-tuple 2
missing-final-newline 8
f-string-without-interpolation 22
arguments-renamed 3
simplifiable-if-statement 1
trailing-comma-tuple 30
missing-timeout 1
ungrouped-imports 4
unnecessary-lambda 2
trailing-newlines 6
consider-using-dict-items 4
unnecessary-dict-index-lookup 2
too-many-function-args 1
not-callable 2
consider-merging-isinstance 2
use-list-literal 1
consider-iterating-dictionary 2
subprocess-run-check 1
broad-exception-raised 3
assignment-from-no-return 1
pointless-string-statement 2
unexpected-keyword-arg 1
redundant-u-string-prefix 3
used-before-assignment 2
attribute-defined-outside-init 6
deprecated-method 2
consider-using-in 1
consider-using-max-builtin 2
consider-using-min-builtin 1
duplicate-key 1
duplicate-code 149
cyclic-import 28

Count per modules

Name Count
bim2sim 1
bim2sim.sim_settings 36
bim2sim.project 32
bim2sim.__main__ 4
bim2sim.elements.hvac_elements 117
bim2sim.elements.bps_elements 227
bim2sim.elements.base_elements 104
bim2sim.elements.aggregation.hvac_aggregations 121
bim2sim.elements.aggregation.__init__ 3
bim2sim.elements.aggregation 11
bim2sim.elements.aggregation.bps_aggregations 59
bim2sim.elements.mapping.finder 21
bim2sim.elements.mapping.ifc2python 102
bim2sim.elements.mapping.condition 19
bim2sim.elements.mapping.units 10
bim2sim.elements.mapping.filter 41
bim2sim.elements.mapping.attribute 39
bim2sim.elements.graphs.hvac_graph 52
bim2sim.examples.__init__ 1
bim2sim.examples.e2_interactive_project 6
bim2sim.examples.e1_template_plugin 5
bim2sim.tasks.base 15
bim2sim.tasks.common.check_ifc 48
bim2sim.tasks.common.serialize_elements 5
bim2sim.tasks.common.create_elements 42
bim2sim.tasks.common.create_relations 4
bim2sim.tasks.common 1
bim2sim.tasks.common.weather 16
bim2sim.tasks.common.inner_loop_remover 102
bim2sim.tasks.common.deserialize_elements 4
bim2sim.tasks.common.load_ifc 5
bim2sim.tasks.common.base_tasks 3
bim2sim.tasks.hvac.check_ifc 1
bim2sim.tasks.hvac.export 8
bim2sim.tasks.hvac.dead_ends 17
bim2sim.tasks.hvac.load_standardlibrary 2
bim2sim.tasks.hvac.make_graph 5
bim2sim.tasks.hvac 1
bim2sim.tasks.hvac.reduce 17
bim2sim.tasks.hvac.fixports 30
bim2sim.tasks.hvac.connect_elements 13
bim2sim.tasks.hvac.expansiontanks 7
bim2sim.tasks.bps.sb_creation 22
bim2sim.tasks.bps.enrich_use_cond 20
bim2sim.tasks.bps.disaggr_creation 30
bim2sim.tasks.bps.enrich_material 15
bim2sim.tasks.bps 1
bim2sim.tasks.bps.combine_tz 17
bim2sim.tasks.bps.sb_2b_generation 16
bim2sim.tasks.bps.plot_results 75
bim2sim.tasks.bps.sb_correction 27
bim2sim.utilities.pyocc_tools 24
bim2sim.utilities.visualize_spaces 13
bim2sim.utilities.check_docstrings 9
bim2sim.utilities.test 13
bim2sim.utilities.svg_utils 22
bim2sim.utilities.common_functions 49
bim2sim.utilities.types 33
bim2sim.plugins.__init__ 1
bim2sim.plugins 6
bim2sim.plugins.PluginComfort 1
bim2sim.plugins.PluginComfort.bim2sim_comfort 2
bim2sim.plugins.PluginComfort.bim2sim_comfort.sim_settings 3
bim2sim.plugins.PluginComfort.bim2sim_comfort.examples.e1_simple_project_comfort_energyplus 2
bim2sim.plugins.PluginComfort.bim2sim_comfort.examples.e3_load_comfort_simulation_results 3
bim2sim.plugins.PluginComfort.bim2sim_comfort.task.ep_load_idf 6
bim2sim.plugins.PluginComfort.bim2sim_comfort.task.ep_comfort_visualization 48
bim2sim.plugins.PluginComfort.bim2sim_comfort.task.__init__ 1
bim2sim.plugins.PluginComfort.bim2sim_comfort.task 1
bim2sim.plugins.PluginComfort.bim2sim_comfort.task.plot_comfort_results 62
bim2sim.plugins.PluginComfort.bim2sim_comfort.task.create_result_df 18
bim2sim.plugins.PluginComfort.bim2sim_comfort.task.ep_comfort_settings 22
bim2sim.plugins.PluginComfort.bim2sim_comfort.utils.utils_comfort_templates 16
bim2sim.plugins.PluginComfort.test.regression.prepare_regression_tests 2
bim2sim.plugins.PluginComfort.test.regression.test_comfort 15
bim2sim.plugins.PluginComfort.test.integration.test_useage 3
bim2sim.plugins.PluginComfort.test.integration.test_comfort 18
bim2sim.plugins.PluginLCA 1
bim2sim.plugins.PluginLCA.bim2sim_lca 2
bim2sim.plugins.PluginLCA.bim2sim_lca.sim_settings 3
bim2sim.plugins.PluginLCA.bim2sim_lca.examples.e1_export_quantities_for_lca 2
bim2sim.plugins.PluginLCA.bim2sim_lca.task.export_lca 20
bim2sim.plugins.PluginLCA.test.integration.test_lca 4
bim2sim.plugins.PluginLCA.test.integration.test_useage 3
bim2sim.plugins.PluginHKESim 1
bim2sim.plugins.PluginHKESim.bim2sim_hkesim.__init__ 1
bim2sim.plugins.PluginHKESim.bim2sim_hkesim 2
bim2sim.plugins.PluginHKESim.bim2sim_hkesim.examples.e1_simple_project_hvac_hkesim 2
bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models.__init__ 3
bim2sim.plugins.PluginHKESim.bim2sim_hkesim.models 23
bim2sim.plugins.PluginHKESim.test.integration.test_hkesim 3
bim2sim.plugins.PluginHKESim.test.unit.kernel.task.test_export 25
bim2sim.plugins.PluginTEASER 1
bim2sim.plugins.PluginTEASER.bim2sim_teaser.__init__ 1
bim2sim.plugins.PluginTEASER.bim2sim_teaser 2
bim2sim.plugins.PluginTEASER.bim2sim_teaser.sim_settings 3
bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e6_load_serialized_teaser_prj 13
bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e4_visualize_zone_binding 3
bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e2_complex_project_teaser 3
bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e1_simple_project_bps_teaser 4
bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e5_serialize_teaser_prj 6
bim2sim.plugins.PluginTEASER.bim2sim_teaser.examples.e3_load_teaser_simulation_results 4
bim2sim.plugins.PluginTEASER.bim2sim_teaser.models.__init__ 1
bim2sim.plugins.PluginTEASER.bim2sim_teaser.models 39
bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.load_modelica_results 8
bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.create_teaser_prj 16
bim2sim.plugins.PluginTEASER.bim2sim_teaser.task 1
bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.serialize_teaser_prj 4
bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.simulate_dymola_ebcpy 11
bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.create_result_df 17
bim2sim.plugins.PluginTEASER.bim2sim_teaser.task.export_teaser 6
bim2sim.plugins.PluginTEASER.bim2sim_teaser.export.__init__ 4
bim2sim.plugins.PluginTEASER.bim2sim_teaser.export 17
bim2sim.plugins.PluginTEASER.test.regression.prepare_regression_tests 2
bim2sim.plugins.PluginTEASER.test.regression.create_regression_results 1
bim2sim.plugins.PluginTEASER.test.regression.test_teaser 13
bim2sim.plugins.PluginTEASER.test.integration.test_useage 3
bim2sim.plugins.PluginTEASER.test.integration.test_teaser 11
bim2sim.plugins.PluginTEASER.test.unit.task.test_weather 9
bim2sim.plugins.PluginAixLib 1
bim2sim.plugins.PluginAixLib.bim2sim_aixlib.__init__ 1
bim2sim.plugins.PluginAixLib.bim2sim_aixlib 4
bim2sim.plugins.PluginAixLib.bim2sim_aixlib.sim_settings 2
bim2sim.plugins.PluginAixLib.bim2sim_aixlib.examples.e2_complex_project_hvac_aixlib 3
bim2sim.plugins.PluginAixLib.bim2sim_aixlib.examples.e1_simple_project_hvac_aixlib 2
bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models.__init__ 6
bim2sim.plugins.PluginAixLib.bim2sim_aixlib.models 29
bim2sim.plugins.PluginAixLib.test.regression.prepare_regression_tests 2
bim2sim.plugins.PluginAixLib.test.integration.test_aixlib 11
bim2sim.plugins.PluginAixLib.test.integration.test_usage 4
bim2sim.plugins.PluginAixLib.test.unit.kernel.task.test_export 24
bim2sim.plugins.PluginTemplate 1
bim2sim.plugins.PluginTemplate.bim2sim_template 2
bim2sim.plugins.PluginEnergyPlus 1
bim2sim.plugins.PluginEnergyPlus.setup 1
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus 2
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.sim_settings 2
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e2_complex_project_energyplus 2
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e3_load_energyplus_simulation_results 3
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.examples.e1_simple_project_energyplus 2
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_idf_postprocessing 14
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_run_simulation 10
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task 1
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_idf_cfd_export 8
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_create_idf 93
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_visualize_results 4
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.create_result_df 25
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.ep_ifc_validation 61
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.task.load_energyplus_results 8
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils.utils_visualization 40
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils 1
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils.utils_postprocessing 25
bim2sim.plugins.PluginEnergyPlus.test.regression.test_energyplus 14
bim2sim.plugins.PluginEnergyPlus.test.regression.prepare_regression_tests 2
bim2sim.plugins.PluginEnergyPlus.test.integration.test_energyplus 28
bim2sim.plugins.PluginEnergyPlus.test.integration.__init__ 1
bim2sim.plugins.PluginEnergyPlus.test.integration.test_useage 3
bim2sim.plugins.PluginEnergyPlus.test.unit.task.test_weather 9
bim2sim.kernel.log 9
bim2sim.kernel.decorators 1
bim2sim.kernel.ifc_file 7
bim2sim.kernel.decision.console 38
bim2sim.kernel.decision.__init__ 14
bim2sim.kernel.decision 26
bim2sim.kernel.decision.decisionhandler 22
bim2sim.export.modelica.standardlibrary 13
bim2sim.export.modelica.__init__ 179
bim2sim.export.modelica 23

Count per path

Name Count
bim2sim/__init__.py 1
bim2sim/sim_settings.py 36
bim2sim/project.py 32
bim2sim/__main__.py 4
bim2sim/elements/hvac_elements.py 117
bim2sim/elements/bps_elements.py 227
bim2sim/elements/base_elements.py 104
bim2sim/elements/aggregation/hvac_aggregations.py 121
bim2sim/elements/aggregation/__init__.py 14
bim2sim/elements/aggregation/bps_aggregations.py 59
bim2sim/elements/mapping/finder.py 21
bim2sim/elements/mapping/ifc2python.py 102
bim2sim/elements/mapping/condition.py 19
bim2sim/elements/mapping/units.py 10
bim2sim/elements/mapping/filter.py 41
bim2sim/elements/mapping/attribute.py 39
bim2sim/elements/graphs/hvac_graph.py 52
bim2sim/examples/__init__.py 1
bim2sim/examples/e2_interactive_project.py 6
bim2sim/examples/e1_template_plugin.py 5
bim2sim/tasks/base.py 15
bim2sim/tasks/common/check_ifc.py 48
bim2sim/tasks/common/serialize_elements.py 5
bim2sim/tasks/common/create_elements.py 42
bim2sim/tasks/common/create_relations.py 4
bim2sim/tasks/common/__init__.py 1
bim2sim/tasks/common/weather.py 16
bim2sim/tasks/common/inner_loop_remover.py 102
bim2sim/tasks/common/deserialize_elements.py 4
bim2sim/tasks/common/load_ifc.py 5
bim2sim/tasks/common/base_tasks.py 3
bim2sim/tasks/hvac/check_ifc.py 1
bim2sim/tasks/hvac/export.py 8
bim2sim/tasks/hvac/dead_ends.py 17
bim2sim/tasks/hvac/load_standardlibrary.py 2
bim2sim/tasks/hvac/make_graph.py 5
bim2sim/tasks/hvac/__init__.py 1
bim2sim/tasks/hvac/reduce.py 17
bim2sim/tasks/hvac/fixports.py 30
bim2sim/tasks/hvac/connect_elements.py 13
bim2sim/tasks/hvac/expansiontanks.py 7
bim2sim/tasks/bps/sb_creation.py 22
bim2sim/tasks/bps/enrich_use_cond.py 20
bim2sim/tasks/bps/disaggr_creation.py 30
bim2sim/tasks/bps/enrich_material.py 15
bim2sim/tasks/bps/__init__.py 1
bim2sim/tasks/bps/combine_tz.py 17
bim2sim/tasks/bps/sb_2b_generation.py 16
bim2sim/tasks/bps/plot_results.py 75
bim2sim/tasks/bps/sb_correction.py 27
bim2sim/utilities/pyocc_tools.py 24
bim2sim/utilities/visualize_spaces.py 13
bim2sim/utilities/check_docstrings.py 9
bim2sim/utilities/test.py 13
bim2sim/utilities/svg_utils.py 22
bim2sim/utilities/common_functions.py 49
bim2sim/utilities/types.py 33
bim2sim/plugins/__init__.py 7
bim2sim/plugins/PluginComfort/__init__.py 1
bim2sim/plugins/PluginComfort/bim2sim_comfort/__init__.py 2
bim2sim/plugins/PluginComfort/bim2sim_comfort/sim_settings.py 3
bim2sim/plugins/PluginComfort/bim2sim_comfort/examples/e1_simple_project_comfort_energyplus.py 2
bim2sim/plugins/PluginComfort/bim2sim_comfort/examples/e3_load_comfort_simulation_results.py 3
bim2sim/plugins/PluginComfort/bim2sim_comfort/task/ep_load_idf.py 6
bim2sim/plugins/PluginComfort/bim2sim_comfort/task/ep_comfort_visualization.py 48
bim2sim/plugins/PluginComfort/bim2sim_comfort/task/__init__.py 2
bim2sim/plugins/PluginComfort/bim2sim_comfort/task/plot_comfort_results.py 62
bim2sim/plugins/PluginComfort/bim2sim_comfort/task/create_result_df.py 18
bim2sim/plugins/PluginComfort/bim2sim_comfort/task/ep_comfort_settings.py 22
bim2sim/plugins/PluginComfort/bim2sim_comfort/utils/utils_comfort_templates.py 16
bim2sim/plugins/PluginComfort/test/regression/prepare_regression_tests.py 2
bim2sim/plugins/PluginComfort/test/regression/test_comfort.py 15
bim2sim/plugins/PluginComfort/test/integration/test_useage.py 3
bim2sim/plugins/PluginComfort/test/integration/test_comfort.py 18
bim2sim/plugins/PluginLCA/__init__.py 1
bim2sim/plugins/PluginLCA/bim2sim_lca/__init__.py 2
bim2sim/plugins/PluginLCA/bim2sim_lca/sim_settings.py 3
bim2sim/plugins/PluginLCA/bim2sim_lca/examples/e1_export_quantities_for_lca.py 2
bim2sim/plugins/PluginLCA/bim2sim_lca/task/export_lca.py 20
bim2sim/plugins/PluginLCA/test/integration/test_lca.py 4
bim2sim/plugins/PluginLCA/test/integration/test_useage.py 3
bim2sim/plugins/PluginHKESim/__init__.py 1
bim2sim/plugins/PluginHKESim/bim2sim_hkesim/__init__.py 3
bim2sim/plugins/PluginHKESim/bim2sim_hkesim/examples/e1_simple_project_hvac_hkesim.py 2
bim2sim/plugins/PluginHKESim/bim2sim_hkesim/models/__init__.py 26
bim2sim/plugins/PluginHKESim/test/integration/test_hkesim.py 3
bim2sim/plugins/PluginHKESim/test/unit/kernel/task/test_export.py 25
bim2sim/plugins/PluginTEASER/__init__.py 1
bim2sim/plugins/PluginTEASER/bim2sim_teaser/__init__.py 3
bim2sim/plugins/PluginTEASER/bim2sim_teaser/sim_settings.py 3
bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e6_load_serialized_teaser_prj.py 13
bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e4_visualize_zone_binding.py 3
bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e2_complex_project_teaser.py 3
bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e1_simple_project_bps_teaser.py 4
bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e5_serialize_teaser_prj.py 6
bim2sim/plugins/PluginTEASER/bim2sim_teaser/examples/e3_load_teaser_simulation_results.py 4
bim2sim/plugins/PluginTEASER/bim2sim_teaser/models/__init__.py 40
bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/load_modelica_results.py 8
bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/create_teaser_prj.py 16
bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/__init__.py 1
bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/serialize_teaser_prj.py 4
bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/simulate_dymola_ebcpy.py 11
bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/create_result_df.py 17
bim2sim/plugins/PluginTEASER/bim2sim_teaser/task/export_teaser.py 6
bim2sim/plugins/PluginTEASER/bim2sim_teaser/export/__init__.py 21
bim2sim/plugins/PluginTEASER/test/regression/prepare_regression_tests.py 2
bim2sim/plugins/PluginTEASER/test/regression/create_regression_results.py 1
bim2sim/plugins/PluginTEASER/test/regression/test_teaser.py 13
bim2sim/plugins/PluginTEASER/test/integration/test_useage.py 3
bim2sim/plugins/PluginTEASER/test/integration/test_teaser.py 11
bim2sim/plugins/PluginTEASER/test/unit/task/test_weather.py 9
bim2sim/plugins/PluginAixLib/__init__.py 1
bim2sim/plugins/PluginAixLib/bim2sim_aixlib/__init__.py 5
bim2sim/plugins/PluginAixLib/bim2sim_aixlib/sim_settings.py 2
bim2sim/plugins/PluginAixLib/bim2sim_aixlib/examples/e2_complex_project_hvac_aixlib.py 3
bim2sim/plugins/PluginAixLib/bim2sim_aixlib/examples/e1_simple_project_hvac_aixlib.py 2
bim2sim/plugins/PluginAixLib/bim2sim_aixlib/models/__init__.py 35
bim2sim/plugins/PluginAixLib/test/regression/prepare_regression_tests.py 2
bim2sim/plugins/PluginAixLib/test/integration/test_aixlib.py 11
bim2sim/plugins/PluginAixLib/test/integration/test_usage.py 4
bim2sim/plugins/PluginAixLib/test/unit/kernel/task/test_export.py 24
bim2sim/plugins/PluginTemplate/__init__.py 1
bim2sim/plugins/PluginTemplate/bim2sim_template/__init__.py 2
bim2sim/plugins/PluginEnergyPlus/__init__.py 1
bim2sim/plugins/PluginEnergyPlus/setup.py 1
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/__init__.py 2
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/sim_settings.py 2
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/examples/e2_complex_project_energyplus.py 2
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/examples/e3_load_energyplus_simulation_results.py 3
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/examples/e1_simple_project_energyplus.py 2
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_idf_postprocessing.py 14
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_run_simulation.py 10
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/__init__.py 1
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_idf_cfd_export.py 8
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_create_idf.py 93
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_visualize_results.py 4
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/create_result_df.py 25
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/ep_ifc_validation.py 61
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/task/load_energyplus_results.py 8
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/utils/utils_visualization.py 40
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/utils/__init__.py 1
bim2sim/plugins/PluginEnergyPlus/bim2sim_energyplus/utils/utils_postprocessing.py 25
bim2sim/plugins/PluginEnergyPlus/test/regression/test_energyplus.py 14
bim2sim/plugins/PluginEnergyPlus/test/regression/prepare_regression_tests.py 2
bim2sim/plugins/PluginEnergyPlus/test/integration/test_energyplus.py 28
bim2sim/plugins/PluginEnergyPlus/test/integration/__init__.py 1
bim2sim/plugins/PluginEnergyPlus/test/integration/test_useage.py 3
bim2sim/plugins/PluginEnergyPlus/test/unit/task/test_weather.py 9
bim2sim/kernel/log.py 9
bim2sim/kernel/decorators.py 1
bim2sim/kernel/ifc_file.py 7
bim2sim/kernel/decision/console.py 38
bim2sim/kernel/decision/__init__.py 40
bim2sim/kernel/decision/decisionhandler.py 22
bim2sim/export/modelica/standardlibrary.py 13
bim2sim/export/modelica/__init__.py 202