-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge form ForDev in a hard way. From this commit, the ForDev branch …
…becomes the main one !!!!
- Loading branch information
xavfa
committed
Apr 19, 2022
1 parent
632ab15
commit f821eec
Showing
33 changed files
with
4,195 additions
and
1,892 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 10 additions & 3 deletions
13
BuildObject/DB_Filter4Simulations.py → BuildObject/Filter4BldProcess.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
# @Author : Xavier Faure | ||
# @Email : [email protected] | ||
import CoreFiles.GeneralFunctions as GrlFct | ||
|
||
|
||
def checkBldFilter(building): | ||
def checkBldFilter(building,LogFile = [],DebugMode = False): | ||
CaseOk = len(building.BlocHeight) if building.Multipolygon else building.height | ||
msg ='' | ||
# if the building have bloc with no Height or if the hiegh is below 1m (shouldn't be as corrected in the Building class now) | ||
if len(building.BlocHeight) > 0 and min(building.BlocHeight) < 1: | ||
CaseOk = 0 | ||
msg = '[Error] The building has a given height below 1m...\n' | ||
if DebugMode: GrlFct.Write2LogFile(msg, LogFile) | ||
# is heated area is below 50m2, we just drop the building | ||
if building.EPHeatedArea < 50: | ||
CaseOk = 0 | ||
msg = '[Error] The building has a given heated area below 50m2...\n' | ||
if DebugMode: GrlFct.Write2LogFile(msg, LogFile) | ||
# is no floor is present...(shouldn't be as corrected in the Building class now) | ||
if 0 in building.BlocNbFloor: | ||
CaseOk = 0 | ||
return CaseOk | ||
msg = '[Error] The building has a given number of floor equal to 0...\n' | ||
if DebugMode: GrlFct.Write2LogFile(msg, LogFile) | ||
return CaseOk,msg |
Oops, something went wrong.