File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,9 +84,12 @@ def add_step(name, func):
8484 return orca .add_step (name , func )
8585
8686
87- def add_table (table_name , table ):
88-
89- if orca .is_table (table_name ) and orca .table_type (table_name ) == 'dataframe' :
87+ def add_table (table_name , table , replace = False ):
88+ """
89+ Add new table and raise assertion error if the table already exists.
90+ Silently replace if replace=True.
91+ """
92+ if not replace and orca .is_table (table_name ) and orca .table_type (table_name ) == 'dataframe' :
9093 logger .warning ("inject add_table replacing existing table %s" % table_name )
9194 assert False
9295
Original file line number Diff line number Diff line change 55
66setup (
77 name = 'activitysim' ,
8- version = '0.9' ,
8+ version = '0.9.1 ' ,
99 description = 'Activity-Based Travel Modeling' ,
1010 author = 'contributing authors' ,
1111 author_email = 'ben.stabler@rsginc.com' ,
You can’t perform that action at this time.
0 commit comments