Changeset 2453


Ignore:
Timestamp:
Mar 26, 2010 10:28:49 AM (9 years ago)
Author:
jwatson
Message:

Added some error handling logic to the extensive form writer, to deal with an unexpected (but valid) exception.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/coopr/pysp/ef_writer_script.py

    r2452 r2453  
    140140                                                                               options.verbose,
    141141                                                                               generate_weighted_cvar, cvar_weight, risk_alpha)
     142
     143   if (scenario_tree is None) or (binding_instance is None) or (scenario_instances is None):
     144      raise RuntimeError, "Failed to write extensive form."     
    142145
    143146   if options.solve_ef is True:
Note: See TracChangeset for help on using the changeset viewer.