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

Nested Classes [hide private]
  writer
Instance Methods [hide private]
 
shift_indices(self, match)
shift the indices for non impulsion object
source code
 
change_var_format(self, name)
Formatting the variable name to Python format start to count at zero.
source code
 
get_fct_format(self, fct)
Put the function in the correct format
source code
 
define_expression(self)
Define the functions in a 100% way
source code
 
get_foot_txt(self)
Prototype for language specific footer
source code
 
get_header_txt(self, name=None, couplings=None, mode='')
Define the Header of the fortran file.
source code
 
get_momenta_txt(self)
Define the Header of the fortran file.
source code
 
get_one_momenta_def(self, i, strfile)
return the string defining the momentum
source code
 
define_symmetry(self, new_nb, couplings=None) 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: __init__, define_argument_list, define_content, get_P_sign, get_declaration_txt, get_momentum_conservation_sign, make_call_list, make_declaration_list, pass_to_HELAS, write, write_MultContainer, write_MultVariable, write_indices_part, write_obj, write_obj_Add, write_variable, write_variable_id

Static Methods [hide private]
 
change_number_format(obj, pure_complex='')
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]

change_number_format(obj, pure_complex='')
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. No neeed to define the variable in python -> no need to keep track of the various variable

Overrides: WriteALOHA.change_var_format

get_foot_txt(self)

source code 

Prototype for language specific footer

Overrides: WriteALOHA.get_foot_txt
(inherited documentation)

get_header_txt(self, name=None, couplings=None, mode='')

source code 

Define the Header of the fortran file. This include

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

get_momenta_txt(self)

source code 

Define the Header of the fortran file. This include

  • momentum conservation
  • definition of the impulsion
Overrides: WriteALOHA.get_momenta_txt