Skip to content

Raise exceptions on ill-formatted actions #21

@jonrkarr

Description

@jonrkarr

Here's an example of an ill-formatted action (missing end }) that pyBioNetGen doesn't raise an exception for and doesn't parse as intended

simulate_ssa({t_start=>0,t_end=>1000000,n_steps=>1000,seed=>2);

The parsed args for the action can be accessed as below

model.actions.items[0].args

This returns this data structure

[
    ('{t_start=>0', None), 
    ('t_end=>1000000', None), 
    ('n_steps=>1000', None), 
    ('seed=>2', None)
]

The first argument is not parsed as intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions