Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #254 from simphony/update-cuba-generate-uuid
Browse files Browse the repository at this point in the history
Update  cuba_generate.py generated dtype is uuid.UUID
  • Loading branch information
kitchoi committed Dec 16, 2015
2 parents 2c15ac8 + 5fdd79b commit d1f0355
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simphony/scripts/cuba_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def keywords(input, output):
'from collections import namedtuple\n',
'\n',
'import numpy\n',
'import uuid\n',
'\n',
'\n',
'ATTRIBUTES = [\n'
Expand All @@ -156,7 +157,7 @@ def keywords(input, output):
'\n',
'KEYWORDS = {\n']
data_types = {
'uuid': "'uuid'",
'uuid': 'uuid.UUID',
'string': 'numpy.str',
'double': 'numpy.float64',
'integer': 'numpy.int32'}
Expand Down

0 comments on commit d1f0355

Please sign in to comment.