Skip to content

Commit 43dcf83

Browse files
author
Oliver Smith
committed
Added energyplus trouble shooting note to docs
1 parent 377b617 commit 43dcf83

File tree

7 files changed

+41
-26
lines changed

7 files changed

+41
-26
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ authors:
2626
license: "MIT"
2727
repository-code: "https://github.com/UCL/simstock"
2828
url: "https://simstock.readthedocs.io/"
29-
version: "0.3.0"
29+
version: "0.3.1"
3030
date-released: 2026-03-24

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Full docs are available at [ReadtheDocs](https://simstock.readthedocs.io/en/late
1919

2020
## Installation
2121

22-
> **_NOTE:_** SimStock requires Python 3.11 to 3.13, as well as an EnergyPlus installation.
22+
> **_NOTE:_** SimStock requires Python 3.11 to 3.13, as well as an EnergyPlus 8.9 installation.
2323
2424

2525
After ensuring you have EnergyPlus installed, and Python 3.11-3.13, simply run
@@ -59,6 +59,12 @@ Below is an example of a typical Simstock work flow.
5959
simulation.run()
6060
```
6161

62+
### Troubleshooting
63+
64+
SimStock requires an EnergyPlus 8.9 install. In particular, SimStock needs access to the Energy+.idd file that ships with EnergyPlus.
65+
If SimStock cannot find your EnergyPlus IDD file, it will emit a ``FileNotFoundError``, see the
66+
[IDD troubleshooting guide](https://simstock.readthedocs.io/en/latest/installation.html#idd-troubleshooting).
67+
6268

6369
## Community and Support
6470

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
project = 'SimStock'
1414
copyright = '2023, Ivan Korolija, Oliver Smith, Shyam Amrith'
1515
author = 'Oliver Smith'
16-
release = '0.3.0'
16+
release = '0.3.1'
1717

1818
# -- General configuration ---------------------------------------------------
1919
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

docs/source/examples.rst

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -559,23 +559,3 @@ This will save EnergyPlus output files into a directory called ``outs/`` in your
559559
# To save EnergyPlus output files into some other directory:
560560
simulation = sim.IDFmanager(sdf, out_dir="some_other_directory")
561561
562-
563-
.. Finer grained control
564-
.. ---------------------
565-
566-
.. This can be done like this.
567-
568-
569-
.. Using built island mode
570-
.. -----------------------
571-
572-
.. That can be switched on or off like this.
573-
574-
575-
.. Common problems
576-
.. ---------------
577-
578-
.. .idd file not found
579-
.. *******************
580-
581-
.. Specifiy this here.

docs/source/installation.rst

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Installation
55

66
.. admonition:: Requirements \ \
77

8-
SimStock supports Python versions 3.11 to 3.13 and requires an installation of EnergyPlus. It is recommended that EnergyPlus .idd files are installed to ``C:\\EnergyPlus*\\Energy+.idd`` if using Windows, where ``*`` will be the EnergyPlus version number. If using Mac or Linux, it is recommended to have the EnergyPlus idd files at either ``/usr/local/EnergyPlus*/Energy+.idd`` or ``/Applications/EnergyPlus*/Energy+.idd``. Silicone Mac users should also have Rosetta installed.
8+
SimStock supports Python versions 3.11 to 3.13 and requires an installation of EnergyPlus 8.9. It is recommended that EnergyPlus .idd files are installed to ``C:\\EnergyPlus*\\Energy+.idd`` if using Windows, where ``*`` will be the EnergyPlus version number. If using Mac or Linux, it is recommended to have the EnergyPlus idd files at either ``/usr/local/EnergyPlus*/Energy+.idd`` or ``/Applications/EnergyPlus*/Energy+.idd``. Silicone Mac users should also have Rosetta installed.
99

1010
SimStock can either being installed from PyPI (recommended for most users) or in developer mode by cloning the repository.
1111

@@ -24,6 +24,35 @@ in the command line.
2424

2525
----
2626

27+
.. _idd-troubleshooting:
28+
29+
EnergyPlus IDD file location
30+
----------------------------
31+
32+
SimStock requires an EnergyPlus 8.9 IDD file (typically called ``Energy+.idd``).
33+
When creating a ``SimstockDataframe``, SimStock first looks for
34+
a user-specified IDD location. User can specify the location of their IDD file
35+
either by seeting it with an environment variable:
36+
37+
.. code-block:: bash
38+
39+
export IDD_FILE="/path/to/Energy+.idd"
40+
41+
or by passing the location as an optional parameter in Python, e.g.:
42+
43+
.. code-block:: python
44+
45+
import simstock as sim
46+
sdf = sim.read_csv("test.csv", idd_file="/path/to/Energy+.idd")
47+
48+
If no user-specified location is found, SimStock looks for an IDD file in the default locations:
49+
- Windows: ``C:\\EnergyPlus*\\Energy+.idd``
50+
- macOS/Linux: ``/usr/local/EnergyPlus*/Energy+.idd`` or ``/Applications/EnergyPlus*/Energy+.idd``
51+
52+
If no IDD file is found, SimStock raises ``FileNotFoundError``.
53+
54+
---
55+
2756
Installation for developers
2857
===========================
2958

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "simstock"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "A Python package for building stock simulations"
55
authors = [
66
"Ivan Korolija <i.korolija@ucl.ac.uk>",

src/simstock/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
plot
1414
)
1515

16-
__version__ = "0.3.0"
16+
__version__ = "0.3.1"
1717

1818
__all__ = [
1919
"SimstockDataframe",

0 commit comments

Comments
 (0)