Skip to content

Ensure attributes & elements can have sinular/plural equivalents generated #46

Open

Description

@pgleeson

e.g. see https://github.com/NeuralEnsemble/libNeuroML/blob/development/neuroml/examples/ion_channel_generation.py

Should be
doc.ion_channels.append(chan)
not
doc.ion_channel.append(chan)

Activity

  1. pgleeson commented on Feb 21, 2014

    @pgleeson
    MemberAuthor

    This is due to this line:

    NameTable['ionChannel'] = 'ion_channel'

    needed to ensure attribute ionChannel in ChannelDensity becomes ion_channel

  2. vellamike commented on Feb 24, 2014

    @vellamike
    Contributor

    Could you explain this issue Padraig? It should either be singular or
    plural, there shouldn't be the choice. Shouldn't 'ion_channel' just be
    changed to 'ion_channels' ?

    On 21 February 2014 18:10, Padraig Gleeson notifications@github.com wrote:

    This is due to this line:

    NameTable['ionChannel'] = 'ion_channel'

    needed to ensure attribute ionChannel in ChannelDensity becomes ion_channel

    Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-35756888
    .

  3. sanjayankur31 commented on Jun 18, 2021

    @sanjayankur31
    Contributor

    I see ion_channel but ion_channel_hhs etc. so I think this is still an issue.

    Note: I think making this change will change the signature of the NeuroMLDocument constructor etc., so this will be a backwards incompatible breaking change which will need to be clearly announced with an appropriate version bump + changelog entry etc..

  4. removed their assignment
    on Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions