-
Notifications
You must be signed in to change notification settings - Fork 24
Improves restart and TS guess handling #823
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
base: main
Are you sure you want to change the base?
Changes from all commits
9ea2bef
7ca8799
bbc9e9f
baa4c5d
15c4941
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1536,12 +1536,12 @@ def make_ts_report(self): | |||||
| self.ts_report += ':\n' | ||||||
| if self.successful_methods: | ||||||
| self.ts_report += 'Methods that successfully generated a TS guess:\n' | ||||||
| for successful_method in self.successful_methods: | ||||||
| self.ts_report += successful_method + ',' | ||||||
| unique_successful_methods = list(dict.fromkeys(self.successful_methods)) | ||||||
| self.ts_report += ','.join(unique_successful_methods) | ||||||
| if self.unsuccessful_methods: | ||||||
| self.ts_report += '\nMethods that were unsuccessfully in generating a TS guess:\n' | ||||||
|
||||||
| self.ts_report += '\nMethods that were unsuccessfully in generating a TS guess:\n' | |
| self.ts_report += '\nMethods that were unsuccessful in generating a TS guess:\n' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see this minor comment
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deduplication of TS methods in the report will cause an existing test to fail. The test in arc/species/species_test.py at line 1202-1206 expects the ts_report to contain duplicates (e.g., 'autotst,autotst,autotst,autotst,gcn,gcn,...'), but after this change, the report will show 'autotst,gcn,kinbot' instead. The test should be updated to match the new expected behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the _sanitize_restart_output method, there's no check for the existence of 'job_types' key before accessing it at line 3155. While _missing_required_paths at line 3126 uses .get() with a default value to safely access job_types, this line directly accesses self.output[label]['job_types'][job_type]. If 'job_types' doesn't exist in self.output[label], this will raise a KeyError. Consider using safe dictionary access or add a check for the existence of 'job_types' key.