Classes | |
class | ScalarMethods |
class | DataContainer |
vectorflie has two main purposes - to keep track of "out of core" vectors corresponding binary files on disk and to act as a wrapper to a given library. More... | |
Functions | |
def | contain |
Contain some data. | |
def | makeparams |
if self.sglobals['strict_check'] == 0: pass if strict_check > 0: converter.constrain( command, self.params ) | |
def | genName |
generate a name for the data | |
def | __del__ |
overrides the del method if the object is deleted and there is a file that corresponds to filename and self.istpm then remove will be called to remove the file | |
def | plot |
Plot the data to view it. | |
def | readattr |
read the attributes of the data | |
def | readbin |
read the binary elements of the data | |
def | scalar_reduction |
return the string '${SCALAR}' | |
def | writebin |
write the binary elements of the data | |
def | writeattr |
def | rm |
remove the data from memory | |
def | diagnostic |
def | expand_meta |
Variables | |
string | __copyright__ |
Base Container class for plug-ins to use. | |
string | __license__ |
tuple | __env__ = InstanceManager() |
tuple | scalar_methods = property( getScalar_methods ) |
tuple | contained = property( _get_contained, _set_contained ) |
_contained |
def slimpy_base.Core.Interface.ContainerBase.__del__ | ( | self | ) |
overrides the del method if the object is deleted and there is a file that corresponds to filename and self.istpm then remove will be called to remove the file
Definition at line 410 of file ContainerBase.py.
def slimpy_base.Core.Interface.ContainerBase.contain | ( | data | ) |
Contain some data.
Uses plug-ins associated with the keystone class to find a dataContainer compatible with data.
Definition at line 45 of file ContainerBase.py.
def slimpy_base.Core.Interface.ContainerBase.diagnostic | ( | self | ) |
Definition at line 468 of file ContainerBase.py.
def slimpy_base.Core.Interface.ContainerBase.expand_meta | ( | self, | ||
metaspace | ||||
) |
Definition at line 474 of file ContainerBase.py.
def slimpy_base.Core.Interface.ContainerBase.genName | ( | self, | ||
command = None | ||||
) |
def slimpy_base.Core.Interface.ContainerBase.makeparams | ( | self | ) |
if self.sglobals['strict_check'] == 0: pass if strict_check > 0: converter.constrain( command, self.params )
# Now that the data has been parsed we can get the new # space the data formed by that command # is in newspace = converter.transform( command, self.params )
compack = converter.convert( self, command )
if strict_check > 1: if isinstance( newspace, voidSpace ): msg = ( "'strict_check >= 2' prevents commands " "from returning voidSpace\n" "command '%(command)s' returned voidSpace" vars() ) raise Exception( msg ) # Make a new contnainer that knows a bout its space newcontainer = newspace.makeContaner( command=command ) # append the command to the graph to be executed later # by a flush command
return compack, newcontainer make the parameter object from the given data should be extended for each plug-in
Definition at line 390 of file ContainerBase.py.
def slimpy_base.Core.Interface.ContainerBase.plot | ( | self | ) |
def slimpy_base.Core.Interface.ContainerBase.readattr | ( | self | ) |
def slimpy_base.Core.Interface.ContainerBase.readbin | ( | self, | ||
i, | ||||
shape | ||||
) |
def slimpy_base.Core.Interface.ContainerBase.rm | ( | self | ) |
def slimpy_base.Core.Interface.ContainerBase.scalar_reduction | ( | self, | ||
cmd, | ||||
args, | ||||
kargs | ||||
) |
def slimpy_base.Core.Interface.ContainerBase.writeattr | ( | self, | ||
vector_dict, | ||||
file_dict | ||||
) |
Definition at line 457 of file ContainerBase.py.
def slimpy_base.Core.Interface.ContainerBase.writebin | ( | self, | ||
data, | ||||
i, | ||||
j | ||||
) |
string __copyright__ |
Initial value:
""" Copyright 2008 Sean Ross-Ross """
can be used as a test class eg vector("vec.test") returns a Vector instance with a DataContainer instance
Definition at line 9 of file ContainerBase.py.
tuple __env__ = InstanceManager() |
Definition at line 37 of file ContainerBase.py.
string __license__ |
Initial value:
""" This file is part of SLIMpy . SLIMpy is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SLIMpy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with SLIMpy . If not, see <http://www.gnu.org/licenses/>. """
Definition at line 12 of file ContainerBase.py.
Definition at line 489 of file ContainerBase.py.
tuple contained = property( _get_contained, _set_contained ) |
Definition at line 491 of file ContainerBase.py.
tuple scalar_methods = property( getScalar_methods ) |
Definition at line 472 of file ContainerBase.py.