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

Develop fix geodata vegetation warning #1020

Merged
merged 5 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion gldcore/geodata/geodata_vegetation.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def process_height(data):
"height" : process_height,
}

def apply(data, options=default_options, config=default_config, warning=print):
def apply(data, options=default_options, config=default_config, warning=lambda x:print(x,file=sys.stderr)):
"""Get the vegetation at the locations specified in data

ARGUMENTS:
Expand Down
74 changes: 37 additions & 37 deletions gldcore/scripts/autotest/path_example.csv
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
latitude,longitude,configuration,pole_height
37.415045141688054,-122.2056472090359,flat3,18.0
37.414698020593065,-122.20848749028133,sideT,20.0
37.414454093051745,-122.21044282065421,sideT,21.0
37.4142229470058,-122.21231366144505,sideT,18.0
37.41398114830695,-122.21427167402398,sideT,20.0
37.41369674090812,-122.21656764493814,sideT,18.0
37.413484766152116,-122.21826816545857,sideT,21.0
37.413211008919944,-122.22048098789332,sideT,18.0
37.41297559820373,-122.22232366549139,sideT,16.0
37.41270503474598,-122.22456062781153,sideT,21.0
37.41235883992205,-122.22736085401982,sideT,18.0
37.41211277432232,-122.2294046972871,sideT,19.0
37.41181238145044,-122.2318401430745,3pole,15.0
37.40995247538199,-122.23541150437455,3pole,16.0
37.40912057241348,-122.2377130888813,2pole,15.0
37.40789338104315,-122.24107380619942,2pole,17.0
37.407149938388855,-122.24310961753775,2pole,15.0
37.406444430121574,-122.24502537152217,3pole,17.0
37.40562303785719,-122.24443024849117,vert3,17.0
37.40455757305511,-122.24417593344417,vert3,20.0
37.403388518198085,-122.24428886555295,vert3,20.0
37.4024888290699,-122.24467711530833,vert3,20.0
37.401360606833215,-122.24566416822258,vert3,22.0
37.39986734896868,-122.24926604404577,3pole,16.0
37.39966304364653,-122.25113326423049,2pole,18.0
37.39937036342071,-122.25627439962648,2pole,22.0
37.39927723765627,-122.25794544805741,3pole,15.0
37.39881734255347,-122.26448590652335,3pole,18.0
37.3987093390758,-122.26609958926933,2pole,15.0
37.39860603125615,-122.26756943948794,3pole,18.0
37.39448377651167,-122.27062538813342,3pole,21.0
37.393064766804834,-122.27180166237235,3pole,21.0
37.39248478874903,-122.27445763837264,2pole,17.0
37.39189776185741,-122.27717370878581,2pole,21.0
37.391605029396494,-122.27859725674931,2pole,23.0
37.39170991228087,-122.28138524342816,3pole,16.0
37.388063971857704,-122.28844288884694,tower,23.0
37.41504514,-122.2056472,flat3,54
37.41469802,-122.2084875,sideT,60
37.41445409,-122.2104428,sideT,63
37.41422295,-122.2123137,sideT,54
37.41398115,-122.2142717,sideT,60
37.41369674,-122.2165676,sideT,54
37.41348477,-122.2182682,sideT,63
37.41321101,-122.220481,sideT,54
37.4129756,-122.2223237,sideT,48
37.41270503,-122.2245606,sideT,63
37.41235884,-122.2273609,sideT,54
37.41211277,-122.2294047,sideT,57
37.41181238,-122.2318401,3pole,45
37.40995248,-122.2354115,3pole,48
37.40912057,-122.2377131,2pole,45
37.40789338,-122.2410738,2pole,51
37.40714994,-122.2431096,2pole,45
37.40644443,-122.2450254,3pole,51
37.40562304,-122.2444302,vert3,51
37.40455757,-122.2441759,vert3,60
37.40338852,-122.2442889,vert3,60
37.40248883,-122.2446771,vert3,60
37.40136061,-122.2456642,vert3,66
37.39986735,-122.249266,3pole,48
37.39966304,-122.2511333,2pole,54
37.39937036,-122.2562744,2pole,66
37.39927724,-122.2579454,3pole,45
37.39881734,-122.2644859,3pole,54
37.39870934,-122.2660996,2pole,45
37.39860603,-122.2675694,3pole,54
37.39448378,-122.2706254,3pole,63
37.39306477,-122.2718017,3pole,63
37.39248479,-122.2744576,2pole,51
37.39189776,-122.2771737,2pole,63
37.39160503,-122.2785973,2pole,69
37.39170991,-122.2813852,3pole,48
37.38806397,-122.2884429,tower,69
Loading