v_sim.DataLoadable¶
- Subclasses:
Methods¶
- Inherited:
v_sim.Data (24), v_sim.NodeArray (55), GObject.Object (37), v_sim.Maskable (3), v_sim.Boxed (2), v_sim.Pointset (9)
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
- Inherited:
v_sim.Data (2), v_sim.NodeArray (3), v_sim.Boxed (2), v_sim.Pointset (4)
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
automatically reload on modification |
||
r |
representation of the filenames |
||
r |
|
||
r/w/co |
number of input files |
||
r/w |
Refresh period in seconds |
||
r |
loading status |
Signals¶
Fields¶
- Inherited:
v_sim.Data (2), v_sim.NodeArray (5), GObject.Object (1), v_sim.Maskable (1), v_sim.Boxed (1)
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.DataLoadable(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque structure storing
v_sim.DataLoadableobjects.New in version 3.8.
- classmethod getErrorQuark()¶
- Returns:
a #GQuark for
v_sim.DataLoadablemethod errors.- Return type:
Internal function to handle error.
- classmethod new_fromCLI()¶
- Returns:
a newly allocated
v_sim.Dataif required.- Return type:
Read the command line option and set the filenames for a new
v_sim.Data. The object is not loaded (files are not parsed), just prepared.
- checkFile(fileType)¶
- Parameters:
fileType (
int) – a file type.- Raises:
- Returns:
Trueif the file set for fileType is a valid file.- Return type:
Tests if the provided file for a given fileType is a valid file.
New in version 3.8.
- getFilename(type)¶
- Parameters:
type (
int) – when the loadable is multi-files, the type of file.- Returns:
a filename.
- Return type:
Returns the source filename for type.
New in version 3.8.
- getNSets()¶
- Returns:
the set number of sets that has been read.
- Return type:
Some loadable format can store several
v_sim.Data(like a MD trajectory), see the iSet attribute inv_sim.DataLoadable.load().New in version 3.8.
- getSetId()¶
- Returns:
the set id that has been loaded.
- Return type:
Some loadable format can store several
v_sim.Data(like a MD trajectory), see the iSet attribute inv_sim.DataLoadable.load().New in version 3.8.
- getSetLabel(iSet)¶
-
Retrieves a possible label for the given set. If iSet is the currently loaded set, then this method is equivalent to calling
v_sim.Data.getDescription().New in version 3.8.
- load(iSet, cancel)¶
- Parameters:
iSet (
int) – an integer.cancel (
Gio.CancellableorNone) – a cancellation object.
- Raises:
- Returns:
Trueif delf is successfully loaded.- Return type:
Call the load class method of self. Also store the last read time for each file of self.
New in version 3.8.
- reload(cancel)¶
- Parameters:
cancel (
Gio.CancellableorNone) – a cancellation object.- Raises:
- Returns:
Trueif reload of self is successful.- Return type:
A wrapper to load again the same sub set of self.
New in version 3.8.
- setNSets(nSets)¶
- Parameters:
nSets (
int) – a positive number.- Returns:
Trueif the actual number of sets for self has changed.- Return type:
Setup the number of
v_sim.Datathat self is storing on disk.New in version 3.8.
- setSetLabel(label, iSet)¶
-
This method is used to store a description of the given data. Before using this method, the number of possible node sets must have been defined using
v_sim.DataLoadable.setNSets(), if not, only iSet == 0 is allowed.
Property Details¶
- v_sim.DataLoadable.props.auto_refresh¶
-
automatically reload on modification
- v_sim.DataLoadable.props.label¶
-
representation of the filenames
- v_sim.DataLoadable.props.n_files¶
- Name:
n-files- Type:
- Default Value:
1- Flags:
number of input files
- v_sim.DataLoadable.props.refresh_period¶
-
Refresh period in seconds