Skip to content

Commit

Permalink
Fixed bug when setting an integer aerosol profile (e.g. predefined ty…
Browse files Browse the repository at this point in the history
…pe).
  • Loading branch information
lopezvoliver committed Feb 3, 2022
1 parent c3d8fc6 commit 8acf836
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Py6S/sixs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8acf836

Please sign in to comment.