Zuccarello,
You encountered the error because business table hasn't been loaded into the
memory at the point of running business transition model. To fix this
problem, add this line
'business':{'package_name':'sanfrancisco'},
to the "datasets_to_preload" dictionary in your configuration file. You can
refer to baseline.py in sanfrancisco/configs.
Unfortunately, the Sanfrancisco business table is confidential thus we
cannot provide it. But its main columns are as below:
business_id, int(11)
building_id, int(11)
sector_id, int(11)
sqft, double
employment, int(11)
where the business_id is its id field.
Liming.
On Jan 7, 2008 11:17 PM, Zuccarello Philippe <
philippe.zuccarello_at_wanadoo.fr> wrote:
> Hi All,
>
> First have a happy new Year 2008 !
>
> For this begin of Year, I try to implement the "business" model existing
> in
> sanfrancisco project in SVN (opus_trunk\sanfrancisco\models).
> I start to initiate some of the necessary tables data (business,
> annual_business_control_totals, parcels,sectors ...) but not all, for this
> my alone solution it to look the Python code because I don't find Sql
> script
> in the project sql directoy for create them.
>
> At this time, I block with the following error for the
> business_transition_model :
>
> ...
> Traceback (most recent call last):
> File
> "C:\Dev\_eclipse_workspace\Urbansim41\opus-
> 4.1\urbansim\model_coordinators\m
> odel_system.py", line 572, in <module>
> s.run(resources)
> File
> "C:\Dev\_eclipse_workspace\Urbansim41\opus-
> 4.1\urbansim\model_coordinators\m
> odel_system.py", line 137, in run
>
> write_datasets_to_cache_at_end_of_year=write_datasets_to_cache_at_end_of
> _year)
> File
> "C:\Dev\_eclipse_workspace\Urbansim41\opus-
> 4.1\urbansim\model_coordinators\m
> odel_system.py", line 363, in _run_year
> self.vardict[outputvar] = self.do_process(locals())
> File
> "C:\Dev\_eclipse_workspace\Urbansim41\opus-
> 4.1\urbansim\model_coordinators\m
> odel_system.py", line 441, in do_process
> return eval(ev)
> File "<string>", line 1, in <module>
> NameError: name 'business' is not defined
> ...
>
> Probably reason of my small input data that are not sufficient for run the
> simulation correctly.
>
> It should be very helpfull for me, if I can have a description of the
> "business" data model or a sample of San Francisco baseyear_cache
> directory
> data like the eugene_1980_baseyear_cache_version_4_1_2.zip we can download
> from the http://www.urbansim.org/download/ page.
>
> Regards and thanks in advance for your Help,
>
> Philippe ZUCCARELLO.
> PS: I work for Fabrice Marchal Team.
>
> _______________________________________________
> Users mailing list
> Users_at_urbansim.org
> http://www.urbansim.org/mailman/listinfo/users
>
Received on Tue Jan 08 2008 - 00:41:57 PST
This archive was generated by hypermail 2.2.0 : Tue Jan 08 2008 - 00:42:00 PST