-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(postprocess): Add handler for custom grid metrics
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from pollination_dsl.alias import InputAlias | ||
from queenbee.io.common import IOAliasHandler | ||
|
||
|
||
"""Alias for custom grid metrics used in post-processing.""" | ||
grid_metrics_input = [ | ||
InputAlias.any( | ||
name='grid_metrics', | ||
description='A JSON file with custom metrics. This can also be a ' | ||
'string or a list of grid metrics.', | ||
optional=True, | ||
platform=['grasshopper', 'rhino', 'revit'], | ||
handler=[ | ||
IOAliasHandler( | ||
language='python', | ||
module='pollination_handlers.inputs.postprocess', | ||
function='grid_metrics' | ||
) | ||
] | ||
) | ||
] |