This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import 'java.lang.Math) | |
;; This implementation comes from the "Nice Numbers for Graph Labels" in | |
;; Graphics Gems by Andrew S. Glassner. This is Paul Heckbert's algorithm | |
;; though. | |
(defn ^double nice-num [^double x round] | |
(let [exp (Math/floor (Math/log10 x)) | |
f (/ x (Math/pow 10. exp)) | |
nf (if round |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[-100000 -37833] | |
[-100000 43890] | |
[-99998 -87012] | |
[-99998 -83053] | |
[-99998 90798] | |
[-99997 51064] | |
[-99997 76882] | |
[-99996 -78333] | |
[-99996 70886] | |
[-99994 -90905] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/functional_tests/test_multiprocessing/test_keyboardinterrupt.py b/functional_tests/test_multiprocessing/test_keyboardinterrupt.py | |
index 8f07e54..86452a9 100644 | |
--- a/functional_tests/test_multiprocessing/test_keyboardinterrupt.py | |
+++ b/functional_tests/test_multiprocessing/test_keyboardinterrupt.py | |
@@ -25,9 +25,12 @@ runner = os.path.join(support, 'fake_nosetest.py') | |
def keyboardinterrupt(case): | |
#os.setsid would create a process group so signals sent to the | |
#parent process will propogates to all children processes | |
- from tempfile import mktemp | |
+ from tempfile import mktemp, TemporaryFile |
NewerOlder