#3621: [with patch, needs review] sage.finance - add expand and refine
finance.Stock
-----------------------------------------------+----------------------------
Reporter: cswiercz | Owner: cswiercz
Type: defect | Status: assigned
Priority: major | Milestone: sage-3.1.3
Component: finance | Resolution:
Keywords: finance, historical, stock, Stock |
-----------------------------------------------+----------------------------
Comment (by boothby):
Something's up with the first patch -- the file
'''SAGE_ROOT/examples/finance/AAPL-minutely.csv''' is located at
'''SAGE_ROOT/finance/AAPL-minutely.csv''' when I apply the patch to a
fresh 3.1.2.rc1.
{{{
[EMAIL PROTECTED]:~/sage-3.1.2.rc1$ ./sage -t devel/sage/sage/finance/stock.py
sage -t devel/sage/sage/finance/stock.py
**********************************************************************
File "/home/boothby/sage-3.1.2.rc1/tmp/stock.py", line 417:
sage: finance.Stock('aapl').load_from_file(SAGE_ROOT +
'/examples/finance/AAPL-minutely.csv')
Expected:
[
2008-06-02T05:01:00 188.00 188.00 188.00 188.00 687,
2008-06-02T05:00:00 188.00 188.11 188.00 188.00 2877,
2008-06-02T04:55:00 188.00 188.00 188.00 188.00 1000,
2008-06-02T04:54:00 187.75 188.00 187.75 188.00 2000,
2008-06-02T04:23:00 187.80 187.80 187.80 187.80 100
]
Got:
Bad path or file name
**********************************************************************
File "/home/boothby/sage-3.1.2.rc1/tmp/stock.py", line 431:
sage: finance.Stock('goog').load_from_file(SAGE_ROOT +
'/examples/finance/AAPL-minutely.csv')
Expected:
[
2008-06-02T05:01:00 188.00 188.00 188.00 188.00 687,
2008-06-02T05:00:00 188.00 188.11 188.00 188.00 2877,
2008-06-02T04:55:00 188.00 188.00 188.00 188.00 1000,
2008-06-02T04:54:00 187.75 188.00 187.75 188.00 2000,
2008-06-02T04:23:00 187.80 187.80 187.80 187.80 100
]
Got:
Bad path or file name
**********************************************************************
1 items had failures:
2 of 5 in __main__.example_12
***Test Failed*** 2 failures.
For whitespace errors, see the file
/home/boothby/sage-3.1.2.rc1/tmp/.doctest_stock.py
[1.2 s]
exit code: 1024
----------------------------------------------------------------------
The following tests failed:
sage -t devel/sage/sage/finance/stock.py
Total time for all tests: 1.2 seconds
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3621#comment:24>
SAGE <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---