Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Current direction test. #64

Closed
wants to merge 2 commits into from
Closed

Conversation

ocefpaf
Copy link
Member

@ocefpaf ocefpaf commented Nov 8, 2015

This PR implements the Current Direction Test. (Fixes #55.)

@lukecampbell
Note that the masked array test do fail on purpose. It is just to raise the question: should we support masked arrays?

flag_arr = np.ones_like(arr, dtype='uint8')

flag_arr[(arr < sensor_min) |
(arr > sensor_max)] = QCFlags.BAD_DATA
Copy link
Member Author

Choose a reason for hiding this comment

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

@lukecampbell we can implement this a special case of range_check() the same way I did for #65. Let me know which style works best for your goals here.

@ocefpaf
Copy link
Member Author

ocefpaf commented Dec 8, 2015

Ping @lukecampbell

The failure is due to the masking and I am not sure if we should support it or nor. If we do not want to support masked arrays I can just remove that test.

@ocefpaf ocefpaf closed this Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Current Direction Test
2 participants