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

Refactored time_extents away in favor of housing extents in param_comp #952

Merged
merged 20 commits into from
Jul 21, 2023

Conversation

robfalck
Copy link
Contributor

@robfalck robfalck commented Jul 18, 2023

Summary

In support of upcoming changes, it made sense to treat t_initial and t_duration as parameters that are always present in the ParameterComp. This change is mostly invisible to the user with a single backwards compatibility issue noted below.

Related Issues

Backwards incompatibilities

t_initial and t_duration are now inputs to the phase and cannot be connected to other targets (other than via promotion.)
Their values are available as outputs through t_initial_val and t_duration_val.

New Dependencies

  • Minimum OpenMDAO version is now 3.26.0

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -131,8 +126,8 @@ def configure_time(self, phase):
if not time_options['input_duration'] and not self._implicit_duration:
indeps.append('t_duration')

for var in indeps:
phase.time_extents.add_output(var, val=default_vals[var], units=time_units)
# for var in indeps:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can just delete these lines.

…hanged.

Made test for parameter connections more specific to avoid picking up t_initial and t_duration.
…m t_duration_val.

Included model_data.dat in the package data for the linkage report test.
@robfalck robfalck changed the title Refactored time_extends away in favor of housing extents in param_comp Refactored time_extents away in favor of housing extents in param_comp Jul 20, 2023
@coveralls
Copy link

coveralls commented Jul 20, 2023

Coverage Status

coverage: 92.588% (+0.04%) from 92.55% when pulling b91010e on robfalck:time_refactor into 9a370ad on OpenMDAO:master.

@robfalck robfalck merged commit 79ca083 into OpenMDAO:master Jul 21, 2023
8 checks passed
@robfalck robfalck deleted the time_refactor branch August 14, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants