noaa-ocs-modeling / nemspy

NEMS configuration generation
https://nemspy.readthedocs.io
Creative Commons Zero v1.0 Universal
1 stars 2 forks source link

should duplicate entries be allowed in the run sequence? #20

Open ghost opened 4 years ago

ghost commented 4 years ago

when setting .sequence, the interface matches the first instance of the specified model / connection, and raises an error if a matching model / connection was already specified earlier in the passed sequence: https://github.com/noaa-ocs-modeling/nemspy/blob/d1b45bbe0e47c02a0085d71a78834462c3c6c133/nemspy/interface.py#L100-L145

This is potentially a problem if the same model or connection should be used more than once, such as

OCN
OCN -> ATM
ATM
ATM -> OCN
OCN
OCN -> WAV

@saeed-moghimi-noaa is this possible?