Skip to content

Commit dff8bc5

Browse files
authored
Merge pull request #114 from rapoliveira/bugfix-example16-residuals
Bugfix example16 residuals
2 parents 03de1a6 + 63aa94e commit dff8bc5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

examples/example_16/ob03235_2_full.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ other_output:
106106
file name: ob03235_2_all_models.txt
107107
yaml output:
108108
file name: ob03235_2_all_results.yaml
109-
other_output:
110-
residuals:
111-
# "-" below means the we don't output residuals for second file
112-
files: ob03235_1_res.txt -
109+
residuals:
110+
# "-" below means the we don't output residuals for second file
111+
files: ob03235_2_res.txt -

examples/example_16/ulens_model_fit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
except Exception:
3939
raise ImportError('\nYou have to install MulensModel first!\n')
4040

41-
__version__ = '0.34.2'
41+
__version__ = '0.34.3'
4242

4343

4444
class UlensModelFit(object):
@@ -3144,6 +3144,8 @@ def _second_Y_axis_optimal(self, ax2, A_min, A_max):
31443144
ax2.set_ylim(A_min, A_max)
31453145
A_values = ax2.yaxis.get_ticklocs().round(7)
31463146
A_values = A_values[(A_values >= max(1, A_min)) & (A_values < A_max)]
3147+
if 1. not in A_values and A_min <= 1:
3148+
A_values = np.insert(A_values, 0, 1.)
31473149
is_integer = [mag.is_integer() for mag in A_values]
31483150
if all(is_integer):
31493151
labels = [f"{int(x):d}" for x in A_values]

0 commit comments

Comments
 (0)