open-forest-observatory / automate-metashape

Easy, reproducible Metashape photogrammetry workflows
Other
77 stars 27 forks source link

Bugfix #35

Closed PeterBetlem closed 3 years ago

PeterBetlem commented 4 years ago

Ran into issues with the current setup under Win10 + Spyder/Jupyter Lab environments in Anaconda Python 3.7. config_file = manual_config_file moved to except: (and config_file = sys.argv[1] to try:) to allow for command-line execution that was otherwise not possible.

youngdjn commented 4 years ago

Thanks! I will test this later this week, but I fear this solution may not work universally across environments and we might need a more manual approach for dealing with command-line vs. interactive running.

youngdjn commented 3 years ago

Unfortunately this doesn't work on Linux because the first block is what gets run when running interactively on my Linux systems (at least from PyCharm). But I pushed this commit which should resolve this more flexibly. https://github.com/ucdavis/metashape/commit/6e6edd958f98993d1833c2295140fa10f7f828f0