unparse ligo model error
Unparsing the LIGO model with the RF AS readout used throws the error below:
from finesse.ligo import make_aligo
model = make_aligo(RF_AS_readout=True)
model.unparse()
Looks like some SI replacement is trying to be done on nan
=> 'e-9ae-9'
Traceback (most recent call last):
File "/Users/ddb/git/finesse3/src/finesse/script/containers.py", line 489, in __post_init__
self.value
File "/Users/ddb/git/finesse3/src/finesse/script/containers.py", line 551, in value
float_value = float(value)
ValueError: could not convert string to float: 'e-9ae-9'
The fact that nan
is present anyway is another issue but how do we want to handle it in unparsing? We could dump nan
or throw an error if it tries to dump it? The simplest would be the former I assume and leave it to the user to sort out.