BlueBrain / BluePyOpt

Blue Brain Python Optimisation Library
https://bluepyopt.readthedocs.io/en/latest/
Other
199 stars 97 forks source link

Something critical changed from 1.14.14 to 1.14.15 #501

Open SteMasoli opened 3 weeks ago

SteMasoli commented 3 weeks ago

Hi.

I have just installed Ubuntu on a new single blade and I was not able to run my optimization scripts with 1.14.16. I downgraded to 1.14.14 and everything is fine again.

I have a class that defines a custom morphology overwriting the one contained in BPO and I think is out of date with 1.14.15/16.

class GrCMorphology2020(ephys.morphologies.NrnFileMorphology):
    def __init__(self, morphology_path, do_replace_axon):

        super(GrCMorphology2020, self).__init__(morphology_path, do_replace_axon)

Which are the changes I have to do to be on par?

AurelienJaquier commented 3 days ago

Hi @SteMasoli ! Sorry for the late response, I had a few weeks off and was away. 1.14.15 introduced new optional arguments to the replace_axon() method: axon_stub_length and axon_nseg_frequency. See here for method definition. So if you are re-defining this method, be sure to also have these arguments, even if you are not using them. If you are calling replace_axon() (e.g. in instanciate()), verify that the arguments are compatible.