Skip to content

Commit 1d3981c

Browse files
andynoackjopohl
andauthored
Remove NRZ-I to prevent mixing with NRZ + Invert, clarify names. (#776)
* 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]>
1 parent 749cf3d commit 1d3981c

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

data/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ numpy>=1.9,!=1.16.0; sys_platform == 'win32'
33
pyqt5; sys_platform != 'win32'
44
pyqt5!=5.14.2; sys_platform == 'win32'
55
psutil
6-
cython
6+
cython!=0.29.18

src/urh/signalprocessing/Encoding.py

-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ def name(self):
7474
def is_nrz(self) -> bool:
7575
return len(self.chain) <= 1
7676

77-
@property
78-
def is_nrzi(self) -> bool:
79-
return len(self.chain) == 2 and self.chain[1] == self.code_differential
80-
8177
@property
8278
def contains_cut(self) -> bool:
8379
return self.code_cut in self.chain

src/urh/util/ProjectManager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def load_decodings(self):
122122

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

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

128128
Encoding(["Manchester I",
129129
settings.DECODING_EDGE]),

0 commit comments

Comments
 (0)