Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify ESDL connection to Tulipa flows, and back #2

Closed
3 tasks done
suvayu opened this issue Jun 18, 2024 · 2 comments
Closed
3 tasks done

Simplify ESDL connection to Tulipa flows, and back #2

suvayu opened this issue Jun 18, 2024 · 2 comments

Comments

@suvayu
Copy link
Member

suvayu commented Jun 18, 2024

In ESDL 2 assets are connected via a transport asset, whereas Tulipa prefers direct connection between assets due to efficiency reasons. We need to find:

@suvayu suvayu assigned suvayu and unassigned wcoenraads Jul 2, 2024
@suvayu suvayu changed the title Simplify ESDL connection to Tulipa flows Simplify ESDL connection to Tulipa flows, and back Jul 2, 2024
@clizbe
Copy link
Member

clizbe commented Jul 15, 2024

I think the first step is determining what data Tulipa needs for the connection and where that data can be entered in the MapEditor.

@suvayu
Copy link
Member Author

suvayu commented Jul 15, 2024

For now I implemented what @datejada suggested here: #1 (comment)

Code wise, it's this:

@dataclass(unsafe_hash=True)
class _producer_t(AssetData): # noqa: D101
investment_cost: float | None = None
variable_cost: float | None = None
lifetime: float | None = None

@dataclass(unsafe_hash=True)
class flow_t(_producer_t): # noqa: D101
from_asset: str = ""
to_asset: str = ""
capacity: float | None = None
efficiency: float | None = None

The attributes you see above are the Tulipa names, and the ESDL names are recorded in the esdl_key method (click the links aobve). Essentially I skipped anything for which we haven't associated an ESDL attribute in the table in #1

@suvayu suvayu closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants