File tree Expand file tree Collapse file tree 4 files changed +36
-15
lines changed Expand file tree Collapse file tree 4 files changed +36
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## 0.2 series
4
4
5
+ ### 0.2.3
6
+
7
+ * Fixed validation failures in case of missing optional fields in visualization tables
8
+ by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/214
9
+ * Make validate_visualization_df work without matplotlib installation
10
+ by @dweindl @dilpath in https://github.com/PEtab-dev/libpetab-python/pull/215
11
+
12
+ ** Full Changelog** : https://github.com/PEtab-dev/libpetab-python/compare/v0.2.2...v0.2.3
13
+
5
14
### 0.2.2
6
15
7
16
* Fixed IndexError with numpy 1.25.0 by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/209
8
17
* Made ` SbmlModel.from_file(..., model_id) ` optional by @dilpath in https://github.com/PEtab-dev/libpetab-python/pull/207
9
18
19
+ ** Full Changelog** : https://github.com/PEtab-dev/libpetab-python/compare/v0.2.1...v0.2.2
20
+
10
21
### 0.2.1
11
22
12
23
Fixes:
13
24
* Fixed an issue in ` Problem.to_files(model_file=...) ` (#204 )
14
25
* Fixed ` PySBModel.get_parameter_value ` , which incorrectly returned the parameter name instead of its value (#203 )
15
26
27
+ ** Full Changelog** : https://github.com/PEtab-dev/libpetab-python/compare/v0.2.0...v0.2.1
28
+
16
29
### 0.2.0
17
30
18
31
Note: petab 0.2.0 requires Python>=3.9
Original file line number Diff line number Diff line change 1
1
"""PEtab library version"""
2
- __version__ = '0.2.2 '
2
+ __version__ = '0.2.3 '
Original file line number Diff line number Diff line change 6
6
``import petab.visualize``.
7
7
8
8
"""
9
+ import importlib .util
9
10
10
- from .plot_data_and_simulation import (
11
- plot_without_vis_spec ,
12
- plot_with_vis_spec ,
13
- plot_problem ,
14
- )
11
+ mpl_spec = importlib .util .find_spec ("matplotlib" )
15
12
16
- from .plot_residuals import plot_goodness_of_fit , plot_residuals_vs_simulation
17
- from .plotter import MPLPlotter
18
13
from .plotting import DataProvider , Figure
19
14
20
15
__all__ = [
21
- "plot_without_vis_spec" ,
22
- "plot_with_vis_spec" ,
23
- "plot_problem" ,
24
- "plot_goodness_of_fit" ,
25
- "plot_residuals_vs_simulation" ,
26
- "MPLPlotter" ,
27
16
"DataProvider" ,
28
17
"Figure"
29
18
]
19
+
20
+ if mpl_spec is not None :
21
+ from .plot_data_and_simulation import (
22
+ plot_without_vis_spec ,
23
+ plot_with_vis_spec ,
24
+ plot_problem ,
25
+ )
26
+
27
+ from .plot_residuals import plot_goodness_of_fit , plot_residuals_vs_simulation
28
+ from .plotter import MPLPlotter
29
+
30
+ __all__ .extend ([
31
+ "plot_without_vis_spec" ,
32
+ "plot_with_vis_spec" ,
33
+ "plot_problem" ,
34
+ "plot_goodness_of_fit" ,
35
+ "plot_residuals_vs_simulation" ,
36
+ "MPLPlotter" ,
37
+ ])
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def set_default(column: str, value):
124
124
if column not in vis_df :
125
125
vis_df [column ] = value
126
126
elif value is not None :
127
- vis_df [column ].fillna (value )
127
+ vis_df [column ].fillna (value , inplace = True )
128
128
129
129
set_default (C .PLOT_NAME , "" )
130
130
set_default (C .PLOT_TYPE_SIMULATION , C .LINE_PLOT )
You can’t perform that action at this time.
0 commit comments