Skip to content

Commit

Permalink
fix(postprocess): Add handler for custom grid metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp committed Jul 14, 2023
1 parent 0420df9 commit 6c4fa79
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pollination/alias/inputs/postprocess.py
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'
)
]
)
]

0 comments on commit 6c4fa79

Please sign in to comment.