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

uninformative error message when writing updated zero values of logarithmic data #9585

Open
eivindjahren opened this issue Dec 18, 2024 · 0 comments
Labels

Comments

@eivindjahren
Copy link
Contributor

Image

Can be reproduced with https://github.com/eivindjahren/ert/tree/update_err_msgs/test-data/ert/counter_examples/math_domain_error_0

traceback of error is:

Traceback (most recent call last):
  File "/.../ert/src/ert/gui/simulation/run_dialog.py", line 426, in _on_event
    @Slot(object)

  File "/.../ert/src/_ert/threading.py", line 85, in _handler
    raise current_exception
_ert.threading.ErtThreadError: math domain error in thread 'ert_gui_simulation_thread'
 Traceback (most recent call last):
  File "/.../ert/src/_ert/threading.py", line 57, in run
    super().run()
  File "/.../opentelemetry_.py", line 129, in __wrap_threading_run
    return call_wrapped(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/.../ert/src/ert/gui/simulation/run_dialog.py", line 354, in run
    self._run_model.start_simulations_thread(
  File "/usr/lib/python3.12/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/.../ert/src/ert/run_models/base_run_model.py", line 355, in start_simulati
    raise e
  File "/.../ert/src/ert/run_models/base_run_model.py", line 331, in start_simulati
    self.run_experiment(
  File "/usr/lib/python3.12/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/.../ert/src/ert/run_models/ensemble_smoother.py", line 106, in run_experim
    self._evaluate_and_postprocess(
  File "/.../ert/src/ert/run_models/base_run_model.py", line 693, in _evaluate_and_
    create_run_path(
  File "/.../ert/src/ert/enkf_main.py", line 263, in create_run_path
    _generate_parameter_files(
  File "/.../ert/src/ert/enkf_main.py", line 111, in _generate_parameter_files
    export_values = node.write_to_runpath(Path(run_path), iens, fs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ert/src/ert/config/gen_kw_config.py", line 293, in write_to_runpath
    b = math.log(data[tf.name], 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant