Skip to content

eseas is a Python package that acts as a wrapper for the jwsacruncher Java package. This tool allows users to process Demetra workspace XML files, create batch files, execute them, and collect the desired outputs into individual Excel files.

License

Notifications You must be signed in to change notification settings

SermetPekin/eseas-repo

Repository files navigation

Python package

PyPI Supported Python Versions Downloads Downloads Downloads

eseas

eseas is a Python package that acts as a wrapper for the jwsacruncher Java package. This tool allows users to process Demetra workspace XML files, create batch files, execute them, and collect the desired outputs into individual Excel files.

Installation

eseas

You can install the eseas package via pip:

pip install eseas

Alternatively, you can install it from a local wheel file:

pip install ./eseas-0.1.0-py3-none-any.whl

Prerequisites

jwsacruncher

eseas requires the jwsacruncher Java package. You can download it from the jwsacruncher GitHub releases page.

Setup Instructions

  1. Download the latest release of jwsacruncher from the releases page.
  2. Unzip the downloaded file.
  3. Note the path to the bin directory inside the unzipped folder.

After downloading jwsacruncher, you need to specify its location when using the Options function from the eseas package.

Usage

Here's an example of how to use the eseas package:

from eseas import Seasonal, Options
import time

def main():
    # Specify the path to the jwsacruncher bin directory
    java_folder = r'../../Downloads/jwsacruncher-2.2.4/bin'
    demetra_source_folder = r"./demetra_source_folder"
    local_folder = r"./test_out"

    options = Options(
        demetra_source_folder,
        java_folder,
        local_folder,
        result_file_names=("sa", "s_f", "cal"), # *1

        workspace_mode=True,
        file_name_explanation=True,
    )
    # Note (1)
    # result_file_names see full list of result types from Demetra Components below

    seas = Seasonal(options)

    seas.part1()
    time.sleep(10)
    seas.part2()

if __name__ == "__main__":
    main()

Documentation

For more detailed information, refer to the following guides:

How it Works

  1. Input Directory: The user specifies the directory of the Demetra workspace where XML files are located.
  2. Batch File Creation: The package creates batch files for all XML files in the specified directory.
  3. Execution: It runs the batch files using the jwsacruncher tool.
  4. Output Collection: The specified outputs are collected and compiled into individual Excel files for each XML file processed.

Acknowledgments

Special thanks to the creators of the jwsacruncher Java package, which is integral to the functionality of eseas. For more information, visit the jwsacruncher GitHub repository.

About jwsacruncher

jwsacruncher is a Java implementation of the .NET application "WSACruncher". It is a console tool that re-estimates all the multi-processing defined in a workspace. The workspace can be generated by Demetra+ (.NET), JDemetra+ (Java), or any user tool. For more information, visit the jwsacruncher GitHub repository.

License

This project is licensed under the EUPL-1.2 License - see the LICENSE file for details.

About

eseas is a Python package that acts as a wrapper for the jwsacruncher Java package. This tool allows users to process Demetra workspace XML files, create batch files, execute them, and collect the desired outputs into individual Excel files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published