Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/machines/generate_machine_cim.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

"""

import argparse
import json
import os
from pprint import pprint
Expand Down Expand Up @@ -899,5 +900,6 @@ def convert_ws_to_inputs(ws_location):

# CIM document is valid and can be encoded correctly, so ready to
# store it in the specified location as JSON:
pyesdoc.write(cim_out, CIM_OUT_PATH, encoding=encoding)
pyesdoc.write(
cim_out, CIM_OUT_PATH, encoding=pyesdoc.constants.ENCODING_JSON)
print("Machine CIM document successfully written to filesystem.")