Metadata-Version: 2.1
Name: cmerg
Version: 0.1
Summary: Python parser for CarMaker ERG files.
Home-page: https://github.com/danielhrisca/cmerg
Author: Daniel Hrisca
Author-email: daniel.hrisca@gmail.com
License: MIT
Description: # cmerg
        Python parser for CarMaker ERG files with Pandas dataframe export.
        
        ##
        
        ## Use and Examples
        
        Moslty these are notes for myself but hopefully someone else finds them useful.
        
        ### Examples
        
        Make sure that all the dependencies are installed.
        
        ``` pip install asammdf numpy ```
        
        Import the package folder.
        
        ``` import cmerg ```
        
        Create ERG file object. (Using example file from repo)
        
        ``` log1 = cmerg.ERG('test-data/Test-Dataset-1_175937.erg') ```
        
        List of the signals in the file.
        
        ``` log1.signals ```
        
        Save the vehicle speed signal to a variable.
        
        ``` speed = log1.get('Vhcl.v') ```
        
        Plot signal.
        
        ``` speed.plot() ```
        
        Add signal to dataframe.
        
        ``` python
        
        # New easy call to return a pandas dataframe.
        df = log1.to_pd()
        
        ```
        
        ``` python
        
        # Simple example of adding ERG data to pandas.
        # TODO: Make 'toPd()' call
        import cmerg
        import pandas as pd
        import numpy as np
        
        log1 = cmerg.ERG('data-file.erg')
        
        speed = log1.get('Vhcl.v')
        
        t = np.array(speed.timestamps)
        spd = np.array(speed.samples)
        
        df = pd.DataFrame({'time':t, 'speed':spd})
        
        ```
        
Keywords: carmaker erg development
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: ~=3.4
Description-Content-Type: text/markdown
