Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,30 @@

## 0.2 series

### 0.2.3

* Fixed validation failures in case of missing optional fields in visualization tables
by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/214
* Make validate_visualization_df work without matplotlib installation
by @dweindl @dilpath in https://github.com/PEtab-dev/libpetab-python/pull/215

**Full Changelog**: https://github.com/PEtab-dev/libpetab-python/compare/v0.2.2...v0.2.3

### 0.2.2

* Fixed IndexError with numpy 1.25.0 by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/209
* Made `SbmlModel.from_file(..., model_id)` optional by @dilpath in https://github.com/PEtab-dev/libpetab-python/pull/207

**Full Changelog**: https://github.com/PEtab-dev/libpetab-python/compare/v0.2.1...v0.2.2

### 0.2.1

Fixes:
* Fixed an issue in `Problem.to_files(model_file=...)` (#204)
* Fixed `PySBModel.get_parameter_value`, which incorrectly returned the parameter name instead of its value (#203)

**Full Changelog**: https://github.com/PEtab-dev/libpetab-python/compare/v0.2.0...v0.2.1

### 0.2.0

Note: petab 0.2.0 requires Python>=3.9
Expand Down
2 changes: 1 addition & 1 deletion petab/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""PEtab library version"""
__version__ = '0.2.2'
__version__ = '0.2.3'
34 changes: 21 additions & 13 deletions petab/visualize/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,32 @@
``import petab.visualize``.

"""
import importlib.util

from .plot_data_and_simulation import (
plot_without_vis_spec,
plot_with_vis_spec,
plot_problem,
)
mpl_spec = importlib.util.find_spec("matplotlib")

from .plot_residuals import plot_goodness_of_fit, plot_residuals_vs_simulation
from .plotter import MPLPlotter
from .plotting import DataProvider, Figure

__all__ = [
"plot_without_vis_spec",
"plot_with_vis_spec",
"plot_problem",
"plot_goodness_of_fit",
"plot_residuals_vs_simulation",
"MPLPlotter",
"DataProvider",
"Figure"
]

if mpl_spec is not None:
from .plot_data_and_simulation import (
plot_without_vis_spec,
plot_with_vis_spec,
plot_problem,
)

from .plot_residuals import plot_goodness_of_fit, plot_residuals_vs_simulation
from .plotter import MPLPlotter

__all__.extend([
"plot_without_vis_spec",
"plot_with_vis_spec",
"plot_problem",
"plot_goodness_of_fit",
"plot_residuals_vs_simulation",
"MPLPlotter",
])
2 changes: 1 addition & 1 deletion petab/visualize/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def set_default(column: str, value):
if column not in vis_df:
vis_df[column] = value
elif value is not None:
vis_df[column].fillna(value)
vis_df[column].fillna(value, inplace=True)

set_default(C.PLOT_NAME, "")
set_default(C.PLOT_TYPE_SIMULATION, C.LINE_PLOT)
Expand Down