MCPcopy Create free account
hub / github.com/numpy/numpy / _findRoutine

Method _findRoutine

numpy/linalg/lapack_lite/make_lite.py:110–116  ·  view source on GitHub ↗
(self, rname)

Source from the content-addressed store, hash-verified

108 self.names_to_routines = {}
109
110 def _findRoutine(self, rname):
111 rname = rname.lower()
112 for s in self._src_dirs:
113 ffilename = os.path.join(s, rname + '.f')
114 if os.path.exists(ffilename):
115 return self._newFortranRoutine(rname, ffilename)
116 return UnknownFortranRoutine(rname)
117
118 def _newFortranRoutine(self, rname, filename):
119 return FortranRoutine(rname, filename)

Callers 1

getRoutineMethod · 0.95

Calls 5

_newFortranRoutineMethod · 0.95
lowerMethod · 0.80
joinMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected