Skip to content

Commit

Permalink
Merge branch 'feat/tbrom_241_batch_new' of https://github.com/ansys/p…
Browse files Browse the repository at this point in the history
…ytwin into feat/tbrom_241_batch_new
  • Loading branch information
chrpetre committed Jun 27, 2023
2 parents 28e2148 + ffcf037 commit 5d57031
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/evaluate/test_tbrom.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ def test_instantiation_initialization_Twin_with_TbRom(self):
assert tbrom2.hasoutmcs is False
assert tbrom2.hasinfmcs(tb2field1) is True

#def test_initialization_Twin_with_TbRom_inputField(self):
# def test_initialization_Twin_with_TbRom_inputField(self):
# model_filepath = TEST_TB_ROM3 # Twin with 1 TBROM and 2 input fields both connected, 1 output
# field connected
# field connected
# twinmodel = TwinModel(model_filepath=model_filepath)
# twinmodel.initialize_evaluation()
# romname = "test" # -> exception that rom name provided is not valid
Expand All @@ -198,9 +198,9 @@ def test_instantiation_initialization_Twin_with_TbRom(self):
# assert "field name provided" in str(e)

# model_filepath = TEST_TB_ROM5 # Twin with 1 TBROM and 1 input fields connected with error, 1 output
# field connected
# -> exception that TBROM inputs are not properly connected to Twin inputs and therefore no field projection
# can be performed
# field connected
# -> exception that TBROM inputs are not properly connected to Twin inputs and therefore no field projection
# can be performed
# twinmodel = TwinModel(model_filepath=model_filepath)
# twinmodel.initialize_evaluation()
# romname = twinmodel.tbrom_names[0]
Expand All @@ -211,7 +211,7 @@ def test_instantiation_initialization_Twin_with_TbRom(self):
# assert "no common inputs" in str(e)

# model_filepath = TEST_TB_ROM3 # Twin with 1 TBROM and 2 input fields both connected, 1 output
# field connected
# field connected
# twinmodel = TwinModel(model_filepath=model_filepath)
# twinmodel.initialize_evaluation()
# romname = twinmodel.tbrom_names[0]
Expand All @@ -223,13 +223,13 @@ def test_instantiation_initialization_Twin_with_TbRom(self):

# try:
# twinmodel.initialize_evaluation(inputfields={romname: {fieldname: "test"}}) # -> snapshot path does not
# exist
# exist
# except TwinModelError as e:
# assert "snapshot path does not exist" in str(e)

# try:
# twinmodel.initialize_evaluation(inputfields={romname: {fieldname: INPUT_SNAPSHOT_WRONG}}) # -> wrong
# snapshot size
# snapshot size
# except TwinModelError as e:
# assert "is not consistent with the input field size" in str(e)

Expand Down

0 comments on commit 5d57031

Please sign in to comment.