Skip to content

Commit

Permalink
Define assembly source file in NimbleConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
julianstirling committed Jun 20, 2024
1 parent b1f15a8 commit 03167cb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nimble_orchestration/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,14 @@ def _generate_shelf_list(self):

height_in_u += device.height_in_u
return shelves

@property
def assembly_source_file(self):
"""
This is a bit add hoc until we we work out how best to specify assemblies.
Currently we just pass a cad quey file that should pass the assembly def.
We should move away from this with classes for assemblies and sub assemblies.
"""
source = os.path.join(REL_MECH_DIR, "assembly_renderer.py")
source = posixpath.normpath(source)
return source

0 comments on commit 03167cb

Please sign in to comment.