bsyncpy's People
bsyncpy's Issues
WeatherDataStationID not Available at Building or Site Level
Posting here to track
self = <bsync.bsync.Buildings.Building object at 0x11cc6d8d0>, value = <bsync.bsync.WeatherDataStationID object at 0x12788f0d0>
def __add__(self, value):
"""Add an element value by finding the child element name with the
correct class. Return this element so other child element values can
be added like 'thing + Child1() + Child2()'.
"""
for child_name, child_type in self.element_children:
if isinstance(value, child_type):
break
else:
child_type_names = list(
child_type.__name__ for child_name, child_type in self.element_children
)
> raise ValueError(f"expecting one of: {', '.join(child_type_names)}")
E ValueError: expecting one of: PremisesName, PremisesNotes, PremisesIdentifiers, Address, ClimateZoneType, eGRIDRegionCode, Longitude, Latitude, BuildingClassification, OccupancyClassification, OccupancyLevels, TypicalOccupantUsages, SpatialUnits, Ownership, OwnershipStatus, PrimaryContactID, TenantIDs, NAICSCode, PubliclySubsidized, FederalBuilding, PortfolioManager, NumberOfBusinesses, FloorsAboveGrade, FloorsBelowGrade, ConditionedFloorsAboveGrade, ConditionedFloorsBelowGrade, UnconditionedFloorsAboveGrade, UnconditionedFloorsBelowGrade, BuildingAutomationSystem, LightingAutomationSystem, HistoricalLandmark, FloorAreas, AspectRatio, Perimeter, TotalExteriorAboveGradeWallArea, TotalExteriorBelowGradeWallArea, OverallWindowToWallRatio, OverallDoorToWallRatio, HeightDistribution, HorizontalSurroundings, VerticalSurroundings, Assessments, YearOfConstruction, YearOccupied, YearOfLastEnergyAudit, RetrocommissioningDate, YearOfLatestRetrofit, YearOfLastMajorRemodel, PercentOccupiedByOwner, PercentLeasedByOwner, NumberOfFacilitiesOnSite, OperatorType, Sections, UserDefinedFields
Lock Down Module Version to BuildingSync Version
Since the bsync.py
and bsyncpy_header.py
are generated for a specific version of the BuildingSync schema, the version attribute in the BuildingSync
element should correspond to the XSD released version.
xs:extension processing
Given an element like this:
<xs:element name="CeilingArea" minOccurs="0">
<xs:annotation>
<xs:documentation>Surface area of roof. (ft2)</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute ref="auc:Source"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
The CeilingArea
class should have a "Source" attribute in the aux:
namespace.
This replaces the "more to do ***" debug line.
`auc:` namespace (discussion)
The <xs:schema>
element is this:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:auc="http://buildingsync.net/schemas/bedes-auc/2019"
xmlns:gbxml="http://www.gbxml.org/schema"
targetNamespace="http://buildingsync.net/schemas/bedes-auc/2019"
elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.4.0">
Is there a reason for the auc:
namespace declaration since it's the same as the target namespace?
xs:int generated instead of xs:integer
The value type for the following are generated incorrectly and therefore values can't be set:
- TOUNumberForRateStructure
- Story
Update python library to BSync 2.4
BSyncpy needs to be regenerated for Schema Version 2.4. (Note that it also fails for 2.3.)
Datetime not processing correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.