Giter VIP home page Giter VIP logo

bsyncpy's People

Contributors

corymosiman12 avatar haneslinger avatar jiexiong9119 avatar joelbender avatar macintoshpie avatar nllong avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.