Skip to content

Commit

Permalink
Bump Python version for actions
Browse files Browse the repository at this point in the history
Select from df_misfit_calc using pandas loc to make
pylint happy.

Commitin
  • Loading branch information
dafeda authored and sondreso committed Nov 8, 2023
1 parent f7ed3be commit d49714d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Install tox
run: pip install tox
- name: Run style
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
python-version: ["3.8", "3.9", "3.10"]
os: [ubuntu-latest]
include:
- python-version: 3.8
- python-version: "3.10"
os: macos-latest

steps:
Expand Down
3 changes: 2 additions & 1 deletion semeio/workflows/ahm_analysis/ahmanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ def calc_observationsgroup_misfit(obs_keys, df_update_log, misfit_df):
]["obs_key"].astype(str)
df_misfit_calc = pd.DataFrame.drop_duplicates(df_misfit_calc)
mean = (
misfit_df[df_misfit_calc["Misfit_key"].to_list()].sum(axis=1) / total_obs_nr
misfit_df[df_misfit_calc.loc[:, "Misfit_key"].to_list()].sum(axis=1)
/ total_obs_nr
)
return mean.mean()

Expand Down

0 comments on commit d49714d

Please sign in to comment.