def transform(x: ProcessBuilder) -> ProcessBuilder: return cos(x.absolute()) + 1.23
def test_apply_callback_chain_lambda_mixed_and_operator(con100): im = con100.load_collection("S2") from openeo.processes import cos result = im.apply(lambda data: cos(data.absolute()) + 1.23) assert result.graph == load_json_resource('data/1.0.0/apply_chain.json')
def transform(x: ProcessBuilder) -> ProcessBuilder: return add(cos(absolute(x)), y=1.23)
def test_apply_callback_chain_lambda_functions(con100): im = con100.load_collection("S2") from openeo.processes import absolute, cos, add result = im.apply(lambda data: add(cos(absolute(data)), 1.23)) assert result.graph == load_json_resource('data/1.0.0/apply_chain.json')