widesky / hszinc

Project Haystack Zinc (Zinc is not CSV) parser and dumper for Python 2.7 and 3.x
https://widesky.cloud
BSD 2-Clause "Simplified" License
10 stars 8 forks source link

ZINC parser trips up on some grids still #7

Closed sjlongland closed 8 years ago

sjlongland commented 8 years ago

I'll have to censor this before I throw it up here, but the parser can still get tripped up on some grids. Discovered whilst investigating https://github.com/ChristianTremblay/pyhaystack/issues/14

sjlongland commented 8 years ago

Seems it's the \$ that trips it up. The following grid displays the issue:

ver:"2.0" projName:"AProjName"
id,ahu,ahuGroup,disMacro,elec,elecMeterLoad,equip,equipRef,floorRef,gas,hvac,lighting,lightsGroup,meter,navName,parking,plug,regionRef,rooftop,siteMeter,sitePoint,siteRef,submeterOf,water,mod
@SiteName.EquipName "SiteName Equip Name",,,"\$foo \$bar",,@SiteName.EquipName-SubEquipName "SiteName EquipName-SubEquipName",M,,,,,,M,,"Equip Name",,,@aabbccdd-eeff0011 "A City",,,,@SiteName "SiteName",,,2016-05-04T03:02:01.987Z
sjlongland commented 8 years ago

Okay, should be fixed in version 0.1.0