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

Method _findRoutine

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

Source from the content-addressed store, hash-verified

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

Callers 1

getRoutineMethod · 0.95

Calls 5

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

Tested by

no test coverage detected