oliver-batchelor / multical

Multi-camera calibration using one or more calibration patterns
Other
362 stars 67 forks source link

How to write the calibration command #63

Closed Mabroukiimen closed 7 months ago

Mabroukiimen commented 7 months ago

I am trying to perform calibration on 8 cameras and this is the way I write the command: multical calibrate --cameras C11139,C11140,C11141,C11458,C11459,C11461,C11462,C11463 with : C11139,C11140,C11141,C11458,C11459,C11461,C11462,C11463 are the name of my 8 cameras but it gives me this error: ValueError: mutable default <class 'multical.config.arguments.PathOpts'> for field paths is not allowed: use default_factory Can someone please confirm how to write the command (what's to replace and what's not ? )

Thank you in advance!!

oliver-batchelor commented 7 months ago

Hi,

This is an error which python 3.11 started producing. It’s from the dataclass, they no longer allow default values of mutable types. The usual answer is to make the field immutable (if it is a dataclass adding frozen=True)

On Fri, 16 Feb 2024 at 05:01, Imen Mabrouki @.***> wrote:

I am trying to perform calibration on 8 cameras and this is the way I write the command: multical calibrate --cameras C11139,C11140,C11141,C11458,C11459,C11461,C11462,C11463 with : C11139,C11140,C11141,C11458,C11459,C11461,C11462,C11463 are the name of my 8 cameras but it gives me this error: ValueError: mutable default <class 'multical.config.arguments.PathOpts'> for field paths is not allowed: use default_factory Can someone please confirm how to write the command (what's to replace and what's not ? )

Thank you in advance!!

— Reply to this email directly, view it on GitHub https://github.com/oliver-batchelor/multical/issues/63, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITRZNLH235AZCMS7R27T3YTYWMHAVCNFSM6AAAAABDKQTOIKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTMOJQGI4DANA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Mabroukiimen commented 7 months ago

Hello, I understand, thank you so much for the quick response and the excellent work!