Closed venkiteshayyar closed 2 months ago
That is roughly what should be done. We can use the .get
method here which would be tidier.
We do something earlier in the code checking for external_contr
and define defaults if it is not specified. What I suspect is happening here is that external_contr
is in the input file but omega0_tor
isn't. I can make a quick PR for this tomorrow morning (UK time).
Thanks! The above fix seems to work and the code proceeds. Facing some issues rendering outputs, but that might be a different issue.
Fixed in #382, can you double check this works
@bpatel2107 We're facing an issue rendering the input parameter file with pyrokinetics. The data is for a GENE non-linear run
The parameter file has the content
Hence, the dictionary gets only the value for 'exbrate' in Line 461 in gene.py
This causes a key not found error in line 494 for
omega0_tor
Speaking to GENE experts, I gather that specifying just one of these parameters is often part of the workflow.
I tried a simple, hacky fix like this.
But it's causing further issues later, so I wonder if more changes are required.