Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Add a “Getting Started” Section in README #436

Open
jmrocha opened this issue Jan 8, 2024 · 0 comments
Open

Suggestion: Add a “Getting Started” Section in README #436

jmrocha opened this issue Jan 8, 2024 · 0 comments

Comments

@jmrocha
Copy link

jmrocha commented Jan 8, 2024

A “Getting Started” section in the README file could be a powerful way to show, in less than five minutes, what eppy can be useful for and how to use it. It could capture the reader's interest encouraging them to invest their time to delve deeper into understanding and learning more about this package.

An example:

Getting Started

Install eppy

pip install eppy

Read an .idf file and update the name of the building object

import eppy

# set idd and idf files
eppy.IDF.setiddname('in.idd')
idf = eppy.IDF('in.idf')

# get the building object
building = idf.idfobjects['BUILDING'][0]
building.Name = 'Empire State Building'

# save changes
idf.save()

Print IDF objects

# print the building's name
building = idf.idfobjects['BUILDING'][0]
print(building.Name)

# print surfaces
surfaces = idf.idfobjects['BUILDINGSURFACE:DETAILED']
for surface in surfaces:
    print(f'{surface.azimuth=}, {surface.tilt=}, {surface.area=}')

# print the entire idf
idf.printidf()

Add a new material

idf.newidfobject('MATERIAL')
material = materials[-1]
material.Name = 'F08 Metal Surface'
material.Roughness = 'Smooth'
material.Thickness = 0.0008
material.Conductivity = 45.28
material.Density = 7824
material.Specific_Heat = 500 

idf.save()

See more at https://eppy.readthedocs.io/en/latest/Main_Tutorial.html.

@jmrocha jmrocha changed the title Suggestion: Add a “Getting Started” section in README Suggestion: Add a “Getting Started” Section in README Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant