FAQ
Home
News
Tutorials
User Manual
Reference Manual
Developer Manual
Downloads
Forums
Team Members
Future Work
FAQ
Links

Frequently Asked Questions about Topographica

  1. Q: How can I get access to the actual data shown in the various plots, etc.?

    A: The main objects in the simulation can be accessed through the topo.sim attribute. For instance, if you have a sheet named 'V1', it can be accessed as topo.sim['V1']. From there the projections, weights, etc. for that unit can be obtained. See the Command line section of the user manual for more information, including how to plot such data manually.

  2. Q: After upgrading Topographica or editing some of its files, I get errors when loading a saved snapshot.

    A: As of 0.9.4, Topographica saves the state by using Python's pickling procedure, which saves everything in the current simulation. The disadvantage of this approach is that most changes in the definition of any of the classes used (apart from changing parameter values or strictly adding code) will cause the reloading to fail. Until we have set up an archival storage format, probably based on XML, snapshots should be considered temporary.

  3. Q: When I try to save a snapshot of my network, I get this scary warning:
    ParameterizedObject53371: Warning: ManagedRandomComposite (type ) has 
    source in __main__; it will only be found on unpickling if the class is 
    explicitly defined (e.g. by running the same script first) before 
    unpickling.
    

    A: That doesn't necessarily indicate anything is wrong. What it is saying is that you have defined some variables and/or classes in your .ty script file, rather than in a .py module in topo/. Python knows how to restore the state of anything in an imported module, but it has no idea how to find classes defined in regular scripts like those in the examples directory (which we name ending in .ty to make the difference obvious). So you can either:

    1. Move any classes, functions, etc. that you need from your .ty file into somewhere in a .py file that your script then imports. That's usually the best long-term solution, because then anyone can use your classes. However, this approach is not always appropriate, if there are very specialized classes or functions in the .ty file that are not useful for other people.

    or

    2. Before reloading a saved snapshot, just run your .ty file as you did the first time. That will define all the classes, functions, etc., and then reloading the saved snapshot should work fine.

    The warning is just telling you that you need to do option 2; if you want to suppress the warning entirely you can do option 1.

  4. Q: I think I've found a problem with Topographica. What should I do now?

    A: Topographica is continuously changing to support active research, so problems can occur. To be sure you have found a problem with Topographica itself, and to help us fix it quickly, please follow our guidelines for Reporting specific problems with Topographica.

Hosted by: SourceForge Logo James A. Bednar (jbednar@inf.ed.ac.uk) Last update: Thu Feb 21 15:17:04 UTC 2008.