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

Error message fix #930

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dymos/transcriptions/pseudospectral/pseudospectral_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,15 @@ def _configure_solve_segments(self, state_name, options, phase):
if options['fix_final']:
raise ValueError(f'Cannot use solve_segments in phase ({phase.name}) for state '
f'({state_name}) with forward propagation when fix_final=True.'
f' Either set fix_final=False or set solve_segments=\'reverse\'')
f' Either set fix_final=False or set solve_segments=\'backward\'')

# Backward propagation
if options['solve_segments'] == 'backward':
# Neither 'fix_initial' nor 'input_initial' may be True.
if options['fix_initial']:
raise ValueError(f'Cannot use solve_segments in phase ({phase.name}) with '
f'backward propagation when fix_initial=True. Either set '
f'fix_final=False or set solve_segments=\'reverse\'')
f'fix_final=False or set solve_segments=\'backward\'')
elif options['input_initial']:
raise ValueError(f'Cannot use solve_segments in phase ({phase.name}) with '
f'backward propagation when input_initial=True. Either set '
Expand Down