You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked what the problem is and implemented the function setting(attribute_name) that should be in the util module.
I have successfully managed to run the examples by replacing the import from populationsim.util import setting with a function pasted below:
importyamldefsetting(attribute_name):
# read settings.yaml located in ./configs/withopen("./configs/settings.yaml", 'r') asstream:
try:
settingsObj=yaml.safe_load(stream)
exceptyaml.YAMLErrorasexc:
print("oh no, no settings.yaml file in ./configs")
print(exc)
try:
returnsettingsObj[attribute_name]
except:
print("oh not, attribute "+attribute_name+" does not exist in settings.yaml")
I suspect that the util module is deprecated and the examples need to be updated.
The text was updated successfully, but these errors were encountered:
Hi. I cannot recreate this issue. What version of populationsim and activitysim do you have installed? And what command are you using to run the example? Thanks.
I tried to run the examples according to the online documentation.
Currently, the examples do not work:
I have checked what the problem is and implemented the function
setting(attribute_name)
that should be in theutil
module.I have successfully managed to run the examples by replacing the import
from populationsim.util import setting
with a function pasted below:I suspect that the
util
module is deprecated and the examples need to be updated.The text was updated successfully, but these errors were encountered: