Project Notes

Running Python Programs/Functions:

  1. Change working directory
  2. 'import [filename]' (without '.py')
  3. '[filename][functionname](variables)'
If file is already imported, replace 'import' with 'reload' to load any changes.

To show an image produced by a function:

  1. 'a=[filename][functionname](variables)'
  2. 'imshow(a, cmap='Grey_r)' (use 'imshow(a)' for colourmap image instead of greyscale image)
-- AaronAndrews - 04 Oct 2016

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r2 - 05 Oct 2016 - AaronAndrews

 
This site is powered by the TWiki collaboration platformCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback