Coder Social home page Coder Social logo

Comments (5)

tmsincomb avatar tmsincomb commented on August 23, 2024

What pattern are you referring to? Did you want me to utilize LogicalPhenotype? Also, did you want me to break the file back into 2 files where one creates the transgenic_line details and then the other the cell phenotypes?

from pyontutils.

tgbugs avatar tgbugs commented on August 23, 2024
  1. In this case just the actual layout and scoping of the various parts of the code. Basically the top level control structure for neuron lang need to be in the top level of a file, not burried in a class. See for example.
    https://github.com/tgbugs/pyontutils/blob/master/pyontutils/neuron_models/huang2017.py#L14
    https://github.com/tgbugs/pyontutils/blob/master/pyontutils/neuron_models/huang2017.py#L19
    https://github.com/tgbugs/pyontutils/blob/master/pyontutils/neuron_models/huang2017.py#L337
    https://github.com/tgbugs/pyontutils/blob/master/pyontutils/neuron_models/huang2017.py#L338
    You can run all your conversion logic inside the class as you do now, its just that all the 'top level' stuff needs to actually be at the top level because of how I implemented it (sort of for a good reason to force that information into places where it is more visible).
  2. No.
  3. Yes please, name the transgenic lines file allen_transgenic_lines and stick it in the pyontutils/pyontutils folder.

from pyontutils.

tmsincomb avatar tmsincomb commented on August 23, 2024

L19. Is NeuronEBM and to create 2 different Neurons necessary then?
L337. allen_cell_types has Neuron.write() already at the end after all the Neurons were created. Unless that's not what you meant.

from pyontutils.

tgbugs avatar tgbugs commented on August 23, 2024

Ah, I was using L337 as an example of the scope of the call, which is independent of the ordering in the program, but it was clearly a bad example. You can call Neuron.write() anywhere in the program and it will do the right thing. The issue is mostly with the fact that class NeuronACT needs to be declared after Config is called and also in global scope.

from pyontutils.

tgbugs avatar tgbugs commented on August 23, 2024

This is more or less resolved, any further fixes will be via the neurondm simple rework.

from pyontutils.

Related Issues (20)

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.