Skip to content

Commit

Permalink
fix(cli.py): reference to eprad
Browse files Browse the repository at this point in the history
  • Loading branch information
Taoning Wang committed Sep 15, 2023
1 parent b97454c commit 86eee95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frads/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import pywincalc as pwc

from frads import ncp
from frads.eprad import EPModel
from frads.epjson2rad import epjson2rad
from frads.eprad import EnergyPlusModel
from frads.epjson2rad import epjson_to_rad
from frads.room import make_room
from frads.window import PaneRGB, get_glazing_primitive
from frads.matrix import (
Expand Down Expand Up @@ -469,10 +469,10 @@ def epjson2rad_cmd() -> None:
parser.add_argument("fpath", type=Path)
parser.add_argument("-run", action="store_true", default=False)
args = parser.parse_args()
epmodel = EPModel(args.fpath)
epmodel = EnergyPlusModel(args.fpath)
if "FenestrationSurface:Detailed" not in epmodel.epjs:
raise ValueError("No windows found in this model")
zones = epjson2rad.epjson2rad(epmodel.epjs)
zones = epjson_to_rad(epmodel)
for zone in zones:
write_ep_rad_model(f"{zone}.rad", zones[zone])

Expand Down

0 comments on commit 86eee95

Please sign in to comment.