#6864: Stop Sage tests from saving things to hard drive
---------------------------+------------------------------------------------
Reporter: kcrisman | Owner: tba
Type: defect | Status: new
Priority: minor | Milestone: sage-4.1.2
Component: documentation | Keywords:
Reviewer: | Author:
Merged: |
---------------------------+------------------------------------------------
Comment(by jhpalmieri):
This ticket is a good idea. Here are some things I've found:
The file 'zz.png' is from sage.misc.latex, the function {{{png}}}. By the
way, in that same file, the function {{{_run_latex_}}} saves its output to
a temporary directory like this:
{{{
sage: from sage.misc.latex import _run_latex_, _latex_file_
sage: from sage.misc.misc import tmp_dir
sage: base = tmp_dir()
sage: file = os.path.join(base, "temp.tex")
sage: O = open(file, 'w')
sage: O.write(_latex_file_([ZZ[x], RR])); O.close()
sage: _run_latex_(file) # random - depends on whether latex is
installed
'dvi'
}}}
In the class {{{ode_solver}}} in sage.gsl.ode, a file "sage.png" is
produced:
{{{
By default T.plot_solution() plots the y_0, to plot general y_i
use
sage: T.plot_solution(i=0, filename='sage.png')
sage: T.plot_solution(i=1, filename='sage.png')
sage: T.plot_solution(i=2, filename='sage.png')
}}}
This gets overwritten by the "as simple as it gets" example, though.
{{{_import_worksheet_sws}}} in sage.server.notebook.notebook: produces the
file "tmp.sws". (Note that the file is exported and then imported again,
so if we change the path name, it needs to be done in both places.)
In sage.structure.sage_object, we get sage.png and test.sobj, both in the
function {{{save}}}.
"0.png" seems to come from sage.databases.database, in the function
{{{_apply_plot}}}, maybe.
I'll try to track down the others later.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6864#comment:2>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---