GithubHelp home page GithubHelp logo

Handling failed model building about msm_we HOT 2 OPEN

jdrusso avatar jdrusso commented on June 6, 2024
Handling failed model building

from msm_we.

Comments (2)

jdrusso avatar jdrusso commented on June 6, 2024

Example:

This was a run that I initialized and ran to model building + optimization, where it crashed. I started it again with w_run, where it then completed the model building successfully, performed the optimization, and then failed with

exception caught; shutting down
-- ERROR    [w_run] -- error message: 'WEDriver' object has no attribute '_parent_map'
-- ERROR    [w_run] -- Traceback (most recent call last):
  File "/home/jd/westpa/src/westpa/cli/core/w_run.py", line 65, in run_simulation
    sim_manager.finalize_run()
  File "/home/jd/westpa/src/westpa/core/sim_manager.py", line 815, in finalize_run
    self.invoke_callbacks(self.finalize_run)
  File "/home/jd/westpa/src/westpa/core/sim_manager.py", line 140, in invoke_callbacks
    fn(*args, **kwargs)
  File "/home/jd/msm_we/msm_we/westpa_plugins/optimization_driver.py", line 143, in do_optimization
    self.update_westpa_pcoord(new_pcoord_map)
  File "/home/jd/msm_we/msm_we/westpa_plugins/optimization_driver.py", line 380, in update_westpa_pcoord
    parent_state_index = get_segment_parent_index(segment)
  File "/home/jd/research/SynD/synd/westpa/propagator.py", line 50, in get_segment_parent_index
    parent_map = sim_manager.we_driver._parent_map
AttributeError: 'WEDriver' object has no attribute '_parent_map'

It seems like when I launched it again, the _parent_map was not populated, so it fails

from msm_we.

jdrusso avatar jdrusso commented on June 6, 2024

Part of this is because of the way I specify restarting iterations.

the max_iterations WESTPA gets is "number of iterations between optimizations", then the optimization plugin extends that.

But that means when I re-initialize the system, it sees the run as completed.

I can run the plugin as post-iteration, when n_iter % restart_interval == 0 instead.

from msm_we.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.