Skip to content

Commit

Permalink
Downgrade pandas to 0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpfenninger committed Jun 15, 2017
1 parent 2b42254 commit 901dff4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
23 changes: 12 additions & 11 deletions calliope/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,22 +525,23 @@ def get_carrier(self, y, direction, level=None, primary=False, all_carriers=Fals
"""
if y in self._sets['y_conversion_plus']:
if level: # Either 2 or 3
return self.get_option(y + '_'.join('.carrier',
direction, str(level)))
primary_carrier, all_carriers = self.get_cp_carriers(y,
direction=direction)
return self.get_option(
y + '_'.join('.carrier', direction, str(level))
)
primary_carrier, all_carriers = self.get_cp_carriers(
y, direction=direction)
if primary:
return primary_carrier
if all_carriers:
return all_carriers

carrier = self.get_option(
y + '.carrier', default=y + '.carrier_' + direction
)
if not carrier: # no carrier_in/carrier_out defined
return 'resource'
else:
return carrier
carrier = self.get_option(
y + '.carrier', default=y + '.carrier_' + direction
)
if not carrier: # no carrier_in/carrier_out defined
return 'resource'
else:
return carrier

def get_weight(self, y):
return self.get_option(y + '.stack_weight')
Expand Down
2 changes: 1 addition & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
- networkx
- numexpr
- numpy=1.12.1
- pandas=0.20.2
- pandas=0.19
- pyomo=5.2
- pytest
- pytest-cov
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def find_calliope_package_data():
"netcdf4 >= 1.2.2",
"numexpr >= 2.3.1",
"numpy >= 1.12",
"pandas >= 0.20, < 0.21",
"pandas >= 0.19, < 0.20",
"pyomo >= 5.2, < 5.3",
"pyyaml >= 3.11",
"xarray >= 0.9.5, < 0.10",
Expand Down

0 comments on commit 901dff4

Please sign in to comment.