diff --git a/Py6S/sixs.py b/Py6S/sixs.py index ec35335..8c19179 100644 --- a/Py6S/sixs.py +++ b/Py6S/sixs.py @@ -219,7 +219,10 @@ def _create_aot_vis_lines(self): # - User (string with exactly two lines) results_str = "0" if not isinstance(self.aero_profile, AeroProfile.AerosolDistribution): - nlines = self.aero_profile.count('\n') + if isinstance(self.aero_profile, int): + nlines=1 + else: + nlines = self.aero_profile.count('\n') else: nlines = 2