Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Add create filter utility #1107

Merged
merged 5 commits into from
Mar 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Create create_filter.py
  • Loading branch information
dchassin committed Feb 28, 2022
commit ebaaa9af2efb3bb565cdcaa540a26a14588ebaf1
45 changes: 45 additions & 0 deletions python_extras/create_filter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
"""Create filter tool

SYNOPSIS

Shell:

bash$ gridlabd create_filter NAME NUMERATOR DENOMINATOR [OPTIONS ...]

GLM:

#create_filter NAME NUMERATOR DENOMINATOR [OPTIONS ...]

Options:

`[-c|--continuous]`: flag to indicate numerator and denominator are in continuous time

`[-m|--minimum=MINIMUM]`: specify the minimum output value (default is none)

`[-M|--maximum=MAXIMUM]`: specify the maximum output value (default is none)

`[-o|--output=GLMFILE]`: specify the output GLM file name (default is `/dev/stdout`)

`[-r|--resolution=RESOLUTION]`: specify the output resolution (default is none)

`[-s|--skewtime=SKEW]`: specify the time skew (default is 0)

`[-t|--timestep=TIMESTEP]`: specify the time step (default is 1s)

DESCRIPTION

The `create_filter` tool creates filter for use as inputs to GridLAB-D object
properties.

EXAMPLE

The following example creates a filter, from a second-order continuous-time
model, with 8 bits of resolution and a dynamic range of (0,1):

bash% gridlabd create_filter test 1 1,0.2 -c -r=8 -m=0 -M=1
TODO

SEE ALSO

* [[/Utilities/Fit_filter]]
"""