Skip to content

Document future object interface #194

@rploconnor

Description

@rploconnor

When I execute the following:
session.tui.solver.solve.report_plots.list()
It outputs the report plots to TUI but it appear to return the following:
<Future at 0x2175eea8808 state=running>

I would like it to return a list. Since I don't think there is any way to do it with the settings API, I am stuck using the following to generate the desired list:

reportdefs_string = session.scheme_eval.exec(('(ti-menu-load-string "solve/report-plots/list ")',))
reportdefs = reportdefs_string.split()
reportdefs.pop(0)

Is it possible to currently get the list in a cleaner way, or is this an enhancement request?

Metadata

Metadata

Assignees

Labels

documentationDocumentation related (improving, adding, etc)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions