Skip to content

Clear bob files from screen directory #312

@shihab-dls

Description

@shihab-dls

Currently, fastCS services PVCs that contains the generated bob files keeps old files. It would be nice to generate new bob files in a temp directory, then delete bob files in the PVC once the new bob files have successfully been generated, then move the new bob files over, upon IOC start-up. This would require a change inserted into:

    def create_gui(self, options: EpicsGUIOptions | None = None) -> None:
        if options is None:
            options = EpicsGUIOptions()

        if options.file_format is EpicsGUIFormat.edl:
            logger.warning("FastCS may not support all widgets in .edl screens")

        assert options.output_path.suffix == options.file_format.value
        options.output_path.parent.mkdir(parents=True, exist_ok=True)

        components = self.extract_api_components(self._controller_api)
        device = Device(label=options.title, children=components)

        formatter = DLSFormatter()
        formatter.format(device, options.output_path.resolve())

Acceptance Criteria

  • Screens directory is appropriately cleared at start-up

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions