refact: move Transformation to flux model

This commit is contained in:
2025-01-05 15:43:29 +01:00
parent 9a5c581f31
commit e4af62b136
4 changed files with 20 additions and 24 deletions

View File

@@ -1,7 +1,6 @@
from plesna.compute.consume_flux import consume_flux
from plesna.models.flux import Flux
from plesna.models.flux import Flux, Transformation
from plesna.models.storage import Table
from plesna.models.transformation import Transformation
def test_consume_flux():
@@ -24,7 +23,7 @@ def test_consume_flux():
flux = Flux(
sources=sources,
targets=targets,
transformation=Transformation(function=func, extra_kwrds={"extra": "super"}),
transformation=Transformation(name="func", function=func, extra_kwrds={"extra": "super"}),
)
meta = consume_flux(flux)