Esempio n. 1
0
def list_fit():
    f, ferr = setup_io(2)
    with redirect_stdout(f, ferr):
        fit_interface.ListFits()
        fit_interface.ListIntegrals()
    assert ferr.getvalue().strip() == ''
    return f.getvalue().strip()
Esempio n. 2
0
def get_list(no_err=True):
    f, ferr = setup_io(2)
    with redirect_stdout(f, ferr):
        spec_interface.ListSpectra()
    if no_err:
        assert ferr.getvalue().strip() == ""
        return strip_tags(f.getvalue())
    else:
        return strip_tags(f.getvalue()), ferr.getvalue()