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

Redoing PR for fixes #57 and #60 (and maybe #59) #62

Merged
merged 11 commits into from
Apr 29, 2016

Conversation

chrisnatali
Copy link
Contributor

Closes #60, #59
Assigning to @vr2262 (as my trigger was too quick on merging my own PR last time)

@vr2262
Copy link
Contributor

vr2262 commented Apr 28, 2016

I'll take care of this tomorrow morning.

@vr2262 vr2262 self-assigned this Apr 28, 2016
@@ -255,11 +280,15 @@ def network(self):
return self._network

@property
def original_metrics(self):
"""returns the original (unprocessed) metrics data_frame"""
return self._original_metrics
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is original_metrics a property and not just an attribute?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to keep consistent with _network and _metrics. Better ideas welcome.
I don't like original_metrics being there at all, but the dependency in sequencer was hard to get rid of quickly. Will address that with large refactoring or rewrite.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh yeah, now that you mention it there's a lot of property weirdness going on here... May as well clean it up in a different PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Opened #63

nwp = NetworkPlan(network, metrics, prioritize='Population', proj='wgs4')
model = EnergyMaximizeReturn(nwp)
model.sequence()
#todo: check the result
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Though this catches fix#57, we should make sure the results are valid in some way

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you check against a known-good result?

@vr2262
Copy link
Contributor

vr2262 commented Apr 29, 2016

Is this a good and happy PR now?

@chrisnatali
Copy link
Contributor Author

I think so. Let's keep in mind #64 (this basically needs an overhaul, so lots of nit-picking isn't productive). If you don't see anything glaring, I'm gonna do a test on some of the failed scenarios in modelrunner and then release.

@vr2262
Copy link
Contributor

vr2262 commented Apr 29, 2016

Ship it :shipit:

@chrisnatali chrisnatali merged commit c18d663 into master Apr 29, 2016
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.

2 participants