git.ucc.asn.au
/
matches
/
honours.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic commit. Wed Sep 12 00:00:12 WST 2012
[matches/honours.git]
/
research
/
TCS
/
pressure
/
process_digits.py
diff --git
a/research/TCS/pressure/process_digits.py
b/research/TCS/pressure/process_digits.py
index
2b5f757
..
1b2c9dd
100755
(executable)
--- a/
research/TCS/pressure/process_digits.py
+++ b/
research/TCS/pressure/process_digits.py
@@
-84,6
+84,7
@@
def PickDigit(pix, r):
"1110110" : 2,
"0000011" : 1,
"1011111" : 0
"1110110" : 2,
"0000011" : 1,
"1011111" : 0
+
}
w = r[2] - r[0]
}
w = r[2] - r[0]
@@
-199,7
+200,12
@@
if __name__ == "__main__":
print("?")
sys.exit(1)
print("?")
sys.exit(1)
- print(str(r[0]) + "." + str(r[1]) + str(r[2]) + "e-" + str(r[3]))
+ if (len(r) == 4):
+ print(str(r[0]) + "." + str(r[1]) + str(r[2]) + "e-" + str(r[3]))
+ elif (len(r) == 3):
+ print(str(r[0]) + "." + str(r[1]) + "e-" + str(r[2]))
+ else:
+ print("#?")
sys.exit(0)
sys.exit(0)
UCC
git Repository :: git.ucc.asn.au