Skip to content
Snippets Groups Projects
Commit a77963a6 authored by payno's avatar payno
Browse files

Spectra: remove unused function 'get_relative_to_value'

parent 6a8b3fc2
No related branches found
No related tags found
1 merge request!84Continue spectrum refactoring
......@@ -132,13 +132,6 @@ class Spectra:
else:
return object[name]
def get_relative_to_value(relative):
paths_ = relative.split(".")
value = getattr(self.data.flat[0], paths_[0])
for path_ in paths_[1:]:
value = getattr(value, path_)
return value
if len(self.data.flat) == 0:
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment