scidash / neuronunit

A package for data-driven validation of neuron and ion channel models using SciUnit
http://neuronunit.scidash.org
38 stars 24 forks source link

Way to check class capabilities without instantiating it #203

Closed NeZanyat closed 5 years ago

NeZanyat commented 5 years ago

Sometimes I need to retrieve capabilities from model but I don't need to instantiate it, I used some generic model file, but it's not always works with some models. Is there a way to do this?

NeZanyat commented 5 years ago

To retrieve capabilities I use capabilities property.

rgerkin commented 5 years ago

The current capabilities attribute is an instance-level attribute, but looking at the code it could be made class-level by removing class from the one line in that capabilites method.

NeZanyat commented 5 years ago

Could I change it in dash branch?

rgerkin commented 5 years ago

Yes, go ahead. Open a PR and I will approve it.

rgerkin commented 5 years ago

Implemented in #212.