def test_launch_app_around_df_control_plotter_layout(self): main(target=self.df, ui_kind=None, include_plotter=True, plotter_layout="HSplit") main(target=self.df, ui_kind=None, include_plotter=True, plotter_layout="Tabbed")
def test_launch_app_around_hdf_file2(self): self.filename += ".hdf" self.df.to_hdf(self.filename, key="data") main(target=self.filename, ui_kind=None, read_func_kw={"key": "data"})
def test_launch_app_around_excel2_file_custom_sheet(self): self.filename += ".xlsx" self.df.to_excel(self.filename, sheet_name="foo") main(target=self.filename, ui_kind=None, read_func_kw={"sheet_name": "foo"})
def test_launch_app_around_excel2_file(self): self.filename += ".xlsx" self.df.to_excel(self.filename) main(target=self.filename, ui_kind=None)
def test_launch_app_around_csv_file(self): self.filename += ".csv" self.df.to_csv(self.filename) main(target=self.filename, ui_kind=None)
def test_launch_app_around_df_include_plotter(self): main(target=self.df, ui_kind=None, include_plotter=True)
def test_launch_app_around_df_default(self): main(target=self.df, ui_kind=None)
from pybleau.app.api import main LEN = 16 initialize_logging(logging_level="DEBUG") TEST_DF = DataFrame({ "axial disp": [1, 2, 3, 4] * (LEN // 4), "break point": [1, 2, 3, 4] * (LEN // 4), # As above but no nan inserted below: "break point2": sorted([1, 2, 3, 4] * (LEN // 4)), "correlation": range(1, LEN + 1), "disposed batch": random.choice(list("abc"), size=LEN), "efficiency": random.randn(LEN), "final yield": random.randn(LEN), "gain": random.randn(LEN), # Highly repetitive column to split the entire data into 2 "handled": array([0, 1] * (LEN // 2), dtype=bool), # Same as above but as a string: "intercepted": array(["F", "T"] * (LEN // 2)), "jump": sorted(list("abcdefgh") * 2), "kill": sorted(list("abcd") * 4), "run_name": list("abcdefghijklmnop"), }) TEST_DF.iloc[-1, 1] = nan view_kw = dict(include_plotter=True, plotter_layout="HSplit") main(TEST_DF, **view_kw)