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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc49ba367a1800142255a249ae228e9e9f6cbb53d8cb7300c972ff89566ef722 |
|
MD5 | f8e03352caa2a01f650e88d39f3024e2 |
|
BLAKE2b-256 | e94c1e4986bd11bb6c3da40d9e19e7a46d68bb8fb295f4c205f37ee2c85a9dce |
Hashes for energyplus_diff_analysis-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d58c7b551b1f4dbc8fdac8858053f051473c9d73e0fcfd982a45ecc49bc5d8ea |
|
MD5 | 07d5e796d92f1848b0a253ca1f339035 |
|
BLAKE2b-256 | aa41d330f6c6c92070b13dd7463516ea699ef08ddc790b463eb5a20fa2f8495a |