Skip to content

Commit

Permalink
Remove NRZ-I to prevent mixing with NRZ + Invert, clarify names. (#776)
Browse files Browse the repository at this point in the history
* Change NRZ-I decoding from invert to differential encoding (see e.g. https://en.wikipedia.org/wiki/Non-return-to-zero). Fix #775

* skip bugged cython version

* Remove "Non Return To Zero Inverted (NRZ-I)" due to contradictory definitions in literature.

Co-authored-by: jopohl <[email protected]>
  • Loading branch information
andynoack and jopohl authored May 19, 2020
1 parent 749cf3d commit 1d3981c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ numpy>=1.9,!=1.16.0; sys_platform == 'win32'
pyqt5; sys_platform != 'win32'
pyqt5!=5.14.2; sys_platform == 'win32'
psutil
cython
cython!=0.29.18
4 changes: 0 additions & 4 deletions src/urh/signalprocessing/Encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ def name(self):
def is_nrz(self) -> bool:
return len(self.chain) <= 1

@property
def is_nrzi(self) -> bool:
return len(self.chain) == 2 and self.chain[1] == self.code_differential

@property
def contains_cut(self) -> bool:
return self.code_cut in self.chain
Expand Down
4 changes: 2 additions & 2 deletions src/urh/util/ProjectManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def load_decodings(self):

fallback = [Encoding(["Non Return To Zero (NRZ)"]),

Encoding(["Non Return To Zero Inverted (NRZ-I)",
settings.DECODING_DIFFERENTIAL]),
Encoding(["Non Return To Zero + Invert",
settings.DECODING_INVERT]),

Encoding(["Manchester I",
settings.DECODING_EDGE]),
Expand Down

0 comments on commit 1d3981c

Please sign in to comment.