Skip to content

Commit

Permalink
fix: failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed May 16, 2024
1 parent a18d75a commit 1de8f44
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,116 +197,29 @@ def test():
"safeds.data.tabular.containers.Table.from_csv_file",
Table.from_csv_file,
[safeds_runner.absolute_path('abc.csv')],
{},
{"separator": ','},
[safeds_runner.file_mtime('abc.csv')]
)
safeds_runner.save_placeholder('a', __gen_a)
__gen_receiver_10 = safeds_runner.memoized_static_call(
"safeds.data.tabular.containers.Table.from_csv_file",
Table.from_csv_file,
[safeds_runner.absolute_path('abc.csv')],
{},
[safeds_runner.file_mtime('abc.csv')]
)
__gen_a2 = safeds_runner.memoized_dynamic_call(
__gen_receiver_10,
"remove_columns",
[['u']],
{},
[]
)
safeds_runner.save_placeholder('a2', __gen_a2)
__gen_receiver_11 = __gen_a
__gen_receiver_10 = __gen_a
__gen_v = safeds_runner.memoized_dynamic_call(
__gen_receiver_11,
__gen_receiver_10,
"get_column",
['b'],
{},
[]
)
safeds_runner.save_placeholder('v', __gen_v)
__gen_receiver_12 = __gen_v
__gen_receiver_11 = __gen_v.plot
__gen_d = safeds_runner.memoized_dynamic_call(
__gen_receiver_12,
"plot_histogram",
__gen_receiver_11,
"histogram",
[],
{"number_of_bins": 10},
{"maximum_number_of_bins": 10},
[]
)
safeds_runner.save_placeholder('d', __gen_d)
__gen_receiver_13 = __gen_a
__gen_receiver_14 = safeds_runner.memoized_dynamic_call(
__gen_receiver_13,
"get_column",
['b'],
{},
[]
)
__gen_p = safeds_runner.memoized_dynamic_call(
__gen_receiver_14,
"plot_histogram",
[],
{"number_of_bins": 10},
[]
)
safeds_runner.save_placeholder('p', __gen_p)
__gen_receiver_15 = __gen_a
__gen_receiver_16 = safeds_runner.memoized_dynamic_call(
__gen_receiver_15,
"get_column",
['b'],
{},
[]
)
__gen_receiver_17 = safeds_runner.memoized_dynamic_call(
__gen_receiver_16,
"plot_histogram",
[],
{"number_of_bins": 10},
[]
)
__gen_r = safeds_runner.memoized_dynamic_call(
__gen_receiver_17,
"flip_vertically",
[],
{},
[]
)
safeds_runner.save_placeholder('r', __gen_r)
__gen_receiver_18 = __gen_a
__gen_receiver_19 = safeds_runner.memoized_dynamic_call(
__gen_receiver_18,
"get_column",
['b'],
{},
[]
)
__gen_receiver_20 = safeds_runner.memoized_dynamic_call(
__gen_receiver_19,
"plot_histogram",
[],
{"number_of_bins": 10},
[]
)
__gen_receiver_21 = safeds_runner.memoized_dynamic_call(
__gen_receiver_20,
"flip_vertically",
[],
{},
[]
)
__gen_q = safeds_runner.memoized_dynamic_call(
__gen_receiver_21,
"adjust_contrast",
[1.2],
{},
[]
)
safeds_runner.save_placeholder('q', __gen_q)
f(__gen_d)
f(__gen_p)
f(__gen_r)
f(__gen_q)
f(safeds_runner.memoized_static_call(
"tests.generator.memberAccessWithRunnerIntegration.Outer.Nested.f",
Outer.Nested.f,
Expand All @@ -322,34 +235,34 @@ def test():
[]
)
safeds_runner.save_placeholder('nestedInstance', __gen_nestedInstance)
__gen_receiver_22 = __gen_nestedInstance
__gen_receiver_12 = __gen_nestedInstance
__gen_nestedResult = safeds_runner.memoized_dynamic_call(
__gen_receiver_22,
__gen_receiver_12,
"g",
[],
{},
[]
)
safeds_runner.save_placeholder('nestedResult', __gen_nestedResult)
f(__gen_nestedResult)
__gen_receiver_23 = safeds_runner.memoized_static_call(
__gen_receiver_13 = safeds_runner.memoized_static_call(
"safeds.data.tabular.transformation.OneHotEncoder",
OneHotEncoder,
[],
{},
{"separator": '__'},
[]
)
__gen_encoder = safeds_runner.memoized_dynamic_call(
__gen_receiver_23,
__gen_receiver_13,
"fit",
[__gen_a, ['b']],
{},
[]
)
safeds_runner.save_placeholder('encoder', __gen_encoder)
__gen_receiver_24 = __gen_encoder
__gen_receiver_14 = __gen_encoder
__gen_transformedTable = safeds_runner.memoized_dynamic_call(
__gen_receiver_24,
__gen_receiver_14,
"transform",
[__gen_a],
{},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,9 @@ pipeline test {
f(C.p().j(213));
f(C.from_csv_file("abc.csv"));
val a = Table.fromCsvFile("abc.csv");
val a2 = Table.fromCsvFile("abc.csv").removeColumns(["u"]);
val v = a.getColumn("b");
val d = v.plotHistogram();
val p = a.getColumn("b").plotHistogram();
val r = a.getColumn("b").plotHistogram().flipVertically();
val q = a.getColumn("b").plotHistogram().flipVertically().adjustContrast(1.2);
val d = v.plot.histogram();
f(d);
f(p);
f(r);
f(q);
f(Outer.Nested.f());
val nestedInstance = factoryNested();
val nestedResult = nestedInstance.g();
Expand Down

0 comments on commit 1de8f44

Please sign in to comment.