Skip to content

Remove references to hydra base, and add several updates #57

Open
knoxsp wants to merge 2 commits into
masterfrom
remove_hydra_base
Open

Remove references to hydra base, and add several updates #57
knoxsp wants to merge 2 commits into
masterfrom
remove_hydra_base

Conversation

@knoxsp

@knoxsp knoxsp commented Jul 10, 2025

Copy link
Copy Markdown
Collaborator

mainly to work with larger, more complex models

Remove attaching parameters because parameter names are changed on import, resulting in broken parameter references from model parameters referencing the old parameter name

@knoxsp knoxsp requested a review from pmslavin July 10, 2025 18:05

@pmslavin pmslavin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of questions about (1) how use_cache is specified to run_network_scenario, and (2) when a dict is classed as a descriptor.

Comment thread hydra_pywr/importer.py
Comment on lines 441 to +443
elif isinstance(attr_value, dict):
if 'index' in attr_value and 'table' in attr_value:
return "DESCRIPTOR"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certain types of dict datasets are classed as 'descriptor' depending on their keys?

Comment thread hydra_pywr/runner.py
Comment on lines +41 to +42
def run_network_scenario(client, scenario_id, template_id,
solver=None, data_dir='/tmp', use_cache=False, **kwargs):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we set use_cache to True when we want to use it? Only the export_json cli command takes a --use-cache arg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants