hibtc / cpymad

Cython binding to MAD-X
http://hibtc.github.io/cpymad/
Other
27 stars 18 forks source link

Add API to query only SELECTed rows/columns from Table #99

Closed coldfix closed 3 years ago

coldfix commented 3 years ago

Resolves #98

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.2%) to 94.509% when pulling 567400acc32319bbd9a5a0b1184f12a3e8c0f6b9 on table-select into 6bae5670747b86f0e2ab3f9ed56e77607beb7f67 on master.

coldfix commented 3 years ago

@Rasimilian This PR will allow you to write:

table = madx.table.twiss.selection()

table.betx        # contains only selected rows now
table.dframe()    # contains only selected rows and columns now