Resolve "sampling_frequency and duration should be saved in the CBCResult"
Closes #332 (closed)
Merge request reports
Activity
added Feature-request Good First Issue labels
added 1 commit
- be5cc6dd - Added start_time, duration, and sampling_frequency to the CBCResult
added 1 commit
- 6f49ede7 - Consistently changed ValueErrors to AttributeErrors
changed milestone to %0.4.5
Hey @moritz.huebner should the exceptions you changed be
KeyError
rather thanAttributeError
? Don't they come down to keys being missing from the meta data?Yeah but to the user it looks like they are accessing an attribute. For example, they might do something like this:
import bilby res = bilby.core.result.read_in_result('res.json') print(res.sampling_frequency) <-- Raises Error
If
res.sampling_frequency
is not accessible, I would expect anAttributeError
, not aKeyError
.- Resolved by Moritz Huebner
added 2 commits
changed milestone to %0.5.0
mentioned in commit e2cb1d50