-
Notifications
You must be signed in to change notification settings - Fork 3
Add accessory wind extraction pieces #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
23cfbcb
Update docstrings
ppinchuk 08069d5
Add distributed wind ordinance file
ppinchuk 5333682
Add `__init__.py`
ppinchuk a91582e
Add first pass of graphs for d wind
ppinchuk 9482f25
Move system size reminder to be technology-specific
ppinchuk 0fbb313
Rename variable
ppinchuk 4b63a56
Update name
ppinchuk d699fbb
Add initial version of parsing for dwind
ppinchuk 2c53e3b
Remove unused keys
ppinchuk 6021694
Fix system size prompt
ppinchuk 62ee376
ANother fix for system size
ppinchuk cb30ef0
Fix import
ppinchuk 82fbfa1
Update example
ppinchuk 100d508
System size fix
ppinchuk 1067ff3
No need for primary or special use districts for dwind
ppinchuk 583c6c3
Add max turbine height clarifications
ppinchuk ac94034
Add clarification about participating owners
ppinchuk de61b45
Add clarification about costs
ppinchuk e93ae1a
Add tower density for DWind
ppinchuk 6a231d6
Rename classes
ppinchuk c754840
Rename module
ppinchuk 3f22105
Add "accessory wind" as tech
ppinchuk 503daff
Merge remote-tracking branch 'origin/main' into pp/dwind
ppinchuk 4e577c2
Try to fix tests
ppinchuk e3c5a1a
Cache only on main branch
ppinchuk a2afdf6
Don't cache on branch
ppinchuk 9ba5bec
Update lockfile
ppinchuk 2f0c07b
Guard Python in the rdev env
ppinchuk d174315
Run locked tests specifically
ppinchuk 5bc1fcb
Add release instructions
ppinchuk 401ec1e
Merge remote-tracking branch 'origin/main' into pp/dwind
ppinchuk 524e3f9
Add install command to GHA
ppinchuk a0a930b
Bump elm dep
ppinchuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,49 @@ | ||
| """Accessory wind ordinance extraction utilities""" | ||
|
|
||
| from .ordinance import ( | ||
| AccessoryWindHeuristic, | ||
| AccessoryWindOrdinanceTextCollector, | ||
| AccessoryWindOrdinanceTextExtractor, | ||
| AccessoryWindPermittedUseDistrictsTextCollector, | ||
| AccessoryWindPermittedUseDistrictsTextExtractor, | ||
| ) | ||
| from .parse import ( | ||
| StructuredAccessoryWindOrdinanceParser, | ||
| StructuredAccessoryWindPermittedUseDistrictsParser, | ||
| ) | ||
|
|
||
|
|
||
| ACCESSORY_WIND_QUESTION_TEMPLATES = [ | ||
| "filetype:pdf {jurisdiction} wind energy conversion system ordinances", | ||
| "wind energy conversion system ordinances {jurisdiction}", | ||
| "{jurisdiction} wind WECS ordinance", | ||
| "Where can I find the legal text for accessory wind energy " | ||
| "turbine zoning ordinances in {jurisdiction}?", | ||
| "What is the specific legal information regarding zoning " | ||
| "ordinances for accessory wind turbines in {jurisdiction}?", | ||
| ] | ||
|
|
||
| BEST_ACCESSORY_WIND_ORDINANCE_WEBSITE_URL_KEYWORDS = { | ||
| "pdf": 92160, | ||
| "wecs": 46080, | ||
| "wind": 23040, | ||
| "zoning": 11520, | ||
| "ordinance": 5760, | ||
| r"renewable%20energy": 1440, | ||
| r"renewable+energy": 1440, | ||
| "renewable energy": 1440, | ||
| "planning": 720, | ||
| "plan": 360, | ||
| "government": 180, | ||
| "code": 60, | ||
| "area": 60, | ||
| r"land%20development": 15, | ||
| r"land+development": 15, | ||
| "land development": 15, | ||
| "land": 3, | ||
| "environment": 3, | ||
| "energy": 3, | ||
| "renewable": 3, | ||
| "municipal": 1, | ||
| "department": 1, | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.