module documentation
FiftyOne operator utilities.
Class |
|
A logging handler that reports all logging messages issued while the handler's context manager is active to the provided execution context's set_progress() ... |
Function | is |
Returns whether a method is overridden in a subclass. |
Function | is |
Determines if a feature is considered "new" based on its release date. |
Returns whether a method is overridden in a subclass.
Parameters | |
base | the base class |
sub | an instance of the subclass |
method | the name of the method |
Returns | |
True/False |
Determines if a feature is considered "new" based on its release date.
A feature is considered new if its release date is within the specified number of days.
Examples:
is_new("2024-11-09") # True if today's date is within 30 days after 2024-11-09 is_new(datetime(2024, 11, 9), days=15) # True if today's date is within 15 days after November 9, 2024 is_new("2024-10-01", days=45) # False if today's date is more than 45 days after October 1, 2024
Parameters | |
release | the release date of the feature, in one of the following formats:
|
days:30 | the number of days for which the feature is considered new |
Returns | |
True/False whether the release date is within the specified number of days |