Skip to content

[BUG] - _add_symbol_to_cell_input fails if the first row of cell definition doesn't contain at least cell number, material and density (if present) #105

@AlbertoBittes

Description

@AlbertoBittes

Describe the bug
_add_symbol_to_cell_input assumes that the first line of cell definition includes the material and the density(if cell is not void) of the cell:

        if parentheses:
            if new_cell.get_m() == 0:
                first_row[1] = first_row[1] + " ("
            else:
                first_row[2] = first_row[2] + " ("

In fact, the method assumes that first_row is a list with 2 or 3 elements depending on void/material cell.
In principle one could define only the cell number in the first row and go newline to define everything else. This is very unlikely however.

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