Skip to content

Commit

Permalink
Fixes bug where the analytics module would fail for iterations > 9 (#346
Browse files Browse the repository at this point in the history
)

* Fixes bug where the analytics module would fail for iterations larger than 9 (i.e., iteration number with two or more digits)

* Update CHANGELOG.md

Co-authored-by: Wouter J. de Bruin <9119793+wouterjdb@users.noreply.github.com>
  • Loading branch information
edubarrosTNO and wouterjdb authored Mar 3, 2021
1 parent 0cf698d commit b27b041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ This project adheres to [Semantic Versioning](https://semver.org/).

### Changes

## [0.5.1] - 2021-03-03

### Fixes
- [#346](https://github.com/equinor/flownet/pull/346) Fixes bug where the analytics module would fail for iterations larger than 9 (i.e., iteration number with two or more digits).

## [0.5.0] - 2021-02-26

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/flownet/ahm/_ahm_iteration_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def make_dataframe_simulation_data(
iteration = sorted(
[int(rel_iter.replace("/", "").split("-")[-1]) for rel_iter in glob.glob(path)]
)[-1]
runpath_list = glob.glob(path[::-1].replace("*", str(iteration), 1)[::-1])
runpath_list = glob.glob(path[::-1].replace("*", str(iteration)[::-1], 1)[::-1])

partial_load_simulations = functools.partial(
_load_simulations, ecl_base=eclbase_file
Expand Down

0 comments on commit b27b041

Please sign in to comment.