Skip to content

Commit ec5d093

Browse files
authored
Merge pull request #81 from AartGoossens/feature/fix_developer_data_integer_column
Fixes integer columns for read_fit()
2 parents d5fda3b + 8668735 commit ec5d093

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/docs/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Types of changes:
1616
- `Security` in case of vulnerabilities.
1717

1818
## [Unreleased] - {ISO8601 date}
19+
### Fixed
20+
- `sweat.read_fit()` now supports integer column names.
1921

2022
## [0.20.2] - 2021-04-16
2123
### Fixed

sweat/io/fit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
def process_location_columns(df, columns=None):
2020
if columns is None:
21-
columns = [c for c in df.columns if c.endswith("_lat") or c.endswith("_long")]
21+
columns = [c for c in df.columns if isinstance(c, str) and (c.endswith("_lat") or c.endswith("_long"))]
2222
else:
2323
columns = [c for c in columns if c in df.columns]
2424

0 commit comments

Comments
 (0)