This is an abstract package.
It should be capable of managing (store, create, repeat, log, etc.) a generic and abstract workFlow of algorithms.
This module is called in a new process by the rpserver: Example: python operation_async_launcher.py 4 user_name_label 4 is the operation id stored in the DataBase in the table “OPERATIONS” It gets the algorithm, and the adapter with its parameters from database. And finally launches the computation. The results of the computation will be stored by the adapter itself.
Created on Nov 1, 2011
Bases: json.encoder.JSONEncoder
Custom encoder class. Referring towards “to_json” method, when found, or default behaviour otherwise.
Convert date into string, after internal format
Extract the first doc entry from a matlab file.
Parameters: |
|
---|---|
Returns: | a String with [number] [memory unit measure] |
Format a datetime.timedelta. :param timedelta: object timedelta to format :param most_significant2: Will show only the 2 most significant units (ex: hours, minutes). Default True.
Generate new Global Unique Identifier. This identifier should be unique per each station, and unique for different machines.
Check If MATLAB is installed on current system. Return True or False. Return True, when MATLAB executable is found in Path.
Compute non-existent file name, in storage_folder. Try file_name, and if already exists, try adding a number.
Returns: | True when Matlab/Octave path hasn’t been set or not existent installation. |
---|
From JSON with Unicodes, return a dictionary having strings as keys. Loading from DB a JSON will return instead of string keys, unicodes.
Prepare a File System Path for passing into an URL.
Limit the time dimension when retrieving from TS. If total time length is greater than MAX, then retrieve only the last part of the TS
Parameters: |
|
---|---|
Returns: | python slice |