PlasmaCalcs
Usage
PlasmaCalcs API
plasma_calculator
quantities
dimensions
units
hookups
addons
other_calculators
mhd
multi_run_analysis
tools
array_select
arrays
display
docs_tools
fft_tools
history
imports
io_tools
iterables
math
multiprocessing
oop_tools
binding
manage_attrs
oop_misc
os_tools
properties
pytools
sci_tools
sentinels
sql_tools
supercomputer
timing
trees
xarray_tools
plotting
defaults
errors
PlasmaCalcs
PlasmaCalcs API
tools
oop_tools
manage_attrs
use_attrs
View page source
use_attrs
PlasmaCalcs.tools.oop_tools.manage_attrs.
use_attrs
(
attrs_as_dict
=
{}
,
**
attrs_and_values
)
return decorator which sets attrs of object before running function then restores them after.
It is assumed that obj is the first arg of function.