Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteVandecrux committed Aug 15, 2024
1 parent 1978de1 commit 52c2653
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pypromice/postprocess/real_time_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def get_latest_data(

# Apply smoothing to z_boom_u
# require at least 2 hourly obs? Sometimes seeing once/day data for z_boom_u
df_limited = rolling_window(df_limited, "z_boom_u", "72h", 2, 1)

df_limited = rolling_window(df_limited, "z_boom_u", "72h", 2, 3)
# limit to single most recent valid row (convert to series)
s_current = df_limited.loc[last_valid_index]

Expand Down
1 change: 1 addition & 0 deletions tests/data/test_config1.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ station_id = 'TEST1'
logger_type = 'CR1000X'
nodata = ['-999', 'NAN'] # if one is a string, all must be strings
number_of_booms = 1 #1-boom = promice, 2-boom = gc-net
site_type = 'ablation'
latitude = 79.91
longitude = 24.09

Expand Down
1 change: 1 addition & 0 deletions tests/data/test_config2.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ station_id = 'TEST2'
logger_type = 'CR1000X'
nodata = ['-999', 'NAN'] # if one is a string, all must be strings
number_of_booms = 2
site_type = 'accumulation'

['test_raw_transmitted2.txt']
format = 'TX'
Expand Down

0 comments on commit 52c2653

Please sign in to comment.