NREL / htem-api-examples

Examples of usage of the HTEM DB API
http://htem.nrel.gov
Other
7 stars 5 forks source link

Use class methods as such #11

Closed somerandomsequence closed 6 years ago

somerandomsequence commented 6 years ago

This appears in the notebooks:

t = Library(None)
x = t.search_by_composition(...)

Since search by composition is a class method (not an instance method) you can do this (i.e., without constructing an object):

x = Library.search_by_composition(...)
meschw04 commented 6 years ago

I fixed all incidents of this. Sorry, not quite sure what I was thinking there...