diff --git a/project.py b/project.py index 37ae09f..5265dab 100644 --- a/project.py +++ b/project.py @@ -273,10 +273,7 @@ class Project: return commit_info["workflow_url"] def is_analog_design(self) -> bool: - if self.is_user_project: - return len(self.info.pinout.ua) > 0 - else: - return self.read_commit_info_json().get("analog", False) + return len(self.info.pinout.ua) > 0 def get_workflow_url(self): GITHUB_SERVER_URL = os.getenv("GITHUB_SERVER_URL") diff --git a/shuttle.py b/shuttle.py index 047a211..6d93139 100644 --- a/shuttle.py +++ b/shuttle.py @@ -48,13 +48,13 @@ class ShuttleConfig: tiles = project.info.tiles width, height = map(int, tiles.split("x")) if project.unprefixed_name not in configured_macros: - module_config["modules"].append( - { - "name": project.unprefixed_name, - "width": width, - "height": height, - } - ) + module_entry = { + "name": project.unprefixed_name, + "width": width, + "height": height, + "analog": {i: None for i in range(len(project.info.pinout.ua))}, + } + module_config["modules"].append(module_entry) with open("tt-multiplexer/cfg/modules.yaml", "w") as mux_modules_file: yaml.dump(module_config, mux_modules_file)