Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/14-state-dependent-properties-of…
Browse files Browse the repository at this point in the history
…-workflow-need-to-be-renamed-form-observationsdvsivs-to-observationsconditionsobservations' into 14-state-dependent-properties-of-workflow-need-to-be-renamed-form-observationsdvsivs-to-observationsconditionsobservations
  • Loading branch information
hollandjg committed Jul 6, 2023
2 parents b4e3c9a + 36b4ed7 commit 0328e4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/autora/workflow/state/param.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ def _get_state_dependent_properties(state: SupportsControllerState):
{
"%observations.ivs[-1]%": deprecate(
lambda: np.array(state.observations[-1])[:, 0:n_ivs],
"%observations.ivs[-1]% is deprecated, use %data.conditions[-1]% instead.",
"%observations.ivs[-1]% is deprecated, use %experiment_data.conditions[-1]% instead.",
),
"%observations.dvs[-1]%": deprecate(
lambda: np.array(state.observations[-1])[:, n_ivs:],
"%observations.dvs[-1]% is deprecated, use %data.observations[-1]% instead.",
"%observations.dvs[-1]% is deprecated, use %experiment_data.observations[-1]% instead.",
),
"%observations.ivs%": deprecate(
lambda: np.row_stack(
[np.empty([0, n_ivs + n_dvs])] + list(state.observations)
)[:, 0:n_ivs],
"%observations.ivs% is deprecated, use %data.conditions% instead.",
"%observations.ivs% is deprecated, use %experiment_data.conditions% instead.",
),
"%observations.dvs%": deprecate(
lambda: np.row_stack(state.observations)[:, n_ivs:],
"%observations.dvs% is deprecated, " "use %data.observations% instead",
"%observations.dvs% is deprecated, " "use %experiment_data.observations% instead",
),
"%experiment_data.conditions[-1]%": lambda: np.array(
state.observations[-1]
Expand Down

0 comments on commit 0328e4a

Please sign in to comment.