UnboundLocalError: local variable 'cfg' referenced before assignment
Closed this issue · 0 comments
januarharianto commented
This happens if processing is performed without using a configuration file when running harvester.collect()
446 msg.info(f"Band(s) selected: {bands}")
448 # Convert scale from arsec to meters (if from config file)
--> 449 if cfg is None:
450 pass
451 else:
Can be solved by referencing the config object instead i.e. self.config
instead of cfg