Skip to content

Commit

Permalink
Merge pull request #65 from sightmachine/ENG-3038-resolved-whitespace
Browse files Browse the repository at this point in the history
Resolved extra whitespace from source clean
  • Loading branch information
ankitintg authored Dec 8, 2023
2 parents f80e915 + 176bac6 commit bd9fbe1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion smsdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ def get_kpis(self, **kwargs):
def get_machine_type_from_clean_name(self, kwargs):
# Get machine_types dataframe to check display name
machine_types_df = self.get_machine_types()

machine_types_df["source_type_clean"] = machine_types_df[
"source_type_clean"
].map(str.strip)
# Creating lookup table against display_name:system_name from machine type dataframe.
alias_tbl = (
machine_types_df.loc[:, ["source_type", "source_type_clean"]]
Expand All @@ -305,6 +307,9 @@ def get_machine_type_from_clean_name(self, kwargs):
def get_machine_source_from_clean_name(self, kwargs):
# Get machines dataframe to check display/clean name
machine_sources_df = self.get_machines()
machine_sources_df["source_clean"] = machine_sources_df["source_clean"].map(
str.strip
)
alias_tbl = (
machine_sources_df.loc[:, ["source", "source_clean"]]
.set_index("source_clean")
Expand Down

0 comments on commit bd9fbe1

Please sign in to comment.