Skip to content

Commit

Permalink
Simplified platform names for reading custom composites
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed May 11, 2015
1 parent 30e9994 commit fa210d5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mpop/satellites/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ def get_sat_instr_compositer((satellite, number, variant), instrument):
try:
module = __import__(module_name, globals(), locals(), [class_name])
klass = getattr(module, class_name)
for k in get_custom_composites(variant + satellite +
number + instrument):
for k in get_custom_composites(instrument):
klass.add_method(k)
return klass
except (ImportError, AttributeError):
Expand Down Expand Up @@ -143,8 +142,7 @@ def build_sat_instr_compositer((satellite, number, variant), instrument):
(instrument_class,),
{})

for i in get_custom_composites(variant + satellite +
number + instrument):
for i in get_custom_composites(instrument):
sat_class.add_method(i)

return sat_class
Expand Down

0 comments on commit fa210d5

Please sign in to comment.