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

Bug related to show_progress argument in compute_totals #1786

Closed
1 of 2 tasks
JustinSGray opened this issue Dec 2, 2020 · 0 comments · Fixed by #1794
Closed
1 of 2 tasks

Bug related to show_progress argument in compute_totals #1786

JustinSGray opened this issue Dec 2, 2020 · 0 comments · Fixed by #1794
Assignees
Labels

Comments

@JustinSGray
Copy link
Member

Summary of Issue

the wrong kind of attribute is being written to in some case

Issue Type

Description

Bug reported by user when they had show_progress turned on:

p.check_totals(wrt=['traj.ballistic.states:omega'],show_progress=True)
  File "/home/jsgray/git/OpenMDAO/openmdao/core/problem.py", line 1527, in check_totals
    Jfd = total_info.compute_totals_approx(initialize=True, progress_out_stream=out_stream)
  File "/home/jsgray/git/OpenMDAO/openmdao/core/total_jac.py", line 1499, in compute_totals_approx
    sub_do_ln=model._linear_solver._linearize_children())
  File "/home/jsgray/git/OpenMDAO/openmdao/core/group.py", line 2533, in _linearize
    approximation.compute_approximations(self, jac=jac, total=True)
  File "/home/jsgray/git/OpenMDAO/openmdao/approximation_schemes/finite_difference.py", line 198, in compute_approximations
    self._compute_approximations(system, jac, total, system._outputs._under_complex_step)
  File "/home/jsgray/git/OpenMDAO/openmdao/approximation_schemes/approximation_scheme.py", line 407, in _compute_approximations
    self._progress_out.write(f"{fd_count+1}/{len(full_idxs)}: Checking "
AttributeError: '_ReprClass' object has no attribute 'write'

Example

User couldn't provide example case. We'll have to work it out from the error msg

@JustinSGray JustinSGray added the bug label Dec 2, 2020
@DKilkenny DKilkenny self-assigned this Dec 7, 2020
@project-bot project-bot bot added this to In progress in OpenMDAO Dev [Read only] Dec 7, 2020
OpenMDAO Dev [Read only] automation moved this from In progress to Done Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants