-
Notifications
You must be signed in to change notification settings - Fork 13
The Reader Class
-
JSONdir=None- This should be the name of the sub-directory that will contain your JSON files, if you are not running python from/path/to/Firefly/datait should be the absolute path. -
options=None- AnOptionsinstance, if you have created one you can pass it here.Nonewill generate default options.reader.options.listKeys()will give you a list of the different available options you can set usingreader.options["option_name"] = option_value. -
write_startup='append'- This is a flag for whetherstartup.jsonfile should be written. It has 3 values:True-> writes a newstartup.jsonthat will contain only this visualization,'append'-> which will add this visualization to an existingstartup.json(or create a new one), this is the default option, orFalse-> which will not add an entry tostartup.json. -
max_npart_per_file=10000- The maximum number of particles saved per file, don't use too large a number or you will have trouble loading the individual files in. -
prefix='Data'- What you would like your.jsonfiles to be called when you runreader.dumpToJSON. The format is(prefix)(particleGroupName)(fileNumber).json. -
clean_JSONdir=0- Whether you would like to delete all.jsonfiles in theJSONdir. Usually not necessary (sincefilenames.jsonwill be updated) but good to clean up after yourself.
- Home
- Getting Started
-
Controls
- Filtering
- Tweening (in development)
- Coloring by Variable (in development)
- Projecting along line-of-sight (in development)
- Python Frontend
- Advanced Topics