Skip to content

Commit

Permalink
fix(translate): Fix bug related to OpenStudio CLI not recognizing .gbxml
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jul 1, 2024
1 parent 20964a4 commit 669426f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dragonfly_energy/cli/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ def model_to_gbxml(model_file, multiplier, no_plenum, no_ceil_adjacency,
f_name = f_name.replace('.hbjson', '.xml').replace('.hbpkl', '.xml')
out_path = os.path.join(out_directory, f_name)
elif output_file.endswith('.gbxml'): # avoid OpenStudio complaining about .gbxml
f_name = os.path.basename(model_file).lower()
f_name = f_name.replace('.gbxml', '.xml')
out_path = os.path.join(out_directory, f_name)
preparedir(out_directory)

# re-serialize the Dragonfly Model
Expand Down

0 comments on commit 669426f

Please sign in to comment.