Skip to content

Remove parameter reference to availability_estimates dataframe in HealthSystem #1584

Closed
@tamuri

Description

Noticed whilst looking at objects holding memory that unnecessary reference to availability_estimates, which is dataframe loaded of ResourceFile_Consumables_availability_small.csv, is not needed after Consumables has been initialised.

# Initialise the Consumables class
self.consumables = Consumables(
availability_data=self.update_consumables_availability_to_represent_merging_of_levels_1b_and_2(
self.parameters['availability_estimates']),
item_code_designations=self.parameters['consumables_item_designations'],
rng=rng_for_consumables,
availability=self.get_cons_availability()
)

Any reason why this can't be a normal variable in read_parameters?

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions