2323import sympy as sp
2424
2525import amici
26- from amici .de_model import DEModel
27- from amici .de_model_components import (
26+ from amici ._symbolic . de_model import DEModel
27+ from amici ._symbolic . de_model_components import (
2828 DifferentialState ,
2929 Event ,
3030 Expression ,
@@ -486,7 +486,7 @@ def get_cached_index(symbol, sarray, index_cache):
486486 dflux_dw = sp .ImmutableSparseMatrix (n_r , n_w , dflux_dw_dict )
487487 dflux_dp = sp .ImmutableSparseMatrix (n_r , n_p , dflux_dp_dict )
488488
489- # use dok format to convert numeric csc to sparse symbolic
489+ # use dok format to convert numeric csc to sparse _symbolic
490490 S = sp .ImmutableSparseMatrix (
491491 n_x ,
492492 n_r , # don't use shape here as we are eliminating rows
@@ -649,7 +649,7 @@ def _add_expression(
649649 name of the expression
650650
651651 :param expr:
652- symbolic expression that the symbol refers to
652+ _symbolic expression that the symbol refers to
653653
654654 :param pysb_model:
655655 see :py:func:`_process_pysb_expressions`
@@ -681,10 +681,10 @@ def _add_expression(
681681
682682 y = sp .Symbol (name )
683683 trafo = noise_distribution_to_observable_transformation (noise_dist )
684- # note that this is a bit iffy since we are potentially using the same symbolic identifier in expressions (w)
684+ # note that this is a bit iffy since we are potentially using the same _symbolic identifier in expressions (w)
685685 # and observables (y). This is not a problem as there currently are no model functions that use both. If this
686686 # changes, I would expect symbol redefinition warnings in CPP models and overwriting in JAX models, but as both
687- # symbols refer to the same symbolic entity, this should not be a problem (untested)
687+ # symbols refer to the same _symbolic entity, this should not be a problem (untested)
688688 obs = Observable (
689689 y , name , _parse_special_functions (expr ), transformation = trafo
690690 )
@@ -723,7 +723,7 @@ def _get_sigma(
723723 pysb_model : pysb .Model , obs_name : str , sigma_name : str | None
724724) -> sp .Symbol :
725725 """
726- Tries to extract standard deviation symbolic identifier and formula
726+ Tries to extract standard deviation _symbolic identifier and formula
727727 for a given observable name from the pysb model and if no specification is
728728 available sets default values
729729
@@ -738,7 +738,7 @@ def _get_sigma(
738738 sigma or ``None``.
739739
740740 :return:
741- symbolic variable representing the standard deviation of the observable
741+ _symbolic variable representing the standard deviation of the observable
742742 """
743743 if sigma_name is None :
744744 return sp .Symbol (f"sigma_{ obs_name } " )
@@ -933,7 +933,7 @@ def _compute_possible_indices(
933933 )
934934 # TODO: implement this, multiply species by the volume of
935935 # their respective compartment and allow total_cl to depend
936- # on parameters + constants and update the respective symbolic
936+ # on parameters + constants and update the respective _symbolic
937937 # derivative accordingly
938938
939939 prototype = dict ()
@@ -1161,7 +1161,7 @@ def _is_in_cycle(
11611161def _greedy_target_index_update (cl_prototypes : CL_Prototype ) -> None :
11621162 """
11631163 Computes unique target indices for conservation laws from possible
1164- indices such that expected fill in in symbolic derivatives is minimized
1164+ indices such that expected fill in in _symbolic derivatives is minimized
11651165
11661166 :param cl_prototypes:
11671167 dict that contains possible indices and non-unique target indices
0 commit comments