Skip to content

Commit

Permalink
Merge pull request #96 from Roche/dev
Browse files Browse the repository at this point in the history
version 1.0.6
  • Loading branch information
ofajardo authored Dec 17, 2020
2 parents 876a17a + 1f56207 commit 2906533
Show file tree
Hide file tree
Showing 43 changed files with 2,349 additions and 2,059 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,6 @@ user defined missing values in stata/sas where characters (a to z, A to Z, \_) w

pyreadstat builds on top of Readstat and therefore inherits its limitations. Currently those include:

* XPT files v8 with labels are not read correctly (see [here](https://github.com/WizardMac/ReadStat/issues/208))
* Cannot read sas7bdat dataset labels (see [here](https://github.com/WizardMac/ReadStat/issues/180))
* Dates, datetimes and times in SPSS POR files are not translated to python dates, datetimes and times, but stay as
timestamps. (see [here](https://github.com/WizardMac/ReadStat/issues/160))
* Cannot write SAS sas7bdat. Those files can be written but not read in
SAS and therefore are not supported in pyreadstat. (see [here](https://github.com/WizardMac/ReadStat/issues/98))

Expand All @@ -765,7 +761,7 @@ Converting data types from foreign applications into python some times also brin
OverflowError: date value out of range
```

The workarounds to deal with this include using the keyword argument disable_datetime_conversion so that you will
The workaround is to deal with this include using the keyword argument disable_datetime_conversion so that you will
get numbers instead of datetime objects or skipping reading such columns with the argument usecols.

## Python 2.7 support.
Expand All @@ -777,8 +773,10 @@ At the moment of writing this document Python 2.7 does not work for windows.
It does work for Mac and Linux. In Mac and Linux, files cannot be opened
if the path contains international (non-ascii) characters. As mentioned
before this bug is not going to be repaired (There is not such issue on
Python 3).
Python 3).

Starting on version 1.0.6 wheels are not produced for Python 2.7 anymore,
but you can still compile on linux and mac.

## Change log

Expand Down
5 changes: 5 additions & 0 deletions change_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.0.6 (github, pypi and conda 2020.12.17)
* Updated Readstat to version 1.1.5, this fixes: reading sas7bdat file labels,
reading newer por files date-like columns, and few others.
* Corrected writing columns with numpy.float32 format.

# 1.0.5 (github, pypi and conda 2020.11.13)
* fixed sharing permissions when reading files on windows, fixes #87

Expand Down
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 0e6aa8dad2e26ffbb7cd3a5536c8b463
config: 91713509866076208214b3c819ac7b2d
tags: 645f666f9bcd5a90fca523b33c5a78b7
1 change: 1 addition & 0 deletions docs/_build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ object contains the following fields:
in the value_labels coming from the sas7bcat file.
* original_variable_types : a dict of variable name to variable format in the original file. For debugging purposes.
* table_name : table name (string)
* file_label : file label (SAS) (string)
* missing_ranges: a dict with keys being variable names. Values are a list of dicts. Each dict contains two
keys, 'lo' and 'hi' being the lower boundary and higher boundary for the missing range. Even if the value in both
lo and hi are the same, the two elements will always be present. This appears for SPSS (sav) files when using the
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '1.0.5',
VERSION: '1.0.6',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Index &mdash; pyreadstat 1.0.5 documentation</title>
<title>Index &mdash; pyreadstat 1.0.6 documentation</title>



Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Welcome to pyreadstat’s documentation! &mdash; pyreadstat 1.0.5 documentation</title>
<title>Welcome to pyreadstat’s documentation! &mdash; pyreadstat 1.0.6 documentation</title>



Expand Down Expand Up @@ -181,6 +181,7 @@ <h1>Metadata Object Description<a class="headerlink" href="#metadata-object-desc
in the value_labels coming from the sas7bcat file.</p></li>
<li><p>original_variable_types : a dict of variable name to variable format in the original file. For debugging purposes.</p></li>
<li><p>table_name : table name (string)</p></li>
<li><p>file_label : file label (SAS) (string)</p></li>
<li><p>missing_ranges: a dict with keys being variable names. Values are a list of dicts. Each dict contains two
keys, ‘lo’ and ‘hi’ being the lower boundary and higher boundary for the missing range. Even if the value in both
lo and hi are the same, the two elements will always be present. This appears for SPSS (sav) files when using the
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Python Module Index &mdash; pyreadstat 1.0.5 documentation</title>
<title>Python Module Index &mdash; pyreadstat 1.0.6 documentation</title>



Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Search &mdash; pyreadstat 1.0.5 documentation</title>
<title>Search &mdash; pyreadstat 1.0.6 documentation</title>



Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# The short X.Y version
version = ''
# The full version, including alpha/beta/rc tags
release = '1.0.5'
release = '1.0.6'


# -- General configuration ---------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ object contains the following fields:
in the value_labels coming from the sas7bcat file.
* original_variable_types : a dict of variable name to variable format in the original file. For debugging purposes.
* table_name : table name (string)
* file_label : file label (SAS) (string)
* missing_ranges: a dict with keys being variable names. Values are a list of dicts. Each dict contains two
keys, 'lo' and 'hi' being the lower boundary and higher boundary for the missing range. Even if the value in both
lo and hi are the same, the two elements will always be present. This appears for SPSS (sav) files when using the
Expand Down
2 changes: 1 addition & 1 deletion pyreadstat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
from .pyreadstat import read_file_in_chunks, read_file_multiprocessing
from ._readstat_parser import ReadstatError, metadata_container

__version__ = "1.0.5"
__version__ = "1.0.6"
Loading

0 comments on commit 2906533

Please sign in to comment.