A tool used for plotting and comparing separate EnergyPlus output CSV files.
Project description
CSV Compare
This is a very basic tool used for plotting and comparing csv data from two separate csv files.
Usage
A version of the jupyter notebook is hosted at mybinder.org
How is this used?
- Open the binder (https://mybinder.org/v2/gh/mitchute/energyplus-diff-analysis/main). This may take a few minutes to build and load the container images running behind the scenes. Once completed, mybinder.org will launch the jupyter dashboard in your web browser. This looks like a file explorer.
- Launch the "Make_Plots.ipynb" jupyter notebook by clicking on it from the jupyter dashboard. This will launch a new tab in your browser with this notebook loaded and running.
- Upload your data by clicking "upload" from the jupyter dashboard. For example, you could upload and name your baseline csv file "base.csv", and your modified version csv "mod.csv".
- Back over on the "Make_Plots" jupyter notebook, update the names of your baseline and modified csv data files to match what you uploaded.
- Select how you want your data plotted. See the examples section below for additional information.
- To execute, you can select Cell >> Run All (or other available options). You can also run individual cells with the "shift+return" command."
Examples
Example 1 - Plotting all columns
As described, this plots all columns
plot(baseline_path, mod_path)
Example 2 - Plot only one series
If you only want to plot a single column from the csv data, the column name can be passed explicitly to the cols
field.
plot(baseline_path, mod_path, cols="Col Name 1")
Example 3 - Plot a selected set of columns from the csv data
The cols
field also accepts a list input for when you want to plot more than one column, but not all of them.
plot(baseline_path, mod_path, cols=["Col Name 1", "Col Name 2"])
Example 4 - Plot one series for a specified number of rows
You may also specify the range of rows you want to plot.
plot(baseline_path, mod_path, cols="Col Name 1", low_row_num=10, high_row_num=20)
Example 5 - Specify the output directory for the plots
If you want to be cheeky, can also specify the output directory.
plot(baseline_path, mod_path, plot_dir="/path/to/output_dir")
Example 6 - Only plot files with diffs
To plot only the files with diffs, you can add the plot_only_diffs
kwarg and set it to True
.
plot(baseline_path, mod_path, plot_only_diffs=True)
Example 7 - Zip plots
Once you're all done, you can zip your plots for easier downloading.
make_archive(source="plots", destination="plots.zip")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for energyplus-diff-analysis-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d747df523f9479cd2ca63d6c6e0be66953e5fbb20ef6ac52ca2ec5a6f2cfb3eb |
|
MD5 | 427f46f66b29ecb0cef351bed337f4a6 |
|
BLAKE2b-256 | b0e88e1fbe1db2e11aab9c2ddce08f0838a4e769a1889696a2cefb72e50e140b |
Hashes for energyplus_diff_analysis-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ef97d40e3ac5ecd5ae2d2dcc65c36f5f6890077a78472cb54326b17160015c4 |
|
MD5 | 0335e126908b771fae008bf6afc9d734 |
|
BLAKE2b-256 | e77c0ee7245066d419c6812db9dd2a0c7bf7b0b2cbe10d8d6b54b3020a87c089 |