Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Oct 1, 2024
1 parent 61557cb commit ebf52fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ert/config/queue_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def from_dict(cls, config_dict: ConfigDict) -> QueueConfig:
selected_queue_system,
queue_options,
queue_options_test_run,
stop_long_running=stop_long_running,
stop_long_running=bool(stop_long_running),
)

def create_local_copy(self) -> QueueConfig:
Expand Down
2 changes: 1 addition & 1 deletion src/ert/config/workflow_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def from_file(cls, config_file: str, name: Optional[str] = None) -> "WorkflowJob
arg_types_list = cls._make_arg_types_list(content_dict)
return cls(
name=name,
internal=content_dict.get("INTERNAL"), # type: ignore
internal=bool(content_dict.get("INTERNAL", False)), # type: ignore
min_args=content_dict.get("MIN_ARG"), # type: ignore
max_args=content_dict.get("MAX_ARG"), # type: ignore
arg_types=arg_types_list,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Realization,MISFIT:FOPR,MISFIT:WOPR_OP1_108,MISFIT:WOPR_OP1_144,MISFIT:WOPR_OP1_190,MISFIT:WOPR_OP1_36,MISFIT:WOPR_OP1_72,MISFIT:WOPR_OP1_9,MISFIT:WPR_DIFF_1,MISFIT:TOTAL
0,1572.455126624968,4.663157777414048,1.2280040962512109,24.150873738474047,0.16579549917171352,16.6031985311065,0.5786173169058768,17.52338148044444,1637.3681550647357
1,564.7325372587165,4.368782497900839,32.6530612244898,2.25,7.513238617348759,7.502955389862009,4.0,3.917211792502779,626.9377867808207
2,760.2134646694443,0.6758601761400266,0.0495481141274234,0.878978328860087,0.53148428819629,10.315068719501141,0.5691876200100965,21.326953031224996,794.5605449475045
3,762.2886383355541,0.057372834892021204,2.003570229564708,89.39209245855437,1.0729962591656552,0.23633929814081966,1.963529806065796,4.454344394944445,861.468883616882
4,978.68543806519,0.6099979595035421,11.1651322515757,2.3617365751122437,0.5138762294603726,41.03398708587926,0.04177266072298375,27.46179846677778,1061.8737392942219
0,1572.45515162,4.66315778,1.2280041,24.15087374,0.1657955,16.60319853,0.57861732,17.52338148,1637.36818006
1,564.73254573,4.3687825,32.65306122,2.25,7.51323862,7.50295539,4.0,3.91721179,626.93779525
2,760.21348181,0.67586018,0.04954811,0.87897833,0.53148429,10.31506872,0.56918762,21.32695303,794.56056209
3,762.28864138,0.05737283,2.00357023,89.39209246,1.07299626,0.2363393,1.96352981,4.45434439,861.46888666
4,978.68545447,0.60999796,11.16513225,2.36173658,0.51387623,41.03398709,0.04177266,27.46179847,1061.8737557
2 changes: 1 addition & 1 deletion tests/ert/unit_tests/test_libres_facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def test_summary_collector(
def test_misfit_collector(snake_oil_case_storage, snake_oil_default_storage, snapshot):
facade = LibresFacade(snake_oil_case_storage)
data = facade.load_all_misfit_data(snake_oil_default_storage)
snapshot.assert_match(data.to_csv(), "misfit_collector.csv")
snapshot.assert_match(data.round(8).to_csv(), "misfit_collector.csv")

with pytest.raises(KeyError):
# realization 60:
Expand Down

0 comments on commit ebf52fd

Please sign in to comment.