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

Resolve some problem #532

Closed
wants to merge 8 commits into from
Closed

Resolve some problem #532

wants to merge 8 commits into from

Conversation

wyapx
Copy link

@wyapx wyapx commented Apr 13, 2021

Already fixed (tested on my computer)

#445

Not test

#458
#367
#312
#269
and I do something change



def doAuth(pam_context):
"""Starts authentication in a seperate process"""
Copy link

Choose a reason for hiding this comment

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

[Misspell] "seperate" is a misspelling of "separate" (view)

Rule Correct Incorrect
separate separate seperate

You can close this issue if no need to fix it. Learn more.

# Record a predetermined amount of frames from the camera
stream, ret = (
ffmpeg
.input(self.device_path, format=self.device_format)
Copy link

Choose a reason for hiding this comment

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

[Flake8] continuation line unaligned for hanging indent (view)

Rule
E131

You can close this issue if no need to fix it. Learn more.

)
self.video = (
numpy
.frombuffer(stream, numpy.uint8)
Copy link

Choose a reason for hiding this comment

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

[Flake8] continuation line unaligned for hanging indent (view)

Rule
E131

You can close this issue if no need to fix it. Learn more.



u8_array = ctypes.c_uint8 * SIZE
data_maker = lambda v: uvc_ctrl_query(UNIT, SELECTOR, QUERY, SIZE, u8_array.from_buffer(v))
Copy link

Choose a reason for hiding this comment

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

[Flake8] do not assign a lambda expression, use a def (view)

Rule
E731

You can close this issue if no need to fix it. Learn more.

@wyapx wyapx mentioned this pull request Apr 13, 2021
@boltgolt
Copy link
Owner

Hey, thank you for your work but i can not accept these changes as they are right now. You are very welcome to fix stuff but this is a monster of a PR with over 1000 changed lines, including edits to a library file that should not be edited.

I would suggest that you find what exactly you want to fix, change only what you need to change and open a new PR describing what you've changed and why. I hope you understand that i can't manage huge PRs like this, simply look at the merge conflict list.

@boltgolt
Copy link
Owner

Also, Howdy does not officially support non-IR cameras. A config option like is_ir_camera therefore doesn't really fit.

@wyapx
Copy link
Author

wyapx commented Apr 14, 2021

OK, I will modify and resubmit

But I don’t recommend using tab as indentation, This does not comply with the PEP8 specification

@boltgolt boltgolt closed this Apr 18, 2021
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