Skip to content

Commit

Permalink
Fix dynamic machine keys
Browse files Browse the repository at this point in the history
close #230
mention @bechtt
  • Loading branch information
orso82 committed Feb 13, 2023
1 parent 2035fc6 commit 6fb175f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omas/omas_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,9 +916,9 @@ def __contains__(self, location):
return ulocation in machine_mappings(self.kw['machine'], self.kw['branch'], self.kw['user_machine_mappings'])

def keys(self, location):
ulocation = o2u(location)
if ulocation + '.:' in machine_mappings(self.kw['machine'], self.kw['branch'], self.kw['user_machine_mappings']):
return list(range(self[ulocation + '.:']))
ulocation = o2u(location) + "."
if ulocation + ':' in machine_mappings(self.kw['machine'], self.kw['branch'], self.kw['user_machine_mappings']):
return list(range(self[ulocation + ':']))
else:
tmp = numpy.unique(
[
Expand Down

0 comments on commit 6fb175f

Please sign in to comment.