-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into test_arbor_eden
- Loading branch information
Showing
104 changed files
with
2,583 additions
and
2,128 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -122,3 +122,4 @@ report*.txt | |
/utilities/tests/*.gen.c | ||
/utilities/tests/*_eden.py | ||
arm64 | ||
/*ken.sh |
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 +1,8 @@ | ||
__version__ = '0.2.7' | ||
try: | ||
import importlib.metadata | ||
|
||
__version__ = importlib.metadata.version("OSBModelValidation") | ||
except ImportError: | ||
import importlib_metadata | ||
|
||
__version__ = importlib_metadata.version("OSBModelValidation") |
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
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
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
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
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
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,34 +1,16 @@ | ||
from omv.analyzers.analyzer import OMVAnalyzer | ||
|
||
|
||
class MorphologyAnalyzer(OMVAnalyzer): | ||
|
||
def before_running(self): | ||
if 'total area' in self.expected: | ||
base = self.observable.get('base section', 'cell[0]') | ||
if "total area" in self.expected: | ||
base = self.observable.get("base section", "cell[0]") | ||
self.query = self.engine.query_area(base) | ||
|
||
def parse_expected(self): | ||
return self.expected['total area'] | ||
return self.expected["total area"] | ||
|
||
def parse_observable(self): | ||
area = float(self.engine.fetch_query(self.query)) | ||
scale = float(self.observable.get('scaling', 1)) | ||
scale = float(self.observable.get("scaling", 1)) | ||
return scale * area | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.