mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
Typo fix
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
# Dependency and build folders created by the build scripts
|
# Dependency and build folders created by the build scripts
|
||||||
|
/_build-vs2017-x64/
|
||||||
|
/_deps-vs2017-x64-installed/
|
||||||
|
/_deps/
|
||||||
/deps*/
|
/deps*/
|
||||||
/build*/
|
/build*/
|
||||||
/install*/
|
/install*/
|
||||||
@@ -23,3 +26,5 @@ __pycache__
|
|||||||
*.mo
|
*.mo
|
||||||
# Vim
|
# Vim
|
||||||
*.swp
|
*.swp
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -197,10 +197,10 @@ class specification:
|
|||||||
phrases[0].tagName == "applicability" or error("expected <applicability>")
|
phrases[0].tagName == "applicability" or error("expected <applicability>")
|
||||||
phrases[1].tagName == "requirements" or error("expected <requirements>")
|
phrases[1].tagName == "requirements" or error("expected <requirements>")
|
||||||
|
|
||||||
self.applicabiliy, self.requirements = (boolean_and(parse_rules(phrase)) for phrase in phrases)
|
self.applicability, self.requirements = (boolean_and(parse_rules(phrase)) for phrase in phrases)
|
||||||
|
|
||||||
def __call__(self, inst, logger):
|
def __call__(self, inst, logger):
|
||||||
if self.applicabiliy(inst, logger):
|
if self.applicability(inst, logger):
|
||||||
valid = self.requirements(inst, logger)
|
valid = self.requirements(inst, logger)
|
||||||
if valid:
|
if valid:
|
||||||
logger.info(str(self) + "\n%s has" % inst + " " + str(valid) + " so is compliant")
|
logger.info(str(self) + "\n%s has" % inst + " " + str(valid) + " so is compliant")
|
||||||
@@ -208,7 +208,7 @@ class specification:
|
|||||||
logger.error(str(self) + "\n%s has" % inst + " " + str(valid) + " so is not compliant")
|
logger.error(str(self) + "\n%s has" % inst + " " + str(valid) + " so is not compliant")
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "Given an instance with %(applicabiliy)s\nWe expect %(requirements)s" % self.__dict__
|
return "Given an instance with %(applicability)s\nWe expect %(requirements)s" % self.__dict__
|
||||||
|
|
||||||
|
|
||||||
class ids:
|
class ids:
|
||||||
|
|||||||
Reference in New Issue
Block a user