Skip to content
Snippets Groups Projects
Commit 1dbb400d authored by dmt's avatar dmt
Browse files

Check if the user provided TZ, TSigma or ZSigma relatives.

parent 88864054
No related branches found
No related tags found
No related merge requests found
......@@ -54,16 +54,17 @@ class PandasBlock:
def get_values(self, **kwargs):
t, z, sigma = kwargs.get("T"), kwargs.get("Z"), kwargs.get("Sigma")
if t and z:
if t is not None and z is not None:
data_frame = self.__data_block.loc[
(self.__data_block["T"] == t) & (self.__data_block["Z"] == z)]
elif t and sigma:
elif t is not None and sigma is not None:
data_frame = self.__data_block.loc[
(self.__data_block["T"] == t) & (
self.__data_block["Sigma"] == sigma)]
elif z and sigma:
elif z is not None and sigma is not None:
data_frame = self.__data_block.loc[
(self.__data_block["Z"] == z) & (
self.__data_block["Sigma"] == sigma)]
......
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