-
Notifications
You must be signed in to change notification settings - Fork 33
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
HFT integration -> master #255
Conversation
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.
LGTM, only two suggestions for types on the main functions params/returns.
* do quotes * change quotes in hft model.py * some more quotes * another one
* keep log file scrolled to bottom * stage status stuff * remove commented lines * avoid index out of range error when getting results * remove a print * remove stage logs from error handling bit * still faililng * more things
elpis/engines/kaldi/objects/model.py
Outdated
self.config['stage_count'] = self.config['stage_count'] + 1 | ||
except CalledProcessError as error: | ||
with open(stage_log_path, 'a+') as file: | ||
with open(self.run_log_path, 'a+') as file: | ||
print('stderr', error.stderr, file=file) | ||
print('failed', file=file) | ||
print(f"Stage {stage} failed") | ||
self.stage_status = (stage, 'failed', '', 'LOG-C') |
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.
I think this will cause an error after the refactor which removes the final two arguments from this setter.
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.
well spotted. I've removed the two final.
self.stage_status = (stage, 'failed')
🎉