Skip to content

Id=0 and nan values in DiagTrackParticles (I think it is not physical problem) #729

Answered by mccoys
akbwyfc asked this question in Q&A
Discussion options

You must be logged in to vote

Several issues here

  • False has a capital letter in python
  • You should not return False as smilei requires that you return an array of booleans of the same size as the particle array. Instead do something like p.id[p.pz>300] += 2**63
  • I told you above to use one of the last 8 bits. For instance with 2**63. You might need to learn about integer representation

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@akbwyfc
Comment options

@mccoys
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by akbwyfc
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants