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

Fix for zeta issues. #412

Merged
merged 4 commits into from
Sep 25, 2015
Merged

Conversation

aoifeboyle
Copy link
Contributor

Response to issue #411

@@ -153,6 +153,8 @@ class ZetaData(BaseAtomicDataProperty):
outputs = ('zeta_data',)

def _filter_atomic_property(self, zeta_data, selected_atoms):
for temperature in range(42000, 82000, 2000):
Copy link
Member

Choose a reason for hiding this comment

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

We should extrapolate and not increase the storage. I mean in the end how far it is outside -> outside means use the last valid value

@wkerzendorf
Copy link
Member

@aoifeboyle instead of using interpolate.interp1d use this: interpolate.UnivariateSpline(x, y, k=1, s=0, ext=3) that should work to use the last values

@aoifeboyle
Copy link
Contributor Author

@wkerzendorf Ok, I've had a look at that and it only works with 1-D arrays for the x and y values, so it will only work if I create a loop and interpolate individually for each ion. Is that alright?

@wkerzendorf
Copy link
Member

@aoifeboyle - that's right. I'm just fixing this - I'll make a PR to your PR. I should be done momentarily. We can also skype if you want.

@wkerzendorf
Copy link
Member

@aoifeboyle I made a PR to your PR. have a look and merge if happy.

aoifeboyle pushed a commit that referenced this pull request Sep 25, 2015
@aoifeboyle aoifeboyle merged commit 165cb42 into tardis-sn:master Sep 25, 2015
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