User Tools

Site Tools


reports:74fa0e8

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
reports:74fa0e8 [2016/06/17 11:11]
karandesai96
reports:74fa0e8 [2016/06/17 11:47] (current)
karandesai96
Line 342: Line 342:
 } }
 </​script>​ </​script>​
-    <​p>​Report generated on 17-Jun-2016 at 14:41:19</p>+    <​p>​Report generated on 17-Jun-2016 at 15:17:51</p>
     <​h2>​Environment</​h2>​     <​h2>​Environment</​h2>​
     <table id="​environment">​     <table id="​environment">​
Line 352: Line 352:
         <​td>​2.7.11</​td></​tr></​table>​         <​td>​2.7.11</​td></​tr></​table>​
     <​h2>​Summary</​h2>​     <​h2>​Summary</​h2>​
-    <p>9 tests ran in 104.27 seconds.<​br/><​span class="​passed">​passed</​span>,​ <span class="​skipped">​0 skipped</​span>,​ <span class="​failed">​failed</​span>,​ <span class="​error">​0 errors</​span>​.<​br/><​span class="​skipped">​0 expected failures</​span>,​ <span class="​failed">​0 unexpected passes</​span>​.</​p>​+    <p>9 tests ran in 109.34 seconds.<​br/><​span class="​passed">​passed</​span>,​ <span class="​skipped">​0 skipped</​span>,​ <span class="​failed">​failed</​span>,​ <span class="​error">​0 errors</​span>​.<​br/><​span class="​skipped">​0 expected failures</​span>,​ <span class="​failed">​0 unexpected passes</​span>​.</​p>​
     <​h2>​Results</​h2>​     <​h2>​Results</​h2>​
     <table id="​results-table">​     <table id="​results-table">​
Line 365: Line 365:
           <td class="​col-result">​Passed</​td>​           <td class="​col-result">​Passed</​td>​
           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_j_estimators</​td>​           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_j_estimators</​td>​
-          <td class="​col-duration">​0.02</td>+          <td class="​col-duration">​0.00</td>
           <td class="​col-links"></​td>​           <td class="​col-links"></​td>​
           <td class="​extra">​           <td class="​extra">​
-            <div class="​empty log">​No log output captured.</​div></​td></​tr>​+            <div class="​empty log" style="​height:​ 10px, clear:both">​No log output captured.</​div></​td></​tr>​
         <tr class="​passed results-table-row">​         <tr class="​passed results-table-row">​
           <td class="​col-result">​Passed</​td>​           <td class="​col-result">​Passed</​td>​
           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_j_blue_estimators</​td>​           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_j_blue_estimators</​td>​
-          <td class="​col-duration">​1.06</td>+          <td class="​col-duration">​0.98</td>
           <td class="​col-links"></​td>​           <td class="​col-links"></​td>​
           <td class="​extra">​           <td class="​extra">​
-            <div class="​empty log">​No log output captured.</​div></​td></​tr>​+            <div class="​empty log" style="​height:​ 10px, clear:both">​No log output captured.</​div></​td></​tr>​
         <tr class="​passed results-table-row">​         <tr class="​passed results-table-row">​
           <td class="​col-result">​Passed</​td>​           <td class="​col-result">​Passed</​td>​
Line 382: Line 382:
           <td class="​col-links"></​td>​           <td class="​col-links"></​td>​
           <td class="​extra">​           <td class="​extra">​
-            <div class="​empty log">​No log output captured.</​div></​td></​tr>​+            <div class="​empty log" style="​height:​ 10px, clear:both">​No log output captured.</​div></​td></​tr>​
         <tr class="​passed results-table-row">​         <tr class="​passed results-table-row">​
           <td class="​col-result">​Passed</​td>​           <td class="​col-result">​Passed</​td>​
Line 389: Line 389:
           <td class="​col-links"></​td>​           <td class="​col-links"></​td>​
           <td class="​extra">​           <td class="​extra">​
-            <div class="​empty log">​No log output captured.</​div></​td></​tr>​+            <div class="​empty log" style="​height:​ 10px, clear:both">​No log output captured.</​div></​td></​tr>​
         <tr class="​passed results-table-row">​         <tr class="​passed results-table-row">​
           <td class="​col-result">​Passed</​td>​           <td class="​col-result">​Passed</​td>​
Line 396: Line 396:
           <td class="​col-links"></​td>​           <td class="​col-links"></​td>​
           <td class="​extra">​           <td class="​extra">​
-            <div class="​empty log">​No log output captured.</​div></​td></​tr>​+            <div class="​empty log" style="​height:​ 10px, clear:both">​No log output captured.</​div></​td></​tr>​
         <tr class="​passed results-table-row">​         <tr class="​passed results-table-row">​
           <td class="​col-result">​Passed</​td>​           <td class="​col-result">​Passed</​td>​
Line 403: Line 403:
           <td class="​col-links"></​td>​           <td class="​col-links"></​td>​
           <td class="​extra">​           <td class="​extra">​
-            <div class="​empty log">​No log output captured.</​div></​td></​tr>​ +            <div class="​empty log" style="​height:​ 10px, clear:both">​No log output captured.</​div></​td></​tr>​ 
-        <tr class="​failed ​results-table-row">​ +        <tr class="​passed ​results-table-row">​ 
-          <td class="​col-result">​Failed</td>+          <td class="​col-result">​Passed</td>
           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_spectrum</​td>​           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_spectrum</​td>​
-          <td class="​col-duration">​0.01</td>+          <td class="​col-duration">​0.93</td>
           <td class="​col-links"></​td>​           <td class="​col-links"></​td>​
           <td class="​extra">​           <td class="​extra">​
-            <div class="​log">​self ​&​lt;​tardis.tests.tests_slow.test_w7.TestW7 object at 0x7f18ce1247d0&​gt;<​br/>​plot_object = &​lt;​tardis.tests.tests_slow.plot_helpers.PlotUploader object at 0x7f18ce124110&​gt;<​br/><​br/> ​   def test_spectrum(self,​ plot_object):<br/       ​assert_quantity_allclose(<br/> ​           self.reference['​luminosity_density_nu'​],<​br/>&​gt; ​          ​self.result.runner.spectrum.luminosity_density_nu)<​br/><​br/>​tardis/​tests/​tests_slow/​test_w7.py:​117:​ <​br/>​_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​astropy/​tests/​helper.py:​632:​ in assert_quantity_allclose<​br/> ​   **kwargs)<​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​numpy/​testing/​utils.py:​1347:​ in assert_allclose<​br/> ​   verbose=verbose,​ header=header)<​br/>​_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <​br/><​br/>​comparison = &​lt;​function compare at 0x7f18ce176ed8&​gt;<​br/>​x = array([ ​ 0.00000000e+00, ​  ​0.00000000e+00, ​  ​1.49367226e+28,​ ...,<​br/> ​        ​0.00000000e+00, ​  ​0.00000000e+00, ​  ​0.00000000e+00])<​br/>​y = array([ ​ 0.00000000e+00, ​  ​0.00000000e+00, ​  ​1.49367256e+28,​ ...,<​br/> ​        ​0.00000000e+00, ​  ​0.00000000e+00, ​  ​0.00000000e+00]),​ err_msg = ''<​br/>​verbose = True, header = 'Not equal to tolerance rtol=1e-07, atol=0',​ precision = 6<​br/><​br/> ​   def assert_array_compare(comparison,​ x, y, err_msg='',​ verbose=True,<​br/> ​                            ​header='',​ precision=6):<​br/> ​       from numpy.core import array, isnan, isinf, any, all, inf<​br/> ​       x = array(x, copy=False, subok=True)<​br/> ​       y = array(y, copy=False, subok=True)<​br/> ​   <​br/> ​       def safe_comparison(*args,​ **kwargs):<​br/> ​           # There are number of cases where comparing two arrays hits special<​br/> ​           # cases in array_richcompare,​ specifically around strings and void<​br/> ​           # dtypes. Basically, we just can't do comparisons involving these<​br/> ​           # types, unless both arrays have exactly the *same* type. So<​br/> ​           # e.g. you can apply == to two string arrays, or two arrays with<​br/> ​           ​identical structured dtypes. But if you compare a non-string array<​br/> ​           # to a string array, or two arrays with non-identical structured<​br/> ​           # dtypes, or anything like that, then internally stuff blows up.<​br/> ​           # Currently, when things blow up, we just return a scalar False or<​br/> ​           # True. But we also emit a DeprecationWarning,​ b/c eventually we<​br/> ​           # should raise an error here. (Ideally we might even make this work<​br/> ​           # properly, but since that will require rewriting a bunch of how<​br/> ​           # ufuncs work then we are not counting on that.)<​br/> ​           #<​br/> ​           # The point of this little function is to let the DeprecationWarning<​br/> ​           # pass (or maybe eventually catch the errors and return False, I<​br/> ​           # dunno, that's a little trickier and we can figure that out when the<​br/> ​           # time comes).<​br/> ​           with warnings.catch_warnings():<​br/> ​               warnings.filterwarnings("ignore",​ category=DeprecationWarning)<​br/​               ​return comparison(*args,​ **kwargs)<br/> ​   <​br/> ​       def isnumber(x):<​br/> ​           return x.dtype.char in '?​bhilqpBHILQPefdgFDG'<​br/> ​   <​br/> ​       def chk_same_position(x_id,​ y_id, hasval='​nan'​):<​br/> ​           ​"""​Handling nan/infcheck that x and y have the nan/inf at the same<br/>            locations."""<​br/>            try:<br/>                assert_array_equal(x_id,​ y_id)<br/>            except AssertionError:<​br/>                msg = build_err_msg([x,​ y],<br/>                                    err_msg + '\nx and y %s location mismatch:'<​br/> ​                                   % (hasval), verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               raise AssertionError(msg)<​br/> ​   <​br/> ​       try:<​br/> ​           cond = (x.shape == () or y.shape == ()) or x.shape == y.shape<​br/> ​           if not cond:<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg<​br/> ​                                   + '​\n(shapes %s, %s mismatch)'​ % (x.shape,<​br/> ​                                                                     y.shape),<​br/> ​                                   verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/>                ​if not cond:<br/> ​                   raise AssertionError(msg)<​br/> ​   <br/>            ​if isnumber(x) and isnumber(y):​<br/> ​               x_isnan, y_isnan = isnan(x), isnan(y)<​br/> ​               x_isinf, y_isinf = isinf(x), isinf(y)<​br/> ​   <​br/> ​               # Validate that the special values are in the same place<​br/> ​               if any(x_isnan) or any(y_isnan):<​br/> ​                   chk_same_position(x_isnan,​ y_isnan, hasval='​nan'​)<​br/> ​               if any(x_isinf) or any(y_isinf):<​br/> ​                   # Check +inf and -inf separately, since they are different<​br/> ​                   chk_same_position(x == +inf, y == +inf, hasval='​+inf'​)<​br/> ​                   chk_same_position(x == -inf, y == -inf, hasval='​-inf'​)<​br/> ​   <​br/> ​               # Combine all the special values<​br/> ​               x_id, y_id = x_isnan, y_isnan<​br/> ​               x_id |= x_isinf<​br/> ​               y_id |= y_isinf<​br/> ​   <​br/> ​               # Only do the comparison if actual values are left<​br/> ​               if all(x_id):<​br/> ​                   return<​br/> ​   <​br/> ​               if any(x_id):<​br/> ​                   val = safe_comparison(x[~x_id],​ y[~y_id])<​br/> ​               else:<​br/> ​                   val = safe_comparison(x,​ y)<br/>            ​else:<br/> ​               val = safe_comparison(x,​ y)<​br/> ​   <br/>            ​if isinstance(val,​ bool):<br/> ​               cond = val<​br/> ​               reduced = [0]<​br/> ​           else:<​br/> ​               reduced = val.ravel()<​br/> ​               cond = reduced.all()<​br/> ​               reduced = reduced.tolist()<​br/> ​           if not cond:<​br/> ​               match = 100-100.0*reduced.count(1)/​len(reduced)<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg<​br/> ​                                   + '​\n(mismatch %s%%)' % (match,​),<​br/> ​                                   verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               if not cond:<​br/>&​gt; ​                  raise AssertionError(msg)<​br/><​span ​class="​error">E                   ​AssertionError:​ </​span><​br/><​span class="error">​E ​                  Not equal to tolerance rtol=1e-07, atol=0</​span><​br/><​span class="​error">​E ​                  </​span><​br/><​span class="​error">​E ​                  ​(mismatch 8.79%)</​span><​br/><​span class="​error">​E ​                   xarray([ ​ 0.000000e+00  0.000000e+00, ​  ​1.493672e+28,​ ...,   ​0.000000e+00,</​span><​br/><​span class="​error">​E ​                           0.000000e+00, ​  ​0.000000e+00])</​span><​br/><​span class="​error">​E ​                   yarray([ ​ 0.000000e+00, ​  ​0.000000e+00, ​  ​1.493673e+28,​ ...,   ​0.000000e+00,</​span><​br/><​span class="​error">E                            0.000000e+00, ​  ​0.000000e+00])</​span><​br/><​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​numpy/​testing/​utils.py:​708:​ AssertionError<​br/>​</​div></​td></​tr>​ +            ​<​div>​ 
-        <tr class="​failed ​results-table-row">​ +            ​<div class="​image" ​style="floatleft"> 
-          <td class="​col-result">​Failed</td>+                ​<a href="#"> 
 +                    ​<img src= "http://opensupernova.org/~karandesai96/integration/lib/exe/fetch.php?media=plots:74fa0e8_spectrum.png" ​/> 
 +                </a> 
 +            </div> 
 +            </div> 
 +            <div class="​empty log" ​style="height10pxclear:both">No log output captured.</​div></​td></​tr>​ 
 +        <tr class="​passed ​results-table-row">​ 
 +          <td class="​col-result">​Passed</td>
           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_montecarlo_properties</​td>​           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_montecarlo_properties</​td>​
-          <td class="​col-duration">​0.01</td>+          <td class="​col-duration">​0.02</td>
           <td class="​col-links"></​td>​           <td class="​col-links"></​td>​
           <td class="​extra">​           <td class="​extra">​
-            <div class="​log"​>​self ​&​lt;​tardis.tests.tests_slow.test_w7.TestW7 object at 0x7f18c994ab50&​gt;<​br/><​br/> ​   def test_montecarlo_properties(self):<​br/> ​       assert_quantity_allclose(<​br/> ​               self.reference['​montecarlo_luminosity'​],<​br/> ​               self.result.montecarlo_luminosity)<​br/> ​   <​br/> ​       assert_quantity_allclose(<​br/> ​               self.reference['​montecarlo_virtual_luminosity'​],<​br/>&​gt; ​              ​self.result.runner.montecarlo_virtual_luminosity)<​br/><​br/>​tardis/​tests/​tests_slow/​test_w7.py:160: <​br/>​_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​astropy/​tests/​helper.py:​632:​ in assert_quantity_allclose<​br/> ​   **kwargs)<​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​numpy/​testing/​utils.py:​1347:​ in assert_allclose<​br/> ​   verbose=verbose,​ header=header)<​br/>​_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <​br/><​br/>​comparison = &​lt;​function compare at 0x7f18c995b848&​gt;<​br/>​x = array([ ​ 6.80363695e+38, ​  ​1.49379930e+39, ​  ​8.43637402e+38,​ ...,<​br/> ​        ​0.00000000e+00, ​  ​0.00000000e+00, ​  ​0.00000000e+00])<​br/>​y = array([ ​ 6.80363695e+38, ​  ​1.49379930e+39, ​  ​8.43637402e+38,​ ...,<​br/> ​        ​0.00000000e+00, ​  ​0.00000000e+00, ​  ​0.00000000e+00]),​ err_msg = ''<​br/>​verbose = True, header = 'Not equal to tolerance rtol=1e-07, atol=0',​ precision = 6<​br/><​br/> ​   def assert_array_compare(comparison,​ x, y, err_msg='',​ verbose=True,<​br/> ​                            ​header='',​ precision=6):<​br/> ​       from numpy.core import array, isnan, isinf, any, all, inf<​br/> ​       x = array(x, copy=False, subok=True)<​br/> ​       y = array(y, copy=False, subok=True)<​br/> ​   <​br/> ​       def safe_comparison(*args,​ **kwargs):<​br/> ​           # There are a number of cases where comparing two arrays hits special<​br/> ​           # cases in array_richcompare,​ specifically around strings and void<​br/> ​           # dtypes. Basically, we just can't do comparisons involving these<​br/> ​           # types, unless ​both arrays have exactly the *same* type. So<​br/> ​           # e.g. you can apply == to two string arrays, or two arrays with<​br/> ​           # identical structured dtypes. But if you compare a non-string array<​br/> ​           # to a string array, or two arrays with non-identical structured<​br/> ​           # dtypes, or anything like that, then internally stuff blows up.<​br/> ​           # Currently, when things blow up, we just return a scalar False or<​br/> ​           # True. But we also emit a DeprecationWarning,​ b/c eventually we<​br/> ​           # should raise an error here. (Ideally we might even make this work<​br/> ​           # properly, but since that will require rewriting a bunch of how<​br/> ​           # ufuncs work then we are not counting on that.)<​br/> ​           #<​br/> ​           # The point of this little function is to let the DeprecationWarning<​br/> ​           # pass (or maybe eventually catch the errors and return False, I<​br/> ​           # dunno, that's a little trickier and we can figure that out when the<​br/> ​           # time comes).<​br/> ​           with warnings.catch_warnings():<​br/> ​               warnings.filterwarnings("ignore",​ category=DeprecationWarning)<​br/​               ​return comparison(*args,​ **kwargs)<​br/> ​   <​br/> ​       def isnumber(x):<​br/> ​           return x.dtype.char in '?​bhilqpBHILQPefdgFDG'<​br/> ​   <​br/> ​       def chk_same_position(x_id,​ y_id, hasval='​nan'​):<​br/> ​           """​Handling nan/inf: check that x and y have the nan/inf at the same<​br/> ​           locations."""<​br/> ​           try:<​br/> ​               assert_array_equal(x_id,​ y_id)<​br/> ​           except AssertionError:<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg + '\nx and y %s location mismatch:'<​br/> ​                                   % (hasval), verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               raise AssertionError(msg)<​br/> ​   <​br/> ​       try:<​br/> ​           cond = (x.shape == () or y.shape == ()) or x.shape == y.shape<​br/> ​           if not cond:<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg<​br/> ​                                   + '​\n(shapes %s, %s mismatch)'​ % (x.shape,<​br/> ​                                                                     y.shape),<​br/> ​                                   verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               if not cond:<​br/> ​                   raise AssertionError(msg)<​br/> ​   <​br/> ​           if isnumber(x) and isnumber(y):<​br/> ​               x_isnan, y_isnan = isnan(x), isnan(y)<​br/> ​               x_isinf, y_isinf = isinf(x), isinf(y)<​br/> ​   <​br/> ​               # Validate that the special values are in the same place<​br/> ​               if any(x_isnan) or any(y_isnan):<​br/> ​                   chk_same_position(x_isnan,​ y_isnan, hasval='​nan'​)<​br/> ​               if any(x_isinf) or any(y_isinf):<​br/> ​                   # Check +inf and -inf separately, since they are different<​br/> ​                   chk_same_position(x == +inf, y == +inf, hasval='​+inf'​)<​br/> ​                   chk_same_position(x == -inf, y == -inf, hasval='​-inf'​)<​br/> ​   <​br/> ​               # Combine all the special values<​br/> ​               x_id, y_id = x_isnan, y_isnan<​br/> ​               x_id |= x_isinf<​br/> ​               y_id |= y_isinf<​br/> ​   <​br/> ​               # Only do the comparison if actual values are left<​br/> ​               if all(x_id):<​br/> ​                   return<​br/> ​   <​br/> ​               if any(x_id):<​br/> ​                   val = safe_comparison(x[~x_id],​ y[~y_id])<​br/> ​               else:<​br/> ​                   val = safe_comparison(x,​ y)<​br/> ​           else:<​br/> ​               val = safe_comparison(x,​ y)<​br/> ​   <​br/> ​           if isinstance(val,​ bool):<​br/> ​               cond = val<​br/> ​               reduced = [0]<​br/> ​           else:<​br/> ​               reduced = val.ravel()<​br/> ​               cond = reduced.all()<​br/> ​               reduced = reduced.tolist()<​br/> ​           if not cond:<​br/> ​               match = 100-100.0*reduced.count(1)/​len(reduced)<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg<​br/> ​                                   + '​\n(mismatch %s%%)' % (match,​),<​br/> ​                                   verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               if not cond:<​br/>&​gt; ​                  raise AssertionError(msg)<​br/><​span class="​error">​E ​                  ​AssertionError:​ </​span><​br/><​span class="​error">​E ​                  Not equal to tolerance rtol=1e-07, atol=0</​span><​br/><​span class="​error">​E ​                  </​span><​br/><​span class="​error">​E ​                  ​(mismatch 0.28%)</​span><​br/><​span class="​error">​E ​                   x: array([ ​ 6.803637e+38, ​  ​1.493799e+39, ​  ​8.436374e+38,​ ...,   ​0.000000e+00,</​span><​br/><​span class="​error">​E ​                           0.000000e+00, ​  ​0.000000e+00])</​span><​br/><​span class="​error">​E ​                   y: array([ ​ 6.803637e+38, ​  ​1.493799e+39, ​  ​8.436374e+38,​ ...,   ​0.000000e+00,</​span><​br/><​span class="​error">​E ​                           0.000000e+00, ​  ​0.000000e+00])</​span><​br/><​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​numpy/​testing/​utils.py:​708:​ AssertionError<​br/>​</​div></​td></​tr>​+            <div class="​empty log" ​style="​height10pxclear:​both">​No log output captured.</​div></​td></​tr>​
         <tr class="​failed results-table-row">​         <tr class="​failed results-table-row">​
           <td class="​col-result">​Failed</​td>​           <td class="​col-result">​Failed</​td>​
           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_shell_temperature</​td>​           <td class="​col-name">​lib.linux-x86_64-2.7/​tardis/​tests/​tests_slow/​test_w7.py::​TestW7::​()::​test_shell_temperature</​td>​
-          <td class="​col-duration">​0.01</td>+          <td class="​col-duration">​0.22</td>
           <td class="​col-links"></​td>​           <td class="​col-links"></​td>​
           <td class="​extra">​           <td class="​extra">​
-            <div class="​log">​self = &​lt;​tardis.tests.tests_slow.test_w7.TestW7 object at 0x7f18c99d4990&​gt;<​br/>​plot_object = &​lt;​tardis.tests.tests_slow.plot_helpers.PlotUploader object at 0x7f18c99d4a10&​gt;<​br/><​br/> ​   def test_shell_temperature(self,​ plot_object):<​br/> ​       assert_quantity_allclose(<​br/> ​           self.reference['​t_rads'​],<​br/>&​gt; ​          ​self.result.t_rads)<​br/><​br/>​tardis/​tests/​tests_slow/​test_w7.py:​169: <​br/>​_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​astropy/​tests/​helper.py:​632:​ in assert_quantity_allclose<​br/> ​   **kwargs)<​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​numpy/​testing/​utils.py:​1347:​ in assert_allclose<​br/> ​   verbose=verbose,​ header=header)<​br/>​_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <​br/><​br/>​comparison = &​lt;​function compare at 0x7f18c93c6b18&​gt;<​br/>​x = array([ 10936.03215232, ​  9888.11770588, ​  9146.48415051, ​  9125.42125351,<​br/> ​  ​...11, ​  8719.6473306 ,<​br/> ​        8643.73184199, ​  8675.04411592, ​  8730.64885705])<​br/>​y = array([ 10936.03215232, ​  ​9883.11770588, ​  ​9136.48415051, ​  ​9110.42125351,<​br/> ​  ​...11, ​  ​8604.6473306 ,<​br/> ​        ​8523.73184199, ​  ​8550.04411592, ​  ​8600.64885705])<​br/>​err_msg = '',​ verbose = True, header = 'Not equal to tolerance rtol=1e-07, atol=0',​ precision = 6<​br/><​br/> ​   def assert_array_compare(comparison,​ x, y, err_msg='',​ verbose=True,<​br/> ​                            ​header='',​ precision=6):<​br/> ​       from numpy.core import array, isnan, isinf, any, all, inf<​br/> ​       x = array(x, copy=False, subok=True)<​br/> ​       y = array(y, copy=False, subok=True)<​br/> ​   <​br/> ​       def safe_comparison(*args,​ **kwargs):<​br/> ​           # There are a number of cases where comparing two arrays hits special<​br/> ​           # cases in array_richcompare,​ specifically around strings and void<​br/> ​           # dtypes. Basically, we just can't do comparisons involving these<​br/> ​           # types, unless both arrays have exactly the *same* type. So<​br/> ​           # e.g. you can apply == to two string arrays, or two arrays with<​br/> ​           # identical structured dtypes. But if you compare a non-string array<​br/> ​           # to a string array, or two arrays with non-identical structured<​br/> ​           # dtypes, or anything like that, then internally stuff blows up.<​br/> ​           # Currently, when things blow up, we just return a scalar False or<​br/> ​           # True. But we also emit a DeprecationWarning,​ b/c eventually we<​br/> ​           # should raise an error here. (Ideally we might even make this work<​br/> ​           # properly, but since that will require rewriting a bunch of how<​br/> ​           # ufuncs work then we are not counting on that.)<​br/> ​           #<​br/> ​           # The point of this little function is to let the DeprecationWarning<​br/> ​           # pass (or maybe eventually catch the errors and return False, I<​br/> ​           # dunno, that's a little trickier and we can figure that out when the<​br/> ​           # time comes).<​br/> ​           with warnings.catch_warnings():<​br/> ​               warnings.filterwarnings("​ignore",​ category=DeprecationWarning)<​br/> ​               return comparison(*args,​ **kwargs)<​br/> ​   <​br/> ​       def isnumber(x):<​br/> ​           return x.dtype.char in '?​bhilqpBHILQPefdgFDG'<​br/> ​   <​br/> ​       def chk_same_position(x_id,​ y_id, hasval='​nan'​):<​br/> ​           """​Handling nan/inf: check that x and y have the nan/inf at the same<​br/> ​           locations."""<​br/> ​           try:<​br/> ​               assert_array_equal(x_id,​ y_id)<​br/> ​           except AssertionError:<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg + '\nx and y %s location mismatch:'<​br/> ​                                   % (hasval), verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               raise AssertionError(msg)<​br/> ​   <​br/> ​       try:<​br/> ​           cond = (x.shape == () or y.shape == ()) or x.shape == y.shape<​br/> ​           if not cond:<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg<​br/> ​                                   + '​\n(shapes %s, %s mismatch)'​ % (x.shape,<​br/> ​                                                                     y.shape),<​br/> ​                                   verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               if not cond:<​br/> ​                   raise AssertionError(msg)<​br/> ​   <​br/> ​           if isnumber(x) and isnumber(y):<​br/> ​               x_isnan, y_isnan = isnan(x), isnan(y)<​br/> ​               x_isinf, y_isinf = isinf(x), isinf(y)<​br/> ​   <​br/> ​               # Validate that the special values are in the same place<​br/> ​               if any(x_isnan) or any(y_isnan):<​br/> ​                   chk_same_position(x_isnan,​ y_isnan, hasval='​nan'​)<​br/> ​               if any(x_isinf) or any(y_isinf):<​br/> ​                   # Check +inf and -inf separately, since they are different<​br/> ​                   chk_same_position(x == +inf, y == +inf, hasval='​+inf'​)<​br/> ​                   chk_same_position(x == -inf, y == -inf, hasval='​-inf'​)<​br/> ​   <​br/> ​               # Combine all the special values<​br/> ​               x_id, y_id = x_isnan, y_isnan<​br/> ​               x_id |= x_isinf<​br/> ​               y_id |= y_isinf<​br/> ​   <​br/> ​               # Only do the comparison if actual values are left<​br/> ​               if all(x_id):<​br/> ​                   return<​br/> ​   <​br/> ​               if any(x_id):<​br/> ​                   val = safe_comparison(x[~x_id],​ y[~y_id])<​br/> ​               else:<​br/> ​                   val = safe_comparison(x,​ y)<​br/> ​           else:<​br/> ​               val = safe_comparison(x,​ y)<​br/> ​   <​br/> ​           if isinstance(val,​ bool):<​br/> ​               cond = val<​br/> ​               reduced = [0]<​br/> ​           else:<​br/> ​               reduced = val.ravel()<​br/> ​               cond = reduced.all()<​br/> ​               reduced = reduced.tolist()<​br/> ​           if not cond:<​br/> ​               match = 100-100.0*reduced.count(1)/​len(reduced)<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg<​br/> ​                                   + '​\n(mismatch %s%%)' % (match,​),<​br/> ​                                   verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               if not cond:<​br/>&​gt; ​                  raise AssertionError(msg)<​br/><​span class="​error">​E ​                  ​AssertionError:​ </​span><​br/><​span class="​error">​E ​                  Not equal to tolerance rtol=1e-07, atol=0</​span><​br/><​span class="​error">​E ​                  </​span><​br/><​span class="​error">​E ​                  ​(mismatch 96.2962962963%)</​span><​br/><​span class="​error">​E ​                   x: array([ 10936.032152, ​  9888.117706, ​  9146.484151, ​  9125.421254,</​span><​br/><​span class="​error">​E ​                           ​8894.998072, ​  8897.837712, ​  8803.655887, ​  9047.992354,</​span><​br/><​span class="​error">​E ​                           ​8941.21192 ,   8853.031243, ​  8707.324676, ​  8734.898159,​...</​span><​br/><​span class="​error">​E ​                   y: array([ 10936.032152, ​  ​9883.117706, ​  ​9136.484151, ​  ​9110.421254,</​span><​br/><​span class="​error">​E ​                           8874.998072, ​  ​8872.837712, ​  ​8773.655887, ​  ​9012.992354,</​span><​br/><​span class="​error">​E ​                           8901.21192 ,   ​8808.031243, ​  ​8657.324676, ​  ​8679.898159,​...</​span><​br/><​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​numpy/​testing/​utils.py:​708:​ AssertionError<​br/></​div></​td></​tr></​tbody></​table></​body></​html>​+            ​<​div>​ 
 +            <div class="​image"​ style="​float:​ left">​ 
 +                <a href="#">​ 
 +                    <img src= "​http://​opensupernova.org/​~karandesai96/​integration/​lib/​exe/​fetch.php?​media=plots:​74fa0e8_t_rads.png"​ /> 
 +                </​a>​ 
 +            </​div>​ 
 +            </​div>​ 
 +            ​<div class="​log" style="​clear:​ both">​self = &​lt;​tardis.tests.tests_slow.test_w7.TestW7 object at 0x7f22ad513810&​gt;<​br/>​plot_object = &​lt;​tardis.tests.tests_slow.plot_helpers.PlotUploader object at 0x7f22ad513890&​gt;<​br/><​br/> ​   def test_shell_temperature(self,​ plot_object):​<​br/> ​       plot_object.add(self.plot_t_rads(),​ "​t_rads"​)<​br/> ​   ​<​br/> ​       assert_quantity_allclose(<​br/> ​           self.reference['​t_rads'​],<​br/>&​gt; ​          ​self.result.t_rads)<​br/><​br/>​tardis/​tests/​tests_slow/​test_w7.py:​171: <​br/>​_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​astropy/​tests/​helper.py:​632:​ in assert_quantity_allclose<​br/> ​   **kwargs)<​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​numpy/​testing/​utils.py:​1347:​ in assert_allclose<​br/> ​   verbose=verbose,​ header=header)<​br/>​_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <​br/><​br/>​comparison = &​lt;​function compare at 0x7f22ad1e0410&​gt;<​br/>​x = array([ 10936.03215232, ​  9788.11770588, ​  8946.48415051, ​  8825.42125351,<​br/> ​  ​...11, ​  6419.6473306 ,<​br/> ​        6243.73184199, ​  6175.04411592, ​  6130.64885705])<​br/>​y = array([ 10936.03215232, ​  ​9883.11770588, ​  ​9136.48415051, ​  ​9110.42125351,<​br/> ​  ​...11, ​  ​8604.6473306 ,<​br/> ​        ​8523.73184199, ​  ​8550.04411592, ​  ​8600.64885705])<​br/>​err_msg = '',​ verbose = True, header = 'Not equal to tolerance rtol=1e-07, atol=0',​ precision = 6<​br/><​br/> ​   def assert_array_compare(comparison,​ x, y, err_msg='',​ verbose=True,<​br/> ​                            ​header='',​ precision=6):<​br/> ​       from numpy.core import array, isnan, isinf, any, all, inf<​br/> ​       x = array(x, copy=False, subok=True)<​br/> ​       y = array(y, copy=False, subok=True)<​br/> ​   <​br/> ​       def safe_comparison(*args,​ **kwargs):<​br/> ​           # There are a number of cases where comparing two arrays hits special<​br/> ​           # cases in array_richcompare,​ specifically around strings and void<​br/> ​           # dtypes. Basically, we just can't do comparisons involving these<​br/> ​           # types, unless both arrays have exactly the *same* type. So<​br/> ​           # e.g. you can apply == to two string arrays, or two arrays with<​br/> ​           # identical structured dtypes. But if you compare a non-string array<​br/> ​           # to a string array, or two arrays with non-identical structured<​br/> ​           # dtypes, or anything like that, then internally stuff blows up.<​br/> ​           # Currently, when things blow up, we just return a scalar False or<​br/> ​           # True. But we also emit a DeprecationWarning,​ b/c eventually we<​br/> ​           # should raise an error here. (Ideally we might even make this work<​br/> ​           # properly, but since that will require rewriting a bunch of how<​br/> ​           # ufuncs work then we are not counting on that.)<​br/> ​           #<​br/> ​           # The point of this little function is to let the DeprecationWarning<​br/> ​           # pass (or maybe eventually catch the errors and return False, I<​br/> ​           # dunno, that's a little trickier and we can figure that out when the<​br/> ​           # time comes).<​br/> ​           with warnings.catch_warnings():<​br/> ​               warnings.filterwarnings("​ignore",​ category=DeprecationWarning)<​br/> ​               return comparison(*args,​ **kwargs)<​br/> ​   <​br/> ​       def isnumber(x):<​br/> ​           return x.dtype.char in '?​bhilqpBHILQPefdgFDG'<​br/> ​   <​br/> ​       def chk_same_position(x_id,​ y_id, hasval='​nan'​):<​br/> ​           """​Handling nan/inf: check that x and y have the nan/inf at the same<​br/> ​           locations."""<​br/> ​           try:<​br/> ​               assert_array_equal(x_id,​ y_id)<​br/> ​           except AssertionError:<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg + '\nx and y %s location mismatch:'<​br/> ​                                   % (hasval), verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               raise AssertionError(msg)<​br/> ​   <​br/> ​       try:<​br/> ​           cond = (x.shape == () or y.shape == ()) or x.shape == y.shape<​br/> ​           if not cond:<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg<​br/> ​                                   + '​\n(shapes %s, %s mismatch)'​ % (x.shape,<​br/> ​                                                                     y.shape),<​br/> ​                                   verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               if not cond:<​br/> ​                   raise AssertionError(msg)<​br/> ​   <​br/> ​           if isnumber(x) and isnumber(y):<​br/> ​               x_isnan, y_isnan = isnan(x), isnan(y)<​br/> ​               x_isinf, y_isinf = isinf(x), isinf(y)<​br/> ​   <​br/> ​               # Validate that the special values are in the same place<​br/> ​               if any(x_isnan) or any(y_isnan):<​br/> ​                   chk_same_position(x_isnan,​ y_isnan, hasval='​nan'​)<​br/> ​               if any(x_isinf) or any(y_isinf):<​br/> ​                   # Check +inf and -inf separately, since they are different<​br/> ​                   chk_same_position(x == +inf, y == +inf, hasval='​+inf'​)<​br/> ​                   chk_same_position(x == -inf, y == -inf, hasval='​-inf'​)<​br/> ​   <​br/> ​               # Combine all the special values<​br/> ​               x_id, y_id = x_isnan, y_isnan<​br/> ​               x_id |= x_isinf<​br/> ​               y_id |= y_isinf<​br/> ​   <​br/> ​               # Only do the comparison if actual values are left<​br/> ​               if all(x_id):<​br/> ​                   return<​br/> ​   <​br/> ​               if any(x_id):<​br/> ​                   val = safe_comparison(x[~x_id],​ y[~y_id])<​br/> ​               else:<​br/> ​                   val = safe_comparison(x,​ y)<​br/> ​           else:<​br/> ​               val = safe_comparison(x,​ y)<​br/> ​   <​br/> ​           if isinstance(val,​ bool):<​br/> ​               cond = val<​br/> ​               reduced = [0]<​br/> ​           else:<​br/> ​               reduced = val.ravel()<​br/> ​               cond = reduced.all()<​br/> ​               reduced = reduced.tolist()<​br/> ​           if not cond:<​br/> ​               match = 100-100.0*reduced.count(1)/​len(reduced)<​br/> ​               msg = build_err_msg([x,​ y],<​br/> ​                                   err_msg<​br/> ​                                   + '​\n(mismatch %s%%)' % (match,​),<​br/> ​                                   verbose=verbose,​ header=header,<​br/> ​                                   names=('​x',​ '​y'​),​ precision=precision)<​br/> ​               if not cond:<​br/>&​gt; ​                  raise AssertionError(msg)<​br/><​span class="​error">​E ​                  ​AssertionError:​ </​span><​br/><​span class="​error">​E ​                  Not equal to tolerance rtol=1e-07, atol=0</​span><​br/><​span class="​error">​E ​                  </​span><​br/><​span class="​error">​E ​                  ​(mismatch 96.2962962963%)</​span><​br/><​span class="​error">​E ​                   x: array([ 10936.032152, ​  9788.117706, ​  8946.484151, ​  8825.421254,</​span><​br/><​span class="​error">​E ​                           ​8494.998072, ​  8397.837712, ​  8203.655887, ​  8347.992354,</​span><​br/><​span class="​error">​E ​                           ​8141.21192 ,   7953.031243, ​  7707.324676, ​  7634.898159,​...</​span><​br/><​span class="​error">​E ​                   y: array([ 10936.032152, ​  ​9883.117706, ​  ​9136.484151, ​  ​9110.421254,</​span><​br/><​span class="​error">​E ​                           8874.998072, ​  ​8872.837712, ​  ​8773.655887, ​  ​9012.992354,</​span><​br/><​span class="​error">​E ​                           8901.21192 ,   ​8808.031243, ​  ​8657.324676, ​  ​8679.898159,​...</​span><​br/><​br/>/​home/​darth_sidious/​anaconda2/​envs/​tardis/​lib/​python2.7/​site-packages/​numpy/​testing/​utils.py:​708:​ AssertionError<​br/></​div></​td></​tr></​tbody></​table></​body></​html>​
reports/74fa0e8.1466154681.txt.gz · Last modified: 2016/06/17 11:11 by karandesai96