user_guide:tutorials:data

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
Last revisionBoth sides next revision
tutorial:data [2019/01/22 15:00] – external edit 127.0.0.1user_guide:tutorials:data [2019/02/11 16:43] – ↷ Links adapted because of a move operation oroehrig
Line 8: Line 8:
 To store polymake objects use the command To store polymake objects use the command
   > save($p,"myPolyObject.poly");   > save($p,"myPolyObject.poly");
 +This silently overwrites existing files.
 +  
 polymake objects that are stored in polymake's own XML file format can be loaded via polymake objects that are stored in polymake's own XML file format can be loaded via
   > $p=load("myPolyObject.poly");   > $p=load("myPolyObject.poly");
Line 13: Line 15:
   $p=load("MyFolder/myPolyObject.poly");   $p=load("MyFolder/myPolyObject.poly");
 TAB completion like in a usual UNIX shell supports you in navigating through the file system. TAB completion like in a usual UNIX shell supports you in navigating through the file system.
 +
 +
 **Note:** If you load a polymake object and compute new properties, these properties will automatically be added to the original XML-file at the end of the session. You can suppress this with the command  **Note:** If you load a polymake object and compute new properties, these properties will automatically be added to the original XML-file at the end of the session. You can suppress this with the command 
   > $p->dont_save;   > $p->dont_save;
 called prior to leaving the session (but after the last computation with $p). called prior to leaving the session (but after the last computation with $p).
  
 +
 +If you want to store a collection of objects into a single file, there is an [[..:howto:tarballs|extra tutorial]] for you.
 ===== Handling complex data types ===== ===== Handling complex data types =====
  
Line 27: Line 33:
   > $s=load_data("mySet.poly");   > $s=load_data("mySet.poly");
 ===== Saving visualized objects ===== ===== Saving visualized objects =====
-Furthermore, most visualization methods provide an option to save the visualized object in a suitable format. Consult the [[tutorial/intro_tutorial#getting_help|F1 help]] for information on the file format and further options.+Furthermore, most visualization methods provide an option to save the visualized object in a suitable format. Consult the [[user_guide:intro_tutorial#getting_help|F1 help]] for information on the file format and further options.
  
 To save the cube visualized via JReality in a new file called ''mycube.bsh'', do this: To save the cube visualized via JReality in a new file called ''mycube.bsh'', do this:
  • user_guide/tutorials/data.txt
  • Last modified: 2019/02/11 16:43
  • by oroehrig