idsrosettacode¶
idsrosettacode retrieves the size of IDS objects from a database entry and shows IDS size in bytes and the time taken to read each object. It also shows total size of all IDS objects in the data entry. It shows total time taken to read all objects from the data entry. It is helpful for performance check of ids objects.
Syntax idsrosettacode¶
$ idsrosettacode -h Usage: idsrosettacode [-h] [-i INPUTCSV] [-m MAPPING] [--varcol VARCOL] [--pathcol PATHCOL] [--tracol TRACOL] [--timeloc TIMELOC] [--mapping-version MAPPING_VERSION] [--convert-to CONVERT_TO] [-b BACKEND] [-d DATABASE] [--dbtype DBTYPE] [-r ROW] [-v] [--debug] This script applies mapping of a non-IDS database content (e.g. ITPA DBs)into IDS rules. replaced by ids_rosetta_code.py Options: -h, --help show this help message and exit -i, --inputcsv INPUTCSV Path to csv file containing the external database content (default=HDB5.2.3.csv, the H-mode DB will be downloaded from https://osf.io/zhwa3/ automatically if not present) -m, --mapping MAPPING Path to csv-formatted mapping file (default=/home/docs/checkouts/readthedocs.org/user_bui lds/imas-idstools/envs/stable/lib/python3.11/site-pack ages/idstools/scripts/bin/mappings/h-mode-db-mapping.c sv) --varcol VARCOL Name of the column of the mapping file listing all DB variables (default=DB_VARIABLE) --pathcol PATHCOL Name of the column of the mapping file listing the paths to store allDB variables into IDS fields (default=IDS_PATH) --tracol TRACOL Name of the column of the mapping file listing the transformationsto be done on DB variables (default = summary) (default=TRANSFORMATION) --timeloc TIMELOC Name of the IDS from which the time will be extracted to populate time-empty IDSs (default=summary --mapping-version MAPPING_VERSION Data dictionary version for which the mapping was expressed --convert-to CONVERT_TO If enabled, convert IDS to the specified version of the data dictionary before storing.Otherwise, store using the mapping-version. -b, --backend BACKEND backend format (default=ASCII) -d, --database DATABASE target IMAS database name (default=test) --dbtype DBTYPE Type of database (default = H-MODE) (default=H-MODE) -r, --row ROW Stores data for the given row/entry of the input database (processes all rows otherwise) -v, --verbose Run in verbose mode --debug Run in debug mode
Example idsrosettacode¶
$ idsrosettacode