Open prashjet opened 1 year ago
e.g. to remove the duplicated code
str = f'Unknown variable {which_variable}' str += ': must be one of x1, x2, t, z, v' raise ValueError(f'Unknown variable: {which_variable}')
in cube methods get_variable_values, get_variable_values etc
get_variable_values
and another to validate distribution string e.g. checking they are in alphabetical order on LHS and rhs of _
_
e.g. to remove the duplicated code
in cube methods
get_variable_values
,get_variable_values
etcand another to validate distribution string e.g. checking they are in alphabetical order on LHS and rhs of
_