-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Added new ValueError in place of assertion error for no model data provided in lsi model #3271
Conversation
…ovided in lsi model Added warning to lsi model for initialising a model with no data
Codecov Report
@@ Coverage Diff @@
## develop #3271 +/- ##
===========================================
- Coverage 81.43% 81.38% -0.06%
===========================================
Files 122 122
Lines 21052 21107 +55
===========================================
+ Hits 17144 17177 +33
- Misses 3908 3930 +22
Continue to review full report at Codecov.
|
@mpenkov could you please check why one of the builds is failing? Thank you! |
I've now corrected the file according to your suggested modifications - hope this is all ok! |
Not sure why it's still saying one change requested - the import line missing issue should now be resolved |
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.
We follow PEP8 & PEP257 in code style: no blank line after docstring; blank line after import group; more than one space before comment etc.
Plus types
doesn't seem to be defined in utils.py
. Does this code really work, did you try it?
Added space Co-authored-by: Radim Řehůřek <[email protected]>
Added import space Co-authored-by: Radim Řehůřek <[email protected]>
Added space after False Co-authored-by: Radim Řehůřek <[email protected]>
Looks good, thanks! @mpenkov what's the best way to shut up our failing flake8 CI test about this? I'd prefer to have the variable there and named – makes the code much easier to read and understand. I don't really care that the variable is unused, so what. Other than that LGTM. |
Merging. Thank you for your contribution and your patience @mark-todd ! |
Added warning to lsi model for initialising a model with no data
Fixes #3270.