From b86414fa13a8ee04f0cae44b41fab302119b02d0 Mon Sep 17 00:00:00 2001 From: "David E. DeMarle" Date: Wed, 3 Oct 2018 14:08:15 -0400 Subject: [PATCH] Revert "Use full precision instead of format strings for times" This reverts commit 472f6c21b80875af9ea06c7037e491f4e547ad41. The export scene path needs to be changed to use full precision and the ParaView importer needs to be changed to read databases with string or full precision times. --- cinema_python/adaptors/paraview/pv_introspect.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cinema_python/adaptors/paraview/pv_introspect.py b/cinema_python/adaptors/paraview/pv_introspect.py index 9488b30..380c8b8 100644 --- a/cinema_python/adaptors/paraview/pv_introspect.py +++ b/cinema_python/adaptors/paraview/pv_introspect.py @@ -525,7 +525,7 @@ def make_cinema_store(proxies, "color"+proxy_name, 'vis', [proxy_name]) fnp = "" - if forcetime is not False: + if forcetime: # time specified, use it, being careful to append if already a list tvalues.append(forcetime) tprop = store.make_parameter('time', tvalues) @@ -689,11 +689,7 @@ def project_to_at(eye, fp, cr): return at -def explore(cs, - proxies, - iSave=True, - currentTime=None, - userDefined={}, +def explore(cs, proxies, iSave=True, currentTime=None, userDefined={}, specLevel="A", camType='phi-theta', tracking={}, @@ -738,7 +734,7 @@ def explore(cs, ctime_float = None if currentTime: - ctime_float = currentTime['time'] + ctime_float = float(currentTime['time']) # hide all annotations view_proxy.OrientationAxesVisibility = 0 -- GitLab