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

Bug fixs #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

AbdelazizBouzidi
Copy link

No description provided.

@ClementPinard
Copy link
Owner

/quack review

@ghost
Copy link

ghost commented Jun 15, 2023

Oops, that one is on us 🙃 We'll investigate shortly!

apologies

@frgfm
Copy link

frgfm commented Jun 15, 2023

/quack review

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Thanks for the PR 🙏

Other sections
  • [invalid-eof] detected at generate_sky_masks.py:L106
  • [print-statement] detected at main_pipeline_no_lidar.py:L77
  • For a better experience, it's recommended to check the review comments in the tab Files Changed.


    Feedback is a gift! Quack will adjust your review style when you add reactions to a review comment

    @@ -105,3 +103,4 @@ def process_folder(folder_to_process, colmap_img_root, mask_path, pic_ext, verbo
    file_exts = ['jpg', 'JPG']

    process_folder(args.img_dir, args.colmap_img_root, args.mask_root, file_exts, True, args.batchsize)

    Copy link

    Choose a reason for hiding this comment

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

    The EOF should be a single blank line

    Pattern explanation 👈 Adding a blank line as End of File (EOF) is a convention for file processing to mark the end of a character sequence. For more details, feel free to check this resource.

    Suggestion

    Perhaps we could handle this like so:

    Suggested change

    Quack feedback loop 👍👎 This comment is about [invalid-eof]. Add the following reactions on this comment to let us know if:
    - 👍 that comment was on point
    - 👀 that doesn't seem right
    - 👎 this isn't important for you right now
    - 😕 that explanation wasn't clear

    @@ -74,6 +74,7 @@ def main():
    if i not in args.skip_step:
    print_step(i, "First thorough photogrammetry")
    env["thorough_recon"].makedirs_p()
    print(env["video_frame_list_thorough"])
    Copy link

    Choose a reason for hiding this comment

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

    Let's avoid print calls in production-ready code

    Pattern explanation 👈 print calls can be useful for developping and debugging. But moving to a production-ready system, users can select the logging level they want to display but prints don't offer that flexibility. For more details, feel free to check this resource.

    Code example

    Here is an example of how this is typically handled:

    # print("The payload is empty!")
    import logging
    
    logging.warning("The payload is empty!")

    Quack feedback loop 👍👎 This comment is about [print-statement]. Add the following reactions on this comment to let us know if:
    - 👍 that comment was on point
    - 👀 that doesn't seem right
    - 👎 this isn't important for you right now
    - 😕 that explanation wasn't clear

    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.

    3 participants