openghg / openghg_inversions

University of Bristol Atmospheric Chemistry Research Group RHIME Inversion code (with openghg dependency)
MIT License
5 stars 0 forks source link

`data_processing_surface_notracer` should handle case when `emissions_name` is `None` #41

Open brendan-m-murphy opened 8 months ago

brendan-m-murphy commented 8 months ago

In get_data.data_processing_surface_notracer, the argument emissions_name has a default value of None, but the code assumes that emissions_none is iterable, so we'll get an error like NoneType is not iterable.

Instead, emissions_name should either be a required argument, or we should raise a ValueError if it is None (or default to some other behavior).