Changes between Version 25 and Version 26 of common_errors


Ignore:
Timestamp:
12/15/16 12:24:03 (10 months ago)
Author:
pelupes
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • common_errors

    v25 v26  
    55[wiki:common_errors#CommonmistakesandPitfalls common mistakes and pitfalls], a selection of [wiki:common_errors#Commonerrormessage common error messages], which may not be easily decipherable  
    66and a list of [wiki:common_errors#Codespecificissues code specific issues]. 
     7 
     8== particle set attributes == 
     9 
     10Accessing an attribute of a particle set in memory currently returns a reference to the data: 
     11{{{ 
     12x=particles.x 
     13x[5]=5 | units.m 
     14}}} 
     15will change particles[5].x. This is not the case for remote particle sets; in this case a reference to a copy of the data is returned. 
     16In older versions of AMUSE this was not the case: in memory sets also returned a reference to a copy. This is something to  
     17be aware of (especially with older scripts).   
    718 
    819== Closing file after reading a set ==