original_docstring: Simulates a single year
          Returns a dict with this year simulated accounting
          cumulative_prod_growth: cumulative production growth scalar used to estimate future production
          
docstring: Simulates a single year
  Returns a dict with this year simulated accounting
  cumulative_prod_growth: cumulative production growth scalar used to estimate future production
docstring_tokens: Simulates a single year Returns a dict with this year simulated accounting cumulative_prod_growth : cumulative production growth scalar used to estimate future production
code: def simulate_year(self, cumulative_prod_growth):
          '''Simulates a single year
          Returns a dict with this year simulated accounting
          cumulative_prod_growth: cumulative production growth scalar used to estimate future production
          '''
          #draws a random number of all relavant assumptions parameters
          production = self._calc_triang('Anual Production (Bags/Ha.Year)')
          production_cost = self._calc_triang('Production Cost (R$/Ha.Year)')
          comodity_price = self._calc_triang('Commodity Price ($/Bag)')
          dolar_price = self._calc_triang('Dolar Price (R$/$)')
          real_interest_rate = self._calc_triang('Real Interest Rate (% Yearly)')
          tax_rate = self._calc_triang('Tax Rate on Profit(%)')
          
          #scales production by the cumulative production growth so far
          production = production * cumulative_prod_growth
  
  
          #calculates the revenue and pretax income
          revenue = production * comodity_price * dolar_price
          pretax_income = revenue - production_cost
          
          #calculates taxes as a percentage of pretax income. 
          #If there was a loss, taxes are set to zero with _relu
          taxes = self._relu(pretax_income * tax_rate/100)
          
          #cashflow or net income
          cashflow = pretax_income - taxes
          
          year_results = { 
              'Anual Production (Bags/Ha.Year)': production,
              'Cumulative Prod. Growth': cumulative_prod_growth,
              'Commodity Price ($/Bag)': comodity_price,
              'Dolar Price (R$/$)': dolar_price,
              'Revenue (R$/Ha.Year)': revenue,
              'Production Cost (R$/Ha.Year)': production_cost,
              'Pretax Income (R$/Ha.Year)': pretax_income,
              'Taxes (R$)': taxes,
              'Cashflow(R$/Ha.Year)': cashflow,
              'Real Interest Rate (% Yearly)': real_interest_rate
              }
          return year_results
code_tokens: def simulate_year ( self , cumulative_prod_growth ) : production = self . _calc_triang ( 'Anual Production (Bags/Ha.Year)' ) production_cost = self . _calc_triang ( 'Production Cost (R$/Ha.Year)' ) comodity_price = self . _calc_triang ( 'Commodity Price ($/Bag)' ) dolar_price = self . _calc_triang ( 'Dolar Price (R$/$)' ) real_interest_rate = self . _calc_triang ( 'Real Interest Rate (% Yearly)' ) tax_rate = self . _calc_triang ( 'Tax Rate on Profit(%)' ) production = production * cumulative_prod_growth revenue = production * comodity_price * dolar_price pretax_income = revenue - production_cost taxes = self . _relu ( pretax_income * tax_rate / 100 ) cashflow = pretax_income - taxes year_results = { 'Anual Production (Bags/Ha.Year)' : production , 'Cumulative Prod. Growth' : cumulative_prod_growth , 'Commodity Price ($/Bag)' : comodity_price , 'Dolar Price (R$/$)' : dolar_price , 'Revenue (R$/Ha.Year)' : revenue , 'Production Cost (R$/Ha.Year)' : production_cost , 'Pretax Income (R$/Ha.Year)' : pretax_income , 'Taxes (R$)' : taxes , 'Cashflow(R$/Ha.Year)' : cashflow , 'Real Interest Rate (% Yearly)' : real_interest_rate } return year_results
short_docstring: Simulates a single year
  Returns a dict with this year simulated accounting
  cumulative_prod_growth: cumulative production growth scalar used to estimate future production
short_docstring_tokens: Simulates a single year Returns a dict with this year simulated accounting cumulative_prod_growth : cumulative production growth scalar used to estimate future production
comment: '''Simulates a single year
          Returns a dict with this year simulated accounting
          cumulative_prod_growth: cumulative production growth scalar used to estimate future production
          '''$SEP$#draws a random number of all relavant assumptions parameters
  $SEP$#scales production by the cumulative production growth so far
  $SEP$#calculates the revenue and pretax income
  $SEP$#calculates taxes as a percentage of pretax income. 
  $SEP$#If there was a loss, taxes are set to zero with _relu
  $SEP$#cashflow or net income
  