Skip to content

Commit

Permalink
Fix mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters committed Jun 5, 2024
1 parent 2a7ce5a commit fcd6b87
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/export/dataframes.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_sensor_dataframe(
"utc",
*[column_names[t] for t in all_data_types],
],
dtypes={
schema_overrides={
"utc": pl.Datetime,
**{column_names[t]: pl.Float32
for t in all_data_types},
Expand Down
2 changes: 1 addition & 1 deletion src/retrieval/utils/ils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_ils_params(serial_number: int, date: datetime.date) -> ILSParams:
"CHANNEL2_PE",
"VALID_SINCE",
],
dtypes={
schema_overrides={
"SERIAL_NUMBER": pl.Utf8,
"CHANNEL1_ME": pl.Float64,
"CHANNEL1_PE": pl.Float64,
Expand Down
2 changes: 1 addition & 1 deletion src/retrieval/utils/invparms_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def read_and_merge_invparms_files(paths: list[str]) -> Optional[pl.DataFrame]:
"XCH4_S5P",
"XCO",
],
dtypes={
schema_overrides={
"JulianDate": pl.Float64,
"HHMMSS_ID": str, # type: ignore
"SX": str, # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion src/retrieval/utils/pressure_averaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def compute_mean_pressure_around_noon(
) -> float:
df = pl.read_csv(
filepath,
dtypes={
schema_overrides={
"UTCtime___": pl.Utf8,
"BaroYoung": pl.Float64,
},
Expand Down

0 comments on commit fcd6b87

Please sign in to comment.