Material Flow Analysis Problem
Project description
Prerequisite
Git and Python installed. Preferably installed with conda and inside a virtual environment. The virtual environment must be activated:
$conda activate "my_env"
Installation
In a shell, in a working folder type:
$git clone https://gitlab.com/libeigen/eigen.git
On linux or MAC:
$export EIGEN_INCLUDE=D:/TerriFlux/eigen
(replace D:/TerriFlux/eigen by real path which includes eigen (without quote). No spaces around the equal sign. To know the path type ‘pwd’ on linux or mac)
On windows:
$set EIGEN_INCLUDE=D:/TerriFlux/eigen
(replace D:/TerriFlux/eigen by real path which includes eigen (without quote). To know the path type ‘pwd’ on linux or mac or cd on windows)
pip install MFAProblem (on mac CFLAGS=-stdlib=libc++ pip install MFAProblem) (sometimes )
Test
To run the tests:
$python -m unittest discover mfa_problem.tests.unit
$python -m unittest discover mfa_problem.tests.integration
Run exemples
Get the examples:
$git clone https://gitlab.com/greel/mfa-problem-test.git
Run the examples (modify file path):
$run_mfa_problem_main_with_excel.py --input_file reconciliation/pommes_poires.xlsx
$run_create_empty_ter.py --input_file create/pommes_poires.xlsx
$run_mfa_problem_check_input.py --input_file check/orge_new_segm.xlsx
There may be issues on mac or linux with line return coded with windows convention, you need to replace CRLF by LF using Notepad++ for example. Otherwise you run the executable through python like this:
$python mfa_problem/bin/run_mfa_problem_main_with_excel.py .... (change the path)
Modify options:
$run_mfa_problem_main_with_excel.py --input_file reconciliation/pommes_poires.xlsx --output_dir input
$run_mfa_problem_main_with_excel.py --input_file reconciliation/pommes_poires.xlsx --output_dir path C:/users/julie
$run_create_empty_ter.py --input_file create/pommes_poires.xlsx --output_dir input
$run_create_empty_ter.py --input_file create/pommes_poires.xlsx --output_dir C:/users/julie
$run_mfa_problem_check_input.py --input_file check\orge_new_segm.xlsx --output_dir input
$run_mfa_problem_check_input.py --input_file check\orge_new_segm.xlsx --output_dir path C:/users/julie
Standalone to see doc:
$run_mfa_problem_main_with_excel.py
$run_create_empty_ter.py
$run_mfa_problem_check_input.py
Notebooks
In a shell in the same folder as above:
$pip install jupyter
$pip install ipyfilechooser
$install_mfa_problem_notebook.py
$cd ~/mfa_problem_notebook
$jupyter notebook basic_workflow.ipynb
Project
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for MFAProblem-1.0.1b2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2dd224506107ef814fa052384d8f9d9606b807958548f5c3a718f13a352f83a |
|
MD5 | 3c07c9c62acf4944ba1f49d663e92ddb |
|
BLAKE2b-256 | 3e264e970f703e9f0454d5d24db3ffd7de39e9d0b3d3ecd4e0f6b68bb68abafe |