Skip to content

Conversation

@windisch
Copy link
Contributor

A first draft for adding part dependent processings induced by a carrier_spec.

windisch added 9 commits June 16, 2025 16:00
Signed-off-by: Tobias Windisch <[email protected]>
Signed-off-by: Tobias Windisch <[email protected]>
Signed-off-by: Tobias Windisch <[email protected]>
Signed-off-by: Tobias Windisch <[email protected]>
Signed-off-by: Tobias Windisch <[email protected]>
Signed-off-by: Tobias Windisch <[email protected]>
Signed-off-by: Tobias Windisch <[email protected]>

# Validate carrier specs

for obj in self._objects.values():
Copy link
Collaborator

Choose a reason for hiding this comment

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

this 2nd for loop is technically redundant. The if clause would also work in the for loop above, wouldnt it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I first need to collect all objects and pack them into self._objects first in order to validate the spec (which checks if a given process exists). So no, I think we need two for-loops here.

Args:
name (str): Name of the Cell
part_specs (list): List of dictionaries. Each dict contain specification about a part that
carrier_specs (list): List of dictionaries. Each dict contain specification about a carrier that
Copy link
Collaborator

@peerplexit peerplexit Jun 24, 2025

Choose a reason for hiding this comment

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

"A carrier that is assembled on the carrier"? This was confusing me.

@peerplexit
Copy link
Collaborator

Using dicts makes all this really hard to follow as a newbie. If these carrier_specs prove to be successful, it could be better to hold these in some kind of factory or at least some dataclasses which are given to the source/ to the magazine instead of
dicts with custom keys.
Maybe we can discuss this in the team.

windisch and others added 4 commits July 9, 2025 14:32
@windisch windisch merged commit e769ce4 into main Jul 9, 2025
9 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.

3 participants