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

Duplicate keys in ace.Library #740

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Duplicate keys in ace.Library #740

wants to merge 6 commits into from

Conversation

sellitforcache
Copy link

Hi guys!

The new naming schemes in the ENDFB/VII data give them two names (eg 1001.80c in xsdir and 1001.710nc as the filename). The current ace module will name it as the filename only (1001.710nc) in the library, so entering a key of '1001.80c' doesn't work. This small change fixes that.

I did this for WARP, and figured it might be helpful for other people too.

@scopatz scopatz added this to the v0.6 milestone Jul 2, 2015
@scopatz
Copy link
Member

scopatz commented Jul 2, 2015

Hi @sellitforcache! Thanks for putting this in. There seems to be an build error. I am going to try relaunching. (Also, sorry for the slow reply.... vacation _)

@@ -331,6 +333,8 @@ class Library(object):
temp_in_K = round(temp * 1e6 / 8.617342e-5)
print("Loading nuclide {0} at {1} K".format(name, temp_in_K))
self.tables[name] = table
if name_old:
Copy link
Member

Choose a reason for hiding this comment

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

This case will also be skipped if name_old is a str and has length 0. Is this desirable?

@sellitforcache
Copy link
Author

Hi Anthony,

I'd say having the case skipped on len=0 is desirable. As for the build error... I'm not sure what it's about. Who is travis, why doesn't he have HDF5, and why is he trying to import pyne from the build directory?

@sellitforcache
Copy link
Author

There is an error for loading sab tables this way. I will fix and request a new pull. But is there something else I should be doing to make the test build work correctly?

@scopatz
Copy link
Member

scopatz commented Jul 22, 2015

Relaunching.

@scopatz
Copy link
Member

scopatz commented Jul 22, 2015

Hi @sellitforcache - Also is there any way you could add a test, please, for the new naming convention. Thanks!

@scopatz
Copy link
Member

scopatz commented Jul 22, 2015

Also, super sorry about the delay stemming from CI breakage.

@makeclean
Copy link
Contributor

@sellitforcache is there any way you could add some tests for your feature?

@gonuke gonuke modified the milestones: v0.6, Deferred Aug 11, 2020
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.

None yet

4 participants