-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adding Assembly Creation and Rendering #89
Conversation
@julianstirling I fixed the one test that I had originally roughed out. The Nimble configuration class is instantiating a |
100% that was my plan. So the configuration class should just take the name it was asked for and pass that to To be fair it probably makes sense for the configuration class to just pass the device ID to |
@julianstirling So should the |
Sorry, I meant just as in "just the device id string not the full Device class" rather than "only the id string and no other variables". I'd think that: def create_shelf_for_device(device_id: str, assembly_key:str, position:tuple[float,float,float], color:str):
if device_id in raspi_ids:
shelf_obj = RaspberryPiShelf(device_id, assembly_key, position, color)
else:
# Other shelf classes to be added
shelf_obj = Shelf(device_id, assembly_key, position, color)
return shelf_obj Then the |
I'm not sure I understand why you would recreate the device instance within |
My thought was that it is cleaner to move the creation of the Device object from I suppose the question is are we chasing our tails. My thought was that if something external can fire up a But now I see we also need to pass it the rack parameters object... However to me it makes sense for the shelf to know the rack parameters... |
I feel like I am. There is a chicken-and-egg problem with the Shelf class and the NimbleConfiguration class which will require me to make changes to code outside of my silo. I'm wondering if it would be best if you make the changes in a branch, and then I restart this PR from that branch and add the new CAD-related things to the Shelf class(es). |
I'm closing this PR since it will be superceded by a later one. |
Changes will be pushed to this branch to get assembly creation and rendering to png working.