Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include COPYING
recursive-include larray/tests/data *.csv *.xlsx *.h5
recursive-include larray/tests/data *.csv *.xlsx *.h5
recursive-include larray/tests/excel_template *.crtx
4 changes: 2 additions & 2 deletions condarecipe/larray/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package:
name: larray
version: 0.30
version: 0.31-dev

source:
git_tag: 0.30
git_tag: 0.31-dev
git_url: https://github.com/larray-project/larray.git
# git_tag: master
# git_url: file://c:/Users/gdm/devel/larray/.git
Expand Down
31 changes: 31 additions & 0 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,37 @@ Excel
Workbook.close
Workbook.app

ExcelReport
===========

.. autosummary::
:toctree: _generated/

ExcelReport
ExcelReport.template_dir
ExcelReport.template
ExcelReport.set_item_default_size
ExcelReport.graphs_per_row
ExcelReport.new_sheet
ExcelReport.sheet_names
ExcelReport.to_excel

ReportSheet
===========

.. autosummary::
:toctree: _generated/

ReportSheet
ReportSheet.template_dir
ReportSheet.template
ReportSheet.set_item_default_size
ReportSheet.graphs_per_row
ReportSheet.add_title
ReportSheet.add_graph
ReportSheet.add_graphs
ReportSheet.newline

.. _api-misc:

Miscellaneous
Expand Down
8 changes: 8 additions & 0 deletions doc/source/changes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Change log
##########

Version 0.31
============

In development.

.. include:: ./changes/version_0_31.rst.inc


Version 0.30
============

Expand Down
36 changes: 36 additions & 0 deletions doc/source/changes/version_0_31.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.. py:currentmodule:: larray


Syntax changes
^^^^^^^^^^^^^^

* renamed ``LArray.old_method_name()`` to :py:obj:`LArray.new_method_name()` (closes :issue:`1`).

* renamed ``old_argument_name`` argument of :py:obj:`LArray.method_name()` to ``new_argument_name``.


Backward incompatible changes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

* other backward incompatible changes


New features
^^^^^^^^^^^^

* added the :py:obj:`ExcelReport` class allowing to generate multiple graphs in an
Excel file at once (closes :issue:`676`).


.. _misc:

Miscellaneous improvements
^^^^^^^^^^^^^^^^^^^^^^^^^^

* improved something.


Fixes
^^^^^

* fixed something (closes :issue:`1`).
10 changes: 6 additions & 4 deletions larray/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import absolute_import, division, print_function

__version__ = '0.30'
__version__ = '0.31-dev'


from larray.core.axis import Axis, AxisCollection, X
Expand Down Expand Up @@ -30,6 +30,7 @@
from larray.inout.sas import read_sas
from larray.inout.stata import read_stata
from larray.inout.xw_excel import open_excel, Workbook
from larray.inout.xw_reporting import ExcelReport

# just make sure handlers for .pkl and .pickle are initialized
import larray.inout.pickle as _pkl
Expand All @@ -41,7 +42,7 @@

from larray.extra.ipfp import ipfp

from larray.example import get_example_filepath, load_example_data
from larray.example import get_example_filepath, load_example_data, EXAMPLE_EXCEL_TEMPLATES_DIR

import larray.random

Expand Down Expand Up @@ -75,15 +76,16 @@
'real_if_close', 'interp', 'isnan', 'isinf', 'inverse',
# inout
'from_lists', 'from_string', 'from_frame', 'from_series', 'read_csv', 'read_tsv',
'read_eurostat', 'read_excel', 'read_hdf', 'read_sas', 'read_stata', 'open_excel', 'Workbook',
'read_eurostat', 'read_excel', 'read_hdf', 'read_sas', 'read_stata',
'open_excel', 'Workbook', 'ExcelReport',
# utils
'get_options', 'set_options',
# viewer
'view', 'edit', 'compare',
# ipfp
'ipfp',
# example
'get_example_filepath', 'load_example_data',
'get_example_filepath', 'load_example_data', 'EXAMPLE_EXCEL_TEMPLATES_DIR',
]


Expand Down
8 changes: 7 additions & 1 deletion larray/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
import larray as la


EXAMPLE_FILES_DIR = os.path.dirname(__file__) + '/tests/data/'
_TEST_DIR = os.path.join(os.path.dirname(__file__), 'tests')

EXAMPLE_FILES_DIR = os.path.join(_TEST_DIR, 'data')
# TODO : replace 'demography.h5' by 'population_session.h5' and remove 'demo' ?
AVAILABLE_EXAMPLE_DATA = {
'demo': os.path.join(EXAMPLE_FILES_DIR, 'population_session.h5'),
'demography': os.path.join(EXAMPLE_FILES_DIR, 'demography.h5')
}
AVAILABLE_EXAMPLE_FILES = os.listdir(EXAMPLE_FILES_DIR)

EXAMPLE_EXCEL_TEMPLATES_DIR = os.path.join(_TEST_DIR, 'excel_template')


def get_example_filepath(fname):
"""Return absolute path to an example file if exist.
Expand Down
Loading