-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
Codecov Report
@@ 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
|
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.
True, we forgot to update cropposts after writing the find_files
wrapper.. lgtm apart from those two small changes
ammico/cropposts.py
Outdated
@@ -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"] |
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.
ref_file["filename"]
should be enough
ammico/cropposts.py
Outdated
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"] |
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.
same here, crop_file["filename"]
should be sufficient
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.
Oh..., yeah, sure 🤦.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
No description provided.