Skip to content

Commit

Permalink
[Format] Apply black formatting to dsc_importer.py
Browse files Browse the repository at this point in the history
- Ran black formatter on data_import/dsc_importer.py
- Ensured consistent code style
- No functional changes made
  • Loading branch information
PPeitsch committed Dec 27, 2024
1 parent ee26172 commit 566b757
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pkynetics/data_import/dsc_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def import_setaram(file_path: str) -> ReturnDict:
"Furnace Temperature (°C)": "temperature",
"Sample Temperature (°C)": "sample_temperature",
"TG (mg)": "weight",
"HeatFlow (mW)": "heat_flow"
"HeatFlow (mW)": "heat_flow",
}
else:
raise ValueError("Not new format")
Expand All @@ -126,7 +126,7 @@ def import_setaram(file_path: str) -> ReturnDict:
"Furnace": "temperature",
"Sample": "sample_temperature",
"TG": "weight",
"HeatFlow": "heat_flow"
"HeatFlow": "heat_flow",
}

# Clean column names and rename
Expand All @@ -137,8 +137,7 @@ def import_setaram(file_path: str) -> ReturnDict:
for col in df.columns:
if col in column_mapping.values():
df[col] = pd.to_numeric(
df[col].str.replace(",", ".").str.strip(),
errors="coerce"
df[col].str.replace(",", ".").str.strip(), errors="coerce"
)

# Initialize data dictionary
Expand Down

0 comments on commit 566b757

Please sign in to comment.