Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Three column page#27

Open
Will-Shanks wants to merge 5 commits into
masterfrom
3col
Open

Three column page#27
Will-Shanks wants to merge 5 commits into
masterfrom
3col

Conversation

@Will-Shanks

Copy link
Copy Markdown
Owner

No description provided.

@pep8speaks

pep8speaks commented Feb 24, 2020

Copy link
Copy Markdown

Hello @Will-Shanks! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-03-11 22:30:34 UTC

@Will-Shanks Will-Shanks linked an issue Feb 24, 2020 that may be closed by this pull request

@JadeWibbels JadeWibbels left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There has been some changes to master. You will want to merge master back into branch asap to keep new code up to date.

@Will-Shanks

Copy link
Copy Markdown
Owner Author

When this code was moved from the task2 branch to its own, the new branch was created off master. This means you don't need to worry about merging master into this branch, you just need to use the functionality provided by the code base already, namely the 2 functions provided by DayToDF.py (get_df and iter_df)

@Will-Shanks

Copy link
Copy Markdown
Owner Author

I had a go at simplifying the code, I also shortened the filename to three_col.py.
@ITworkonline let me know what you think, I tried not to loose any functionality (besides finding the coordinates)

@Will-Shanks
Will-Shanks requested review from qisu4484 and removed request for reda2367 March 31, 2020 15:05
Comment thread src/three_col.py
# iter through all lines
for line in dayToDF.iter_df(dayToDF.get_df(fn)):
# If line contains a key word, then is a company name
if line.split(' ', 1)[0].isupper() and ("Inco" in line or "In-" in line

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In- may not be working since dayToDF uses non-punctuation words

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I'll have a look at what the best way to fix this is.

@qisu4484 qisu4484 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May not get all desired output, missing keywords

@Will-Shanks

Copy link
Copy Markdown
Owner Author

May not get all desired output, missing keywords

@lululu7
What keywords are you referring to?

@qisu4484

Copy link
Copy Markdown
Collaborator

May not get all desired output, missing keywords

@lululu7
What keywords are you referring to?

For the 2/3 col pages, the common words after company names are "Incorporated", "Organizes", and "Controlled"
Those words we are looking for can be on the line after the company names and on the same line with those words, not only looking for the "keywords" at the current line, the for loop should look for those "keyword" for next line as well.

@kevmonsta

Copy link
Copy Markdown
Collaborator

It looks like this should be ready to be approved.

I think the only outstanding issue right now is Jades change request regarding merging to master.

Once we resolve this change request I think we can merge.

@Will-Shanks

Copy link
Copy Markdown
Owner Author

It looks like this should be ready to be approved.

I think the only outstanding issue right now is Jades change request regarding merging to master.

Once we resolve this change request I think we can merge.

Jade's comments were already handled (see earlier comments), but Lulu found a couple potential bugs that need looking into before this gets merged.

@kevmonsta

Copy link
Copy Markdown
Collaborator

It looks like this should be ready to be approved.
I think the only outstanding issue right now is Jades change request regarding merging to master.
Once we resolve this change request I think we can merge.

Jade's comments were already handled (see earlier comments), but Lulu found a couple potential bugs that need looking into before this gets merged.

I saw that also :) I think the request is still open on github though preventing the merge. For record keeping purposes I think Lulu should make a change request for the bugs and we should close jades about merging to master.

Thoughts? (I might just be confused :) )

@Will-Shanks

Copy link
Copy Markdown
Owner Author

I think what happened it Lulu made change requests and then approved the pr as well, which I think made her change required obsolete.

I was going to try fixing it all up and then get both Jade and Lulu to look over it again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Company Names 3 Column Pages

8 participants