* fixed circuit dependency problem (in a slightly hacky way)
* `energy` func doesn't need `max_sample_period`
* implemented `utils.timedelta64_to_secs()