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

Error when intializing FAMC filter without acc or mag samples. #101

Open
osskov opened this issue Oct 14, 2023 · 0 comments
Open

Error when intializing FAMC filter without acc or mag samples. #101

osskov opened this issue Oct 14, 2023 · 0 comments

Comments

@osskov
Copy link

osskov commented Oct 14, 2023

Minor bug but when initializing an FAMC filter with no acc or mag entry, it throws:
AttributeError: 'NoneType' object has no attribute 'copy'

Here is the version of the initialization call in the package:
class FAMC:
def init(self, acc: np.ndarray = None, mag: np.ndarray = None):
self.acc = acc.copy()
self.mag = mag.copy()
self.Q = None
if self.acc is not None and self.mag is not None:
self.Q = self._compute_all()

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

No branches or pull requests

1 participant