Changeset 31819c5 in sasmodels
- Timestamp:
- Oct 31, 2014 5:17:43 PM (10 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 216a9e1
- Parents:
- ba69383
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/bumps_model.py
rba69383 r31819c5 4 4 import sys, os 5 5 import datetime 6 7 # CRUFT python 2.6 8 if not hasattr(datetime.timedelta, 'total_seconds'): 9 def delay(dt): return dt.days*86400 + dt.seconds + 1e-6*dt.microseconds 10 else: 11 def delay(dt): return dt.total_seconds() 6 12 7 13 import numpy as np … … 33 39 """ 34 40 then = datetime.datetime.now() 35 return lambda: (datetime.datetime.now()-then).total_seconds()41 return lambda: delay(datetime.datetime.now()-then) 36 42 37 43
Note: See TracChangeset
for help on using the changeset viewer.