ncssar/sartopo_python

set inst attr mapID=-1 init before any possible return

Closed this issue · 1 comments

Add self.mapID=-1 immediately after self.apiVersion=-1 in init

This way, the caller can tell if the mapID is valid with mapID>0 instead of having to check for existence of the mapID attribute

closed as obsolete - better validation code is already in place