(self, ssid)
| 1796 | logger.error(f"Error loading images from actions file: {e}") |
| 1797 | |
| 1798 | # Load image series dynamically from subdirectories |
| 1799 | self.image_series = {} |
| 1800 | for status in self.status_list: |
| 1801 | self.image_series[status] = [] |
| 1802 | status_dir = os.path.join(self.statuspicdir, status) |
| 1803 | if not os.path.isdir(status_dir): |
| 1804 | os.makedirs(status_dir) |
| 1805 | logger.warning(f"Directory {status_dir} did not exist and was created.") |
| 1806 | logger.warning(f" {status} wil use the IDLE images till you add some images in the {status} folder") |
| 1807 | |
| 1808 | for image_name in os.listdir(status_dir): |
| 1809 | if image_name.endswith('.bmp') and re.search(r'\d', image_name): |
no test coverage detected