Giter VIP home page Giter VIP logo

better's People

Contributors

abekhit avatar tsbyq 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

better's Issues

"constants" is not defined

I installed the package with the latest packageready source code with pip install . to a virtual Python environment.
When I import better as and try to run the analysis for a single building, it says "constants" is not defined.
image

I got the same issue when I try bt.demo.run_batch(1, 5).
image

Cannot accommodate spaces in parent directory name

If the Source.code.zip file contents are moved to a new directory, the code currently cannot handle directory names with spaces in them. If spaces exist, the following error occurs (in this case, parent directory was named "BETTER Source Code - CERC"):

Traceback (most recent call last):
File "demo.py", line 157, in
main()
File "demo.py", line 151, in main
run_single(bldg_id=18, saving_target=2, cached_weather=False)
File "demo.py", line 104, in run_single
report_building.generate_building_report_beta(report_path)
File "<C:\Users\31335\Desktop\BETTER Source Code - CERC\better\report.py>", line 121, in generate_building_report_beta
with open(report_file, 'w', encoding="utf-8") as report_html:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\31335\Desktop\BETTER_Source_Code_-_CERC/outputs/18
_Beijing_Office_18_report.html'

Renaming directory to "BETTER_Source_Code-CERC" solved the issue. Would be good if code could be modified to accommodate this so other users do not run into same issue.

Problems trying to installing ish_parser package

After installing Anaconda3 and python 3.7.1 on a Windows 10 machine, I downloaded the better-0.4-alpha code. The install.bat failed so I tried "python setup.py install" in Windows cmd. It failed trying to install the ish_parser package with the following message:
better cmd screenshot
e following message.

After consulting with Han Li and Ahmed Bekhit I tried to install the ish_parser using the following command "pip install ish_parser" in Windows cmd. Here is the error message:
image

After searching for a solution I came across the following thread: pypa/virtualenv#1139. I tried the suggestion to try "pip install ish_parser" in an Anaconda cmd window and was able to successfully load the ish_parser packeage.

NOAA isd-history lists stations that doesn't exist

In use_NOAA_station_list branch, the station list (isd-history) is filtered to include stations between invoices start and end dates. This makes the tool more flexible in station search rather than fixed df in Constants. However, there are some stations in isd-history that doesn't have weather data in the year directory even when end date ('END') > year.

image

How would we build a robust station list that we are sure it has data?

index out of range producing the summary report

Hi, I installed and ran the entire portfolio ID 1 to 32 already included in portfolio.xlsx.
I have all the 32 individual reports in the "output" folder but not the "sample portfolio" is incomplete (i get only the first section of the report)
I get the following error message in the console:

Traceback (most recent call last):

File "C:\Users\xxxxxx\xxxxxx\better\demo.py", line 183, in
main()

File "C:\Users\xxxxxx\xxxxxx\better\demo.py", line 180, in main
run_batch(start_id = 1, end_id = 32, saving_target=2, cached_weather=False, batch_report=True)

File "C:\Users\xxxxxx\xxxxxx\better\demo.py", line 169, in run_batch
report_portfolio.generate_portfolio_report(report_path)

File "C:\Users\xxxxxx\xxxxxx\better\report.py", line 806, in generate_portfolio_report
scatter_html = self.add_2d_scatter_plot(self.portfolio.df_bldg_summary)

File "C:\Users\xxxxxx\xxxxxx\better\report.py", line 714, in add_2d_scatter_plot
c_str = v_rgb_str[i]

IndexError: string index out of range

However, if I run a batch from building ID 1 to 31 in seems to work fine (but the last building won't be included in the portfolio report). Also it seems to work from building ID 20 to 32...
I also added a building (building ID 33) and if i run the batch from building ID 1 to 32 it also works fine...

Is it related to the previous issue : "Error in scatter plot in portfolio report #4" ?

Thanks

Weather data doesn't save

Is the intent to save the weather data locally on the computer when a simulation is done? Or the weather files have to be produced by the user and saved in the "data" folder?
I so far I ran the entire portfolio. I have been able to locate the reports in the "output" folder but there is no saved weather files in the "data" folder and is I changed the "cached_weather" option to TRUE I get the following (run_single on building ID11: run_single(bldg_id = 11, saving_target=2, cached_weather=True) )

FileNotFoundError: File b'C:\Users\xxxxx\xxxxx\Better/Data/Weather/2017/2017_726464-54834.csv' does not exist

Note: I ran the same command with the cached_weather=False previously.

Error in scatter plot in portfolio report

Traceback (most recent call last):
  File "run.py", line 13, in <module>
    run_batch(start_id = 1, end_id = 15, saving_target=2, cached_weather=False, batch_report=True)
  File "C:\better\better\demo.py", line 146, in run_batch
    report_portfolio.generate_portfolio_report(report_path)
  File "C:\better\better\report.py", line 806, in generate_portfolio_report
    scatter_html = self.add_2d_scatter_plot(self.portfolio.df_bldg_summary)
  File "C:\better\better\report.py", line 714, in add_2d_scatter_plot
    c_str = v_rgb_str[i]
IndexError: string index out of range

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.