Default settings for the Pro Forma model are currently set up as attributes of the SqftProFormaConfig object. Customization to these settings would involve passing a separate instance of the above object, like in SEMCOG's code here.
We should move to YAML configurations, like other urbansim models use. Specifically:
Moving configuration parameters to explicit object attributes like in LCM objects
Writing a from_yaml class method to instantiate Pro Forma objects from YAML, like this. Make sure the option to read directly from string (instead of file or buffer) is included.
Writing a to_yaml class method, which depends on a to_dict method, like this.
Writing a lookup_from_config method to wrap a lookup method for YAML, like this
Default settings for the Pro Forma model are currently set up as attributes of the
SqftProFormaConfig
object. Customization to these settings would involve passing a separate instance of the above object, like in SEMCOG's code here.We should move to YAML configurations, like other urbansim models use. Specifically:
from_yaml
class method to instantiate Pro Forma objects from YAML, like this. Make sure the option to read directly from string (instead of file or buffer) is included.to_yaml
class method, which depends on ato_dict
method, like this.lookup_from_config
method to wrap alookup
method for YAML, like this