-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from sciris/develop
Python3 fixes, etc.
- Loading branch information
Showing
7 changed files
with
128 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
__all__ = ['__version__', '__versiondate__', '__license__'] | ||
|
||
__version__ = '0.12.5' | ||
__versiondate__ = '2019-01-15' | ||
__version__ = '0.13.0' | ||
__versiondate__ = '2019-02-07' | ||
__license__ = 'Sciris %s (%s) -- (c) Sciris.org' % (__version__, __versiondate__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import sciris as sc | ||
|
||
# Load a sample Nutrition databook to try pulling cells from. | ||
wb = sc.Spreadsheet(filename='nutrition_databook.xlsx') | ||
|
||
# thang = wb.readcells(method='xlrd', sheetname='Baseline year population inputs') | ||
# thang2 = wb.readcells(method='openpyexcel', sheetname='Baseline year population inputs', wbargs={'data_only': False}) | ||
# thang2b = wb.readcells(method='openpyexcel', sheetname='Baseline year population inputs', wbargs={'data_only': True}) | ||
|
||
# Grab cells using xlrd. | ||
celltest = wb.readcells(method='xlrd', sheetname='Baseline year population inputs', cells=[[46, 2], [47, 2]]) | ||
|
||
# Grab cells using openpyexcel. You have to set wbargs={'data_only': True} to pull out cached values instead of | ||
# formula strings. | ||
celltest2 = wb.readcells(method='openpyexcel', wbargs={'data_only': True}, | ||
sheetname='Baseline year population inputs', cells=[[46, 2], [47, 2]]) | ||
|
||
print ('Cell test') | ||
print(celltest) | ||
print ('Cell test2') | ||
print(celltest2) | ||
|
||
print('Done.') |