Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorten names of files causing installation errors (#1540) #1545

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
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: 2 additions & 2 deletions idaes/core/surrogate/tests/test_onnx_surrogate.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@


def load_onnx_model_data(
name="net_st_net_5000_STM_100_s_2000000_60_5_tanh_1e-06_4096_tr_15481_Calcite_ST",
name="net_Calcite_ST",
):
onnx_folder_name = os.path.join(this_file_dir(), "data", "onnx_models")
onnx_model = onnx.load(os.path.join(onnx_folder_name, "{}.onnx".format(name)))
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_onnx_surrogate_load_and_save_from_file():

onnx_surrogate = ONNXSurrogate.load_onnx_model(
onnx_model_location=os.path.join(this_file_dir(), "data", "onnx_models"),
model_name="net_st_net_5000_STM_100_s_2000000_60_5_tanh_1e-06_4096_tr_15481_Calcite_ST",
model_name="net_Calcite_ST",
)
with TempfileManager.new_context() as tf:
dname = tf.mkdtemp()
Expand Down
Loading