Skip to content

Remove concept of "instances"#53

Merged
tbittar merged 6 commits intomainfrom
remove-instances
Sep 18, 2024
Merged

Remove concept of "instances"#53
tbittar merged 6 commits intomainfrom
remove-instances

Conversation

@sylvlecl
Copy link
Member

@sylvlecl sylvlecl commented Sep 9, 2024

Description

First work towards simplification:

  • remove ranges on time shifts and evals
  • ranges are direct arguments of time sum
  • remove enumeration of timesteps completely
  • time sum on all block is separated from time sum on sub range
    (quite different because it changes the time granularity)

Allows to clarify concepts and code a bit.

The only place ranges are allowed is now in time sum,
not any more in the too large time shift operator.
For now we remove the possibility to have multiple
explicit indices in a sum, it's not actually used.

Signed-off-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com>
Only printing remains to update

Signed-off-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com>
Signed-off-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com>
Signed-off-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com>
Signed-off-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com>


@dataclass(frozen=True)
class TimeExpansion:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Resolution rather than Expansion not to mix with Xpansion ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Since those objects are temporary (should be removed soon), I propose to leave it this way here.

However the word is used also in the PR about "operators expansion", we can think of another name there (although I find it quite appropriate !).

Signed-off-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com>
@tbittar tbittar merged commit fb635a9 into main Sep 18, 2024
@tbittar tbittar deleted the remove-instances branch September 18, 2024 14:48
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