Skip to content

Commit

Permalink
Add new logo to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
olafmersmann committed Jul 22, 2024
1 parent 654a310 commit 504d81e
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 198 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<h1 align="center">
<code>cocoviz</code><br>
<img src="http://numbbo.github.io/coco/shortintro/coco.png" width="600">
<img src="cocoviz.svg" width="600">
</h1><br>

[![PyPI Downloads](https://img.shields.io/pypi/dm/cocoviz.svg?label=PyPI%20downloads)](https://pypi.org/project/cocoviz/)
Expand All @@ -9,7 +8,6 @@

`cocoviz` is a minimalist visualization toolkit for benchmark experiments.


- **Website:** https://numbbo.github.io
- **Source code:** https://github.com/numbbo/cocoviz/
- **Contributing:** https://github.com/numbbo/cocoviz/pulls
Expand Down
192 changes: 192 additions & 0 deletions cocoviz.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 14 additions & 85 deletions example.ipynb

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/cocoviz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from ._version import __version__ # noqa: F401
from .ert import ertplot, ertvalues
from .ert import rtpplot, runtime_profiles
from .types import ProblemDescription, Result, ResultSet

__all__ = ["ProblemDescription", "Result", "ResultSet", "ertplot", "ertvalues"]

__all__ = ["ProblemDescription", "Result", "ResultSet", "rtpplot", "runtime_profiles"]
108 changes: 0 additions & 108 deletions src/cocoviz/ert.py

This file was deleted.

9 changes: 9 additions & 0 deletions src/cocoviz/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ def linear_targets(
targets[desc] = np.linspace(low, high, number_of_targets)

return targets


def full_targets(results: ResultSet, indicator: str) -> dict[ProblemDescription, ArrayLike]:
targets = {}
for desc, problem_results in results.by_problem():
indicator_values = pl.concat([r._data for r in problem_results])[indicator]
targets[desc] = indicator_values.unique().sort()

return targets

0 comments on commit 504d81e

Please sign in to comment.