Git Product home page Git Product logo

brails's People

Contributors

bacetiner avatar charlesxwang avatar claudioperez avatar fmckenna avatar jinyan1214 avatar saschahornauer avatar yunhuiguo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brails's Issues

'FootprintHandler' object has no attribute 'enabledBaselineInvInputTypes'

Hi. I just installed the brails package and tried the example workflow:

      `from brails.InventoryGenerator import InventoryGenerator
      
      invGenerator = InventoryGenerator(location='Berkeley, CA',
                                        fpSource='usastr',
                                        baselineInv='nsi',
                                        lengthUnit='m',
                                        outputFile='BaselineInvBerkeleyCA.geojson')
      
      invGenerator.enabled_attributes()
      
      
      invGenerator.generate(attributes='all',
                            GoogleAPIKey='mykey',
                            nbldgs=100,
                            outputFile='BldgInvBerkeleyCA.geojson')
      
      invGenerator.inventory`

I got a GoogleAPIKey and ran the code. However, I get this error:
AttributeError: 'FootprintHandler' object has no attribute 'enabledBaselineInvInputTypes'

Incorrect centroid warning.

The following warning is raised when running CityBuilder::build:

BRAILS/brails/CityBuilder.py:185: UserWarning: Geometry is in a geographic CRS. Results from 'centroid'
are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.

If this is accounted for and the result is known to be correct, the following page can be useful for singling out and silencing the warning:
https://docs.python.org/3/library/warnings.html

Required arguments with default values.

Several functions are defined with default values for required parameters (eg CityBuilder constructor).

This is leading to hard-to-find bugs and greatly impacts usability.

Address TypeError Issue with FacadeParser

for cno,cluster in enumerate(principalDirSegments):
---> xp = np.zeros((2len(cluster)))
yp = np.zeros((2
len(cluster)))
for idx, segment in enumerate(cluster):

TypeError: object of type 'numpy.int64' has no len()

API key validation

Lack of API key validation is leading to cryptic errors (eg. PIL.UnidentifiedImageError).

FacadeParser code question

in Line 107, for the variable indNot calculation, the denominator has slopeSeg instead of slopeSeg[0], as in the calculation of ind. Is this a mistake?

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.