Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

[WIP] Frames #14

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

[WIP] Frames #14

wants to merge 41 commits into from

Conversation

RazerM
Copy link
Member

@RazerM RazerM commented Mar 21, 2016

This is in very early stages, as I say in one of the commit messages:

Everything is currently untested, in the wrong place, and lacking comments.

It's a work in progress to look at implementing Frames in idiomatic Python, to be cleaned up and refactored before it's ever merged.

I can't stress how un-tested this is: some of the code hasn't even touched the interpreter.

I intend to work on it in this branch, so others can have a look at the implementation as it develops. I welcome your criticism!

Everything is currently untested, in the wrong place, and lacking comments.

It's a work in progress to look at implementing Frames in idiomatic Python, to be cleaned up and refactored before it's ever merged.
@RazerM
Copy link
Member Author

RazerM commented Mar 21, 2016

I added the downloadspk branch as the base, will open a new PR when that is merged

The parametrization was very useful while writing the
rotation code, but it slows down the tests too much now that they pass.
Using __getattr__ is slow for FrameProxy, so now inherits from AbstractFrame and implements proxy properties directly.

The FrameProxy now uses a function to register the factory function, which is cleaner. I didn't want to have

@FrameProxy
def GCRF():
    return Frame(...)

since that isn't as clear reading the source that GCRF is a FrameProxy.
Tested with pytest-benchmark.
@RazerM RazerM changed the base branch from downloadspk to master November 27, 2016 11:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant