Forum

Author Topic: Keyword items of saveReference function  (Read 4553 times)

Gall

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Keyword items of saveReference function
« on: December 16, 2015, 01:41:53 PM »
Hello.

Just noticed with PhotoScan 1.2 that the keyword argument items of saveReference Python function is not behaving properly.

All these calls export cameras.
Code: [Select]
>>> chunk.saveReference(path, 'csv', items = 'markers')
True
>>> chunk.saveReference(path, 'csv', items = 'cameras')
True
>>> chunk.saveReference(path, 'csv', items = 'scalebars')
True
# Notice the wrong value (is it a keyword name issue?)
>>> chunk.saveReference(path, 'csv', items = 'scaleb')
True

But it works with a positional argument.
Code: [Select]
>>> chunk.saveReference(path, 'csv', 'scaleb')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: items should be in ['cameras', 'markers', 'scalebars']
>>> chunk.saveReference(path, 'csv', 'cameras')
True
>>> chunk.saveReference(path, 'csv', 'markers')
True
>>> chunk.saveReference(path, 'csv', 'scalebars')
True
« Last Edit: August 22, 2017, 03:52:48 PM by Gall »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Keyword items of saveReference function
« Reply #1 on: December 17, 2015, 03:09:21 PM »
Hello Gall,

Could you please check the latest release version 1.2.1, as the problem should be solved there.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Gall

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Re: Keyword items of saveReference function
« Reply #2 on: December 17, 2015, 05:06:10 PM »
You're right, it is fixed in 1.2.1.