MCPcopy Create free account
hub / github.com/Kitware/ParaView / RegisterWriter

Method RegisterWriter

Wrapping/Python/paraview/coprocessing.py:504–527  ·  view source on GitHub ↗

Registers a writer proxy. This method is generally used in CreatePipeline() to register writers. All writes created as such will write the output files appropriately in WriteData() is called. params should be empty as of ParaView 5.9 but is passed in for b

(self, writer, filename, freq, paddingamount=0, **params)

Source from the content-addressed store, hash-verified

502 ".<" + str(nump) + ":%0." + str(len(str(nump - 1))) + "d>'", sep="")
503
504 def RegisterWriter(self, writer, filename, freq, paddingamount=0, **params):
505 """Registers a writer proxy. This method is generally used in
506 CreatePipeline() to register writers. All writes created as such will
507 write the output files appropriately in WriteData() is called.
508 params should be empty as of ParaView 5.9 but is passed in for
509 backwards compatibility."""
510 writerParametersProxy = self.WriterParametersProxy(
511 writer, filename, freq, paddingamount)
512
513 writer.FileName = filename
514 writer.add_attribute("parameters", writerParametersProxy)
515 for p in params:
516 v = params[p]
517 if writer.GetProperty(p) is not None:
518 wp = writer.GetProperty(p)
519 wp.SetData(v)
520
521 self.__WritersList.append(writer)
522
523 helperName = writer.GetXMLName()
524 if helperName == "ExodusIIWriter":
525 self.ProcessExodusIIWriter(writer)
526
527 return writer
528
529 def WriterParametersProxy(self, writer, filename, freq, paddingamount):
530 """Creates a client only proxy that will be synchronized with ParaView

Callers 15

PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80
PipelineClass · 0.80

Calls 6

WriterParametersProxyMethod · 0.95
ProcessExodusIIWriterMethod · 0.95
add_attributeMethod · 0.80
GetPropertyMethod · 0.45
SetDataMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected