Skip to content
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

fixed errors in documentation #163

Merged
merged 3 commits into from
Nov 13, 2023
Merged

fixed errors in documentation #163

merged 3 commits into from
Nov 13, 2023

Conversation

piterand
Copy link
Contributor

@piterand piterand commented Nov 8, 2023

No description provided.

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #163 (027e818) into main (f2293a2) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #163      +/-   ##
==========================================
+ Coverage   70.81%   70.87%   +0.06%     
==========================================
  Files          18       18              
  Lines        1737     1741       +4     
==========================================
+ Hits         1230     1234       +4     
  Misses        507      507              
Files Coverage Δ
ammico/cropposts.py 68.15% <100.00%> (+0.41%) ⬆️
ammico/test/test_cropposts.py 100.00% <100.00%> (ø)

@piterand piterand requested a review from iulusoy November 10, 2023 09:48
Copy link
Member

@iulusoy iulusoy left a comment

Choose a reason for hiding this comment

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

True, we forgot to update cropposts after writing the find_files wrapper.. lgtm apart from those two small changes

@@ -326,12 +326,14 @@ def crop_media_posts(
# get the reference images with regions that signify areas to crop
ref_views = []
for ref_file in ref_files:
ref_view = cv2.imread(ref_file)
ref_file_path = ref_files[ref_file]["filename"]
Copy link
Member

Choose a reason for hiding this comment

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

ref_file["filename"] should be enough

ref_views.append(ref_view)
# parse through the social media posts to be cropped
for crop_file in files:
view = cv2.imread(crop_file)
print("Doing file {}".format(crop_file))
crop_file_path = files[crop_file]["filename"]
Copy link
Member

Choose a reason for hiding this comment

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

same here, crop_file["filename"] should be sufficient

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh..., yeah, sure 🤦.

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@piterand piterand merged commit fcd6d19 into main Nov 13, 2023
@piterand piterand deleted the documentation_fixing branch November 13, 2023 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants