Skip to content

Commit

Permalink
change option to iter_option to clarify and be explicit that this is …
Browse files Browse the repository at this point in the history
…not the options variable
  • Loading branch information
carlsonp committed Mar 14, 2024
1 parent 7a60532 commit e742e18
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions dataprofiler/profilers/profiler_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,13 +977,13 @@ def __str__(self) -> str:
:rtype: str
"""
dict_string = {"CategoricalOptions": []}
for option in [
for iter_option in [
a
for a in dir(self)
if not a.startswith("__") and not callable(getattr(self, a))
]:
dict_string["CategoricalOptions"].append(
{str(option): str(getattr(self, option))}
{str(iter_option): str(getattr(self, iter_option))}
)
return json.dumps(dict_string, indent=4)

Expand Down Expand Up @@ -1220,13 +1220,13 @@ def __str__(self) -> str:
:rtype: str
"""
dict_string = {"RowStatisticsOptions": []}
for option in [
for iter_option in [
a
for a in dir(self)
if not a.startswith("__") and not callable(getattr(self, a))
]:
dict_string["RowStatisticsOptions"].append(
{str(option): str(getattr(self, option))}
{str(iter_option): str(getattr(self, iter_option))}
)
return json.dumps(dict_string, indent=4)

Expand Down Expand Up @@ -1285,13 +1285,13 @@ def __str__(self) -> str:
:rtype: str
"""
dict_string = {"DataLabelerOptions": []}
for option in [
for iter_option in [
a
for a in dir(self)
if not a.startswith("__") and not callable(getattr(self, a))
]:
dict_string["DataLabelerOptions"].append(
{str(option): str(getattr(self, option))}
{str(iter_option): str(getattr(self, iter_option))}
)
return json.dumps(dict_string, indent=4)

Expand Down Expand Up @@ -1446,13 +1446,13 @@ def __str__(self) -> str:
:rtype: str
"""
dict_string = {"TextProfilerOptions": []}
for option in [
for iter_option in [
a
for a in dir(self)
if not a.startswith("__") and not callable(getattr(self, a))
]:
dict_string["TextProfilerOptions"].append(
{str(option): str(getattr(self, option))}
{str(iter_option): str(getattr(self, iter_option))}
)
return json.dumps(dict_string, indent=4)

Expand Down Expand Up @@ -1583,13 +1583,13 @@ def __str__(self) -> str:
:rtype: str
"""
dict_string = {"StructuredOptions": []}
for option in [
for iter_option in [
a
for a in dir(self)
if not a.startswith("__") and not callable(getattr(self, a))
]:
dict_string["StructuredOptions"].append(
{str(option): str(getattr(self, option))}
{str(iter_option): str(getattr(self, iter_option))}
)
return json.dumps(dict_string, indent=4)

Expand Down Expand Up @@ -1752,13 +1752,13 @@ def __str__(self) -> str:
:rtype: str
"""
dict_string = {"UnstructuredOptions": []}
for option in [
for iter_option in [
a
for a in dir(self)
if not a.startswith("__") and not callable(getattr(self, a))
]:
dict_string["UnstructuredOptions"].append(
{str(option): str(getattr(self, option))}
{str(iter_option): str(getattr(self, iter_option))}
)
return json.dumps(dict_string, indent=4)

Expand Down

0 comments on commit e742e18

Please sign in to comment.