Package aloha :: Module aloha_writers :: Class ALOHAWriterForPython
[hide private]
[frames] | no frames]

Class ALOHAWriterForPython

source code

WriteALOHA --+
             |
            ALOHAWriterForPython

A class for returning a file/a string for python evaluation

Instance Methods [hide private]
 
__init__(self, abstract_routine, dirpath=None)
standard init but if dirpath is None the write routine will return a string (which can be evaluated by an exec
source code
 
change_var_format(self, name)
Formatting the variable name to Python format start to count at zero
source code
 
define_expression(self)
Define the functions in a 100% way
source code
 
define_foot(self)
Prototype for language specific footer
source code
 
define_header(self, name=None)
Define the Header of the fortran file.
source code
 
make_declaration_list(self)
make the list of declaration nedded by the header
source code
 
define_momenta(self)
Define the Header of the fortran file.
source code
 
define_symmetry(self, new_nb) source code
 
write(self, mode='self') source code
 
write_combined(self, lor_names, mode='self', offshell=None)
Write routine for combine ALOHA call (more than one coupling)
source code

Inherited from WriteALOHA: collect_variables, define_content, make_all_lists, make_call_list, make_momentum_conservation, pass_to_HELAS, write_indices_part, write_obj, write_obj_Add, write_obj_Mult, write_obj_Var

Static Methods [hide private]
 
change_number_format(obj)
str(object) -> string
source code
Class Variables [hide private]
  extension = '.py'

Inherited from WriteALOHA: power_symbol, type_to_size, type_to_variable

Method Details [hide private]

__init__(self, abstract_routine, dirpath=None)
(Constructor)

source code 

standard init but if dirpath is None the write routine will return a string (which can be evaluated by an exec

Overrides: WriteALOHA.__init__

change_number_format(obj)
Static Method

source code 

str(object) -> string

Return a nice string representation of the object. If the argument is a string, the return value is the same object.

Overrides: change_number_format
(inherited documentation)

change_var_format(self, name)

source code 

Formatting the variable name to Python format start to count at zero

Overrides: change_var_format

define_foot(self)

source code 

Prototype for language specific footer

Overrides: WriteALOHA.define_foot
(inherited documentation)

define_header(self, name=None)

source code 

Define the Header of the fortran file. This include

  • function tag
  • definition of variable
Overrides: WriteALOHA.define_header

make_declaration_list(self)

source code 

make the list of declaration nedded by the header

Overrides: WriteALOHA.make_declaration_list

define_momenta(self)

source code 

Define the Header of the fortran file. This include

  • momentum conservation
  • definition of the impulsion