Skip to content
Snippets Groups Projects
Commit 05370ae4 authored by Eddie McWhirter's avatar Eddie McWhirter
Browse files

Move multiply back into value formatter and leave a note to examine later.

parent f06188a9
No related branches found
No related tags found
No related merge requests found
...@@ -81,8 +81,10 @@ class PCDCPWriter(object): ...@@ -81,8 +81,10 @@ class PCDCPWriter(object):
traceLocal.data = \ traceLocal.data = \
ChannelConverter.get_minutes_from_radians(traceLocal.data) ChannelConverter.get_minutes_from_radians(traceLocal.data)
traceLocal.data = \ # TODO - we should look into multiplying the trace all at once
numpy.round(numpy.multiply(traceLocal.data, 100)).astype(int) # like this, but this gives an error on Windows at the moment.
# traceLocal.data = \
# numpy.round(numpy.multiply(traceLocal.data, 100)).astype(int)
timeseriesLocal.append(traceLocal) timeseriesLocal.append(traceLocal)
...@@ -118,7 +120,8 @@ class PCDCPWriter(object): ...@@ -118,7 +120,8 @@ class PCDCPWriter(object):
return '{0:0>4d} {2: >8d} {3: >8d} {4: >8d} {5: >8d}\n'.format( return '{0:0>4d} {2: >8d} {3: >8d} {4: >8d} {5: >8d}\n'.format(
totalMinutes, int(time.microsecond / 1000), totalMinutes, int(time.microsecond / 1000),
*[self.empty_value if numpy.isnan(val) else val *[self.empty_value if numpy.isnan(val) else int(round(
val * 100))
for val in values]) for val in values])
@classmethod @classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment