Skip to content

Pass schema_json ONLY as input to get_class_with_defaults #20

@kfrey-idm

Description

@kfrey-idm

In schema_to_class.py the function get_class_with_defaults accepts either schema_path or schema_json

File operations should happen once and not be managed via cacheing. Removing schema_path will require coordinated changes in other repos. Tracking ticket is here.

The campaign module should provide schema_json not schema_path

Stop using schema_path from the campaign module (use schema_json instead)

  • emodpy/campaign/base_intervention.py
  • emodpy/campaign/common.py
  • emodpy/campaign/event.py
  • emodpy/campaign/event_coordinator.py
  • emodpy/campaign/individual_intervention.py
  • emodpy/campaign/waning_config.py
  • emodpy/utils/targeting_config.py
  • emodpy_hiv/campaign/common.py
  • emodpy_hiv/campaign/individual_intervention.py
  • emodpy-malaria/interventions/*

The reporters class accepts schema_path; should create and use schema_json not pass along the path

Stop using schema_path in reporters

  • emodpy_malaria/reporters/builtin.py

The function do_nodes should accept schema_json not schema_path just go away

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions