Derrick Chambers
Derrick Chambers
Wouldn't it be simpler like this, or is there a reason you are avoiding `bool`? ```python def __bool__(self): return bool(self.events) ```
Hey @calum-chamberlain , The hypoinverse example may have been a bit distracting. I think the primary purpose of this, at least internal to obspy, would be for data validation before...
>>> Are you proposing that obspy would just allow the ability to declare validators, and that other people would write them for their use-case Exactly. Obspy would use the validator...
@dsentinel, thanks for the input. A lot of this was inspired by pytest which registers fixtures through decorator and which uses plain asserts in tests statements. >>> We don't want...
Hey @dsentinel, Good idea. I like the idea of the `validate` method returning a `Failures` object which contains a list of `Failure` instances in the `failures` attribute. The `__bool__` would...
Hmmmm... out of curiosity what is the use case for this?
Ok makes sense. I like the idea @megies mentioned better than allowing yet another input to the standard constructor for two reasons: 1.` UTCDateTime` already takes a whole lot (too...
Cool, looks good. Just a thought, would it ever be useful to have a start of month, year, minute or hour? If so maybe this should be made general like...
@megies, Is this ready for review?
@heavelock not at all. I suppose this is almost done. It's not perfect but it at least adds some level of support for numpy datetimes. I will try to schedule...