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
Refactor (move towards module) #55
Conversation
rename app.py to CHIME.py so the title of the page is correct update docs with new main file name add chime directory with models, presentation, and utils - for general cleaning and in preparation of making this a module. This changes pretty much everything, but I think it makes future changes easier
Also, this is forked from #54 , so hopefully I fixed those merge conflicts right 😬 |
@sam-qordoba I noticed some of the checks failing (specifically pytest). I assume this is expected but let me know if it is not. |
is there any reason to include IMO,
|
@mdbecker that looks like a placeholder test to me - should I change the test? |
@luminoso I agree with this, but I think it should be reported as a separate ticket. This PR is already much bigger than I like, and that is a semantically distinct action item. EDIT: I made a ticket, #84 |
trying to make this as small as possible 😬 not succeeding
without dynamically creating files every time. We just need a way for Heroku to tell the app what port to run on, and this does that. Sorry, I am the one who broke it, because I forgot that heroku isn't like docker, with port mapping
use the name for the main folder, since is ambiguous - do you mean top level, or next level in? So, call it .
I am not 100% sure why this works. But when you call pytest by itself, it can't find the penn_chime folder.
This PR is back to being reading to merge. I fixed the merge conflicts, and got the new code merged in 🤞Summary of changes since last nightSo, to minimize changes, I renamed it back to I added the manual testing policy as a MD file, and will run through it one last time before signing off. I added some actual tests to The only changes, on top of the refactor, are
Overall summary of this PR
There is still some logic mixed with presentation in |
Actually, this fixes #75 as well, except for a few E501s, which I think are unavoidable as we are writing markdown directly in Python. I set up my local editor to ignore this one error type, if it comes from the We can tell the linter not to care about this one error, but in general it is an okay rule. @garysieling does that work for you? |
Just completed a second pass on the manual tests. Found one minor merge error which I'll push a fix for shortly. Merge incoming after a very quick code review. |
This undid the graph granularity issue. The good news is that I can very easily fix it in the code and will merge a code review for it shortly. |
Hi @fbenamy. It must be the lack of sleep but I'm not following how the granularity issue pertains to this PR. Let's discuss on slack if you have a chance. I'm going to merge this soon if I could get one more review That would be great! |
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'm worried about the Procfile changes but we need this immediately so I approve.
After talking with @fbenamy it sounds like we might have missed something from master in this PR. Working on that now. |
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 refactoring looks great.
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.
Looks great! Unbelievable work everyone!
Closes #19
Makes progress towards #4
Closes #76 (or maybe more documentation is needed to fully close #76 - ping @mariekers )
Also, IMO, makes future changes easier by separating (as much as is possible with Streamlit) presentation and logic.
It would be nice to get confirmation from a Data Scientist and a more Front-endy person that these changes work for them. Also, sorry if this goes too far, I'm not trying to be a jerk. If we are going to make this pip-installable, per #4, a lot of this seems needed to me.