Skip to content

Commit

Permalink
Fix double import
Browse files Browse the repository at this point in the history
  • Loading branch information
MetinSa committed Aug 15, 2021
1 parent 8347d10 commit 6cbf848
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zodipy/zodi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from collections.abc import Iterable
from collections.abc import Iterable as Iterable_
from typing import Optional, Union, Iterable
from datetime import datetime

Expand Down Expand Up @@ -51,7 +51,7 @@ def __init__(

if observation_times is None:
observation_times = [datetime.now().date()]
elif not isinstance(observation_times, Iterable):
elif not isinstance(observation_times, Iterable_):
observation_times = [observation_times]

observer_locations = [
Expand Down Expand Up @@ -126,7 +126,6 @@ def get_emission(

emission = self.simulation_strategy.simulate(nside, freq)

if coord != 'E':
emission = coords.change_coordinate_system(emission, coord)
emission = coords.change_coordinate_system(emission, coord)

return emission if return_comps else emission.sum(axis=0)

0 comments on commit 6cbf848

Please sign in to comment.