iode.Scalar.copy
- Scalar.copy() Self[source]
Return a copy of the current Scalar.
Examples
>>> from iode import Scalar, scalars, SAMPLE_DATA_DIR >>> scalars.load(f"{SAMPLE_DATA_DIR}/fun.scl") Loading .../fun.scl 161 objects loaded >>> scalars["acaf1"] Scalar(0.0157684, 1, 0.00136871) >>> copied_scl = scalars["acaf1"].copy() >>> copied_scl Scalar(0.0157684, 1, 0.00136871)