def test_pliffy_info_set_data(pliffy_info_abd_custom_asdict): actual = utils.PliffyInfoABD( data_a=[1, 2, 3, 4, 5], data_b=[1, 4, 6, 7, 9], ci_percentage=99, design="paired", measure_units="Amplitude (Volts)", xtick_labels=utils.ABD(a="Biceps", b="Triceps", diff="Effect"), decimals=4, plot_name="arm", save=True, save_path="/home/martin/Desktop/", save_type="svg", dpi=600, marker=utils.ABD(a="*", b="v", diff="."), marker_color=utils.ABD(a="tab:red", b="tab:blue", diff="tab:green"), summary_marker_size=utils.ABD(a=6, b=4, diff=2), raw_marker_size=utils.ABD(a=6, b=5, diff=3), raw_marker_transparency=0.1, paired_data_joining_lines=False, paired_data_line_color="grey", paired_data_line_width=2, paired_line_transparency=0.3, paired_data_plot_raw_diff=False, ci_line_width=2, fontsize=12, show=False, zero_line_color="grey", zero_line_width=1, width_height_in_inches=(3.23, 3.23), ) assert actual._asdict() == pliffy_info_abd_custom_asdict
def pliffy_data_unpaired_data_paired_design(): random.seed(73) return utils.PliffyInfoABD( data_a=_make_random_data(30), data_b=_make_random_data(20), design="paired" )
def pliffy_data_bad_design(): return utils.PliffyInfoABD(data_a=[3], data_b=[6], design="not_possible")
def pliffy_data_unpaired(): random.seed(73) data = _make_random_data(50) return utils.PliffyInfoABD(data_a=data[:30], data_b=data[30:],)
def pliffy_data_paired_short(): random.seed(42) data = _make_random_data(10) return utils.PliffyInfoABD(data_a=data[:5], data_b=data[5:], design="paired",)
def pliffy_data_paired(): random.seed(42) data = _make_random_data(60) return utils.PliffyInfoABD(data_a=data[:30], data_b=data[30:], design="paired",)
def pliffy_info_abd_custom_neg_unpaired_asnamedtuple(): return utils.PliffyInfoABD(**_pliffy_info_abd_custom_neg_unpaired())
def pliffy_info_abd_custom_asnamedtuple(): return utils.PliffyInfoABD(**_pliffy_info_abd_custom())
def test_pliffy_info_defaults(pliffy_info_abd_default_asdict): actual = utils.PliffyInfoABD() assert actual._asdict() == pliffy_info_abd_default_asdict