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

Create a new Cyclus typesystem: mapstringmapstringdouble #19

Closed
gwenchee opened this issue Aug 22, 2018 · 4 comments
Closed

Create a new Cyclus typesystem: mapstringmapstringdouble #19

gwenchee opened this issue Aug 22, 2018 · 4 comments
Assignees

Comments

@gwenchee
Copy link
Collaborator

gwenchee commented Aug 22, 2018

Create a new Cyclus typesystem: mapstringmapstringdouble so that the input {commod:{proto:capacity}} can be done.

@gwenchee
Copy link
Collaborator Author

gwenchee commented Sep 6, 2018

This actually needs to be a mapstringlistmapstringdouble

commod = {'power': [{'reactor1': 1000}, {'reactor2': 500}],
              'fuel': [{'source1': 1000}, {'source2': 800}]
            }

@FlanFlanagan
Copy link
Contributor

commod = {'power': {'reactor1': 1000, 'reactor2': 500},
              'fuel': {'source1': 1000, 'source2': 800}
            }

Should be just fine? Why do you need the list?

@gwenchee
Copy link
Collaborator Author

gwenchee commented Sep 7, 2018

Upon further reflection, you are right. A list isn't needed since will already be a list?

@gwenchee
Copy link
Collaborator Author

gwenchee commented Sep 7, 2018

We can use mapstringmapstringint instead.

jbae11 pushed a commit that referenced this issue Oct 2, 2018
FlanFlanagan pushed a commit that referenced this issue Oct 16, 2018
@jbae11 jbae11 closed this as completed Nov 9, 2018
gwenchee pushed a commit that referenced this issue Apr 29, 2019
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

No branches or pull requests

3 participants