blendernc.core package

blendernc.core.dates

blendernc.core.dates.convert2dt(dates)
blendernc.core.dates.days_in_month(datetimes, selected_month, selected_year)
blendernc.core.dates.dt2cal(dt)

Convert array of datetime64 to a calendar array of year, month, day, hour, minute, seconds, microsecond with these quantites indexed on the last axis.

Parameters
dtdatetime64 array (…)

numpy.ndarray of datetimes of arbitrary shape

Returns
caluint32 array (…, 7)

calendar array with last axis representing year, month, day, hour, minute, second, microsecond

blendernc.core.dates.get_item_days(self, context)
blendernc.core.dates.get_item_month(self, context)
blendernc.core.dates.get_item_time(self, context)
blendernc.core.dates.get_item_year(self, context)
blendernc.core.dates.get_items_datetimes(self, context)
blendernc.core.dates.get_time_dim(dims)
blendernc.core.dates.return_date(day, month, year, hour='')
blendernc.core.dates.update_date(self, context)

blendernc.core.logging

class blendernc.core.logging.Timer

Bases: object

print_spaces(text_1, text_2, total_space=30)
report(total=False, frame=None)
tick(label='')