Changeset 3348

Show
Ignore:
Timestamp:
05/14/08 16:20:49 (2 months ago)
Author:
hana
Message:

(hana) casting problem fixed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/opus_core/allocation_model.py

    r3345 r3348  
    7373                logger.log_warning("Capacity (%s) is smaller than the amount to allocate (%s)." % (dataset.get_attribute(capacity_attribute).sum(),  
    7474                                                                                                  control_totals_for_this_year.get_attribute(control_total_attribute).sum())) 
    75             C = dataset.get_attribute(capacity_attribute) 
     75            C = dataset.get_attribute(capacity_attribute).astype('int32') 
    7676             
    7777        all_weights = dataset.get_attribute(weight_attribute)