Forum

Author Topic: tiepoint_accuracy() error: 'float' object is not callable  (Read 1480 times)

scottm

  • Newbie
  • *
  • Posts: 2
    • View Profile
tiepoint_accuracy() error: 'float' object is not callable
« on: July 24, 2018, 06:55:33 PM »
I'm writing a python script to implement gradual selection. As part of the script, I was to tighten the tiepoint accuracy, but I'm receiving an error. code and error follow.

Edit: Looks like my error was that I needed to assign float to the parameter.
accuracy_TP = float(0.3)

I thought I had tried this prior to posting, but I guess I was wrong. I'll leave this here to demonstrate my ineptitude. -s

Code: [Select]
#### processing parameters
...
accuracy_TP = 0.3
...

####Processing
doc = PhotoScan.Document()
chunk = doc.addChunk()
...
chunk.tiepoint_accuracy(accuracy_TP)
...

The error I receive:

Quote
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-89-3b268cc58787> in <module>()
----> 1 chunk.tiepoint_accuracy(accuracy_TP)

TypeError: 'float' object is not callable

I'm sure I'm missing something simple. Thanks.
« Last Edit: July 24, 2018, 09:24:07 PM by scottm »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: tiepoint_accuracy() error: 'float' object is not callable
« Reply #1 on: July 24, 2018, 10:32:10 PM »
Hello scottm,

Try:
Code: [Select]
chunk.tiepoint_accuracy = accuracy_TP
Best regards,
Alexey Pasumansky,
Agisoft LLC