Closed SpheMakh closed 6 months ago
Reminder @SpheMakh -- could you please check this implementation works with CASA5?
Reminder @SpheMakh -- could you please check this implementation works with CASA5?
It creates even more parsing problems. But this latest solution works for CASA >=4.7, 5, and 6
Ha, so simple in the end! All right, let's merge.
Add
basetypes.EmptyClassDefault()
method becausedataclasses
in python 3.11 cannot have mutable (classes in this case) as default values. Updated all the class defaults I could fine. It may be worth considering amethod to our dataclasses then using
foo: Bar = Bar.__default__()
when setting defaults.Save CASA code in a
tempfile
instead of parsing a multi-line code string; this did not work for me.