Skip to content

summary2sqlite command saves STP paths with \n at the end, remove it #534

@dvp2015

Description

@dvp2015
>>> import pandas as pd
>>> import sqlite3 as sq
>>> con = sq.connect("trt-hall-1.3.sqlite")
>>> df = pd.read_sql("select * from cells", con)
>>> df.head()
   cell        volume  xmin  ymin  zmin  xmax  ...  zmax                                   path material  density  correction  rwcl
0     1  1.782900e+09  None  None  None  None  ...  None  /trt-hall-1.3/Component1 [m-wall1]1\n      1.0      2.2        None  None
1     2  2.009800e+09  None  None  None  None  ...  None  /trt-hall-1.3/Component1 [m-wall1]2\n      1.0      2.2        None  None
2     3  1.811900e+09  None  None  None  None  ...  None  /trt-hall-1.3/Component1 [m-wall1]3\n      1.0      2.2        None  None
3     4  1.998400e+09  None  None  None  None  ...  None  /trt-hall-1.3/Component1 [m-wall1]4\n      1.0      2.2        None  None
4     5  5.982200e+08  None  None  None  None  ...  None  /trt-hall-1.3/Component2 [m-wall2]1\n      1.0      2.2        None  None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions