##// END OF EJS Templates
Update copyright/author statements....
Update copyright/author statements. - Updated copyright statements to use the new form: # Copyright (C) 2008-2009 The IPython Development Team I left the old notices in place (just updating the year in some cases), because as far as I know, old copyright statements are not meant to be retroactively modified. - Also, on most files, replaced __author__ marks with an 'Authors' section in the module docstring. This reduces top-level code in the module, while ensuring that the Author(s) get properly acknowledged in auto-generated API docs (sphinx doesn't read __author__ marks, but it will include the module docstring). I only left a few in place for very old files that we ship externally, and for those by Laurent: he had his authorship mark both in the docstring and in __author__ variables, so I think out of courtesy it would be better to ask him about it on the list. All the others were I found regular __author__ variables, I moved them to the main docstring.

File last commit:

r1601:6a80339f
r1875:bba7e571
Show More
ipythonrc-physics
45 lines | 1.7 KiB | text/plain | TextLexer
# -*- Mode: Shell-Script -*- Not really, but shows comments correctly
#***************************************************************************
#
# Configuration file for ipython -- ipythonrc format
#
# The format of this file is one of 'key value' lines.
# Lines containing only whitespace at the beginning and then a # are ignored
# as comments. But comments can NOT be put on lines with data.
#***************************************************************************
# If this file is found in the user's ~/.ipython directory as
# ipythonrc-physics, it can be loaded by calling passing the '-profile
# physics' (or '-p physics') option to IPython.
# This profile loads modules useful for doing interactive calculations with
# physical quantities (with units). It relies on modules from Konrad Hinsen's
# ScientificPython (http://dirac.cnrs-orleans.fr/ScientificPython/)
# First load basic user configuration
include ipythonrc
# import ...
# Module with alternate input syntax for PhysicalQuantity objects.
import_mod IPython.Extensions.PhysicalQInput
# from ... import *
# math CANNOT be imported after PhysicalQInteractive. It will override the
# functions defined there.
import_all math IPython.Extensions.PhysicalQInteractive
# from ... import ...
import_some
# code
execute q = PhysicalQuantityInteractive
execute g = PhysicalQuantityInteractive('9.8 m/s**2')
ececute rad = pi/180.
execute print '*** q is an alias for PhysicalQuantityInteractive'
execute print '*** g = 9.8 m/s^2 has been defined'
execute print '*** rad = pi/180 has been defined'
execute import ipy_constants as C
execute print '*** C is the physical constants module'
# Files to execute
execfile