Skip to content

Fix "everything 3-phase" mistake & regroup around models#4

Merged
vfinel merged 3 commits intovfinel:developfrom
nobodies-collective:vperron/good-catch-harry
Mar 5, 2026
Merged

Fix "everything 3-phase" mistake & regroup around models#4
vfinel merged 3 commits intovfinel:developfrom
nobodies-collective:vperron/good-catch-harry

Conversation

@vperron
Copy link
Copy Markdown
Collaborator

@vperron vperron commented Mar 5, 2026

Code is hopefully way clearer now. There might still be bugs 😨

vperron added 3 commits March 5, 2026 09:40
We always resolved cables to be 3P, whatever the cable :/

It occurred to me that the code was STILL quite difficult to read so I
also built a little more on top of the dataclasses to leverage more
object-oriented goodness
Comment thread tests/test_optimize.py
assert round(total_length[32]) == 1209
assert round(total_length[63]) == 68
assert round(total_length[125]) == 60
assert round(sum(c.length_m for c in cables)) == 2479
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be clear these numbers are for the nodes currently on the colocaion map (that I got the numbers from) which are probably wrong / some loads would have been transferred to other grids / are overestimated, and so on

@vfinel vfinel merged commit 5e2fc18 into vfinel:develop Mar 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants