Commit 98a18f10 authored by David Hendriks's avatar David Hendriks
Browse files

cleaned up notebooks

parent 50971270
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
# /usr/bin/env python
"""
Notebook tests
"""
+0 −2
Original line number Diff line number Diff line
@@ -851,7 +851,6 @@ class grid_sampling:
        ###############################
        # Finalise print statements
        #
        self._increment_indent_depth(+1)
        self._add_code("\n", "#" * 40 + "\n", "if print_results:\n")
        self._add_code(
            "print('Grid has handled {starcount} stars with a total probability of {probtot:g}'.format(starcount=_total_starcount,probtot=self.population_options['_probtot']))\n",
@@ -861,7 +860,6 @@ class grid_sampling:
        # Finalise return statement for dry run.
        if dry_run:
            self._add_code("return _total_starcount\n")
        self._increment_indent_depth(-1)

        #################################################################################
        # Stop of code generation.
+7 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ Main script to provide the sampling variable class extension. Here the sampling
# pylint: disable=E1101
import json
from typing import Union
from warnings import warn


class sampling_variables:
@@ -505,6 +506,12 @@ class sampling_variables:
                Code added at the very bottom of the block.
        """

        warn(
            "This function is getting deprecated soon. please use add_sampling_variable",
            DeprecationWarning,
            stacklevel=2,
        )

        self.add_sampling_variable(
            name=name,
            parameter_name=parameter_name,
+103 −46

File changed.

Preview size limit exceeded, changes collapsed.

+99 −24

File changed.

Preview size limit exceeded, changes collapsed.

Loading