Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Implement bitwise operators #195

@danielFlemstrom

Description

@danielFlemstrom

Working with packed bitmasks requires bitwise operators is not possible today.

EXAMPLE:

WATERFLAG = 2
water_mask = wqmask & WATERFLAG == WATERFLAG

and so on.....

There is a slight difference between python & and python and :
Given A and B is true and is not boolean,

A and B => B
B and A => A

A & B == B & A 

Currently, python-client outputs logical and for & operator (which needs to be addressed in that repo).
and is simply ignored.

I have made an implementation of bitwise_and, or and xor processes. I assume that if we always use bitwise operators, we should stay out of trouble famous last words....). I will post a PR later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions