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

Refactor/data asset shouldnt need mutable evaluation parameters #634

Conversation

abegong
Copy link
Member

@abegong abegong commented Aug 18, 2019

  • Drop bind_evaluation_parameters function.
  • Pass a copy of the returned value from get_parameters_in_evaluation_parameter_store_by_run_id so that it's not mutable.

I think I misread the DataAsset code earlier. That makes this a simple deletion instead of a real refactor.

This PR should be reviewed and merged after #633.

… value from get_parameters_in_evaluation_parameter_store_by_run_id
@abegong abegong changed the base branch from v0.8.0_prep to refactor/convert_evaluation_parameter_to_store August 20, 2019 19:58
@@ -1082,43 +1082,12 @@ def get_parameters_in_evaluation_parameter_store_by_run_id(self, run_id):
None
"""
if self.evaluation_parameter_store.has_key(run_id):
return self.evaluation_parameter_store.get(run_id)
return copy.deepcopy(
Copy link
Member

Choose a reason for hiding this comment

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

Is this still needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure, tbh.

I know I misread the way binding worked, but without this copy, the potential to do the same thing is still there. I think we're better off keeping it, just in case. Not deeply committed to that opinion, though...

@abegong abegong merged commit 0ccd1c4 into refactor/convert_evaluation_parameter_to_store Aug 20, 2019
@abegong abegong deleted the refactor/data_asset_shouldnt_need_mutable_evaluation_parameters branch August 20, 2019 22:29
abegong added a commit that referenced this pull request Aug 22, 2019
Update TODOs and a few dosctrings and tests, per notes from reviews on #630 - #634
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants