diff --git a/src/tests/teststr.cpp b/src/tests/teststr.cpp index 3098e08..e1fe7af 100644 --- a/src/tests/teststr.cpp +++ b/src/tests/teststr.cpp @@ -60,7 +60,7 @@ int main(int argc,char *argv[]) int alive=p->lookupIndexedStr(stateAttr,"alive"); int dead=p->lookupIndexedStr(stateAttr,"dead"); int zombie=p->lookupIndexedStr(stateAttr,"zombie"); - int states[]={alive,dead,zombie}; // every ith particle should be asigned these in order + int states[]={alive,dead,zombie}; // every ith particle should be assigned these in order if(alive == -1 || dead == -1 || zombie == -1){ std::cerr<<"don't have tokens I expect!"<numParticles();i++){ diff --git a/src/tools/partjson.py b/src/tools/partjson.py index 5aec382..c511710 100644 --- a/src/tools/partjson.py +++ b/src/tools/partjson.py @@ -44,7 +44,7 @@ def toJson(particleSet): 'value': particleSet.getFixed(attr), } - # Convert indexed string attributse + # Convert indexed string attributes if attr.type == partio.INDEXEDSTR: fixedIndexedStrings[attr.name] = particleSet.fixedIndexedStrs(attr) @@ -62,7 +62,7 @@ def toJson(particleSet): attrs.append(attr) attributes[attr.name] = {'type': attr.type, 'count': attr.count } - # Convert indexed string attributse + # Convert indexed string attributes if attr.type == partio.INDEXEDSTR: indexedStrings[attr.name] = particleSet.indexedStrs(attr)