Release notes#
Version 0.27.0#
Enhancements
Bugfix for contribution analysis.
Disaggregated contributions from direct elementary flows.
Bugfix for market construction.
Bugfix for transport and trade margins.
Added new tasks for by-product replacing.
Added new task for SimaPro-compliant format.
Bugfix for zero-footprint in by-product market.
Modified approach for household disaggregated footprint.
Added method in
Matrixto detect circular dependency error.Fixed
PathBuilder.prices.Adjusted by-technology modelling approach from market products to industrial products.
Fixed mass balance for fertilizer market.
Updated prices for FAOSTAT data.
Fixed an issue with technical coefficients for sorting activities.
Improved documentation of methodology.
Backward Incompatible Changes
Removed unused utilities.
Removed unused tasks related to market.
Deprecated
paths.hiot_with_iluc.
Version 0.26.2#
Enhancements
Released V2.0.2.
Migrated a component of the household-disaggregation pipeline from R to Python.
Introduced an aggregated “average household” profile for all countries/regions where detailed household-level disaggregation is available.
Bugfix related to intensification of cropland.
Bugfix related to waste treatment services.
Bugfix related to fertilizer market.
Better technological modelling with more technical coefficients.
Updated documentation.
Backward Incompatible Changes
Deprecated bugfixing task:
revise_coproduction_of_pulp_industry,revise_unit_of_waste_services,determine_direct_emissions,scale_up_combustion_activities.Removed ununsed utilities.
Version 0.26.1#
Enhancements
Fixed schema change for final demand footprint.
Removed partial aggregation in contribution analysis.
Other updates for database connection.
Backward Incompatible Changes
Cleaned up configuration parameters.
Deprecated unused tasks.
Version 0.26.0#
Enhancements
Fixed final demand account in
generate_fd_b2.Replaced
flow_typefrom activity classification fromproducttoindustry.Adjusted
create_average_marketfor flexible monetary market composition.Improved
Connector.putfor product correspondence.Changes for flexible market and descriptions.
Bugfix for nuclear fuel trade.
Added transfer coefficient constraints in balance.
Added validation against Ecoinvent data.
Adjust technical coefficient constraints in balance.
Improved documentation for balance.
Backward Incompatible Changes
Deprecated
generate_hiot_for_simapro.Other deprecations for unused tasks.
Version 0.25.1#
Enhancements
Fixed documentation format for glossary.
Expanded methodology documentation for sector modelling, balances, and consequential workflows.
Expanded methodology overview with inline table of contents and references.
Rewrote documentation getting-started guide for environment setup.
Improved
Nodevalidation.Added
SUTGraph.pruneto prune invalid nodes.Added on-page feedback buttons to collect quick GitLab reactions.
Added footprint validation before loading into database.
Backward Incompatible Changes
Removed un-used functions in capital endogenization.
Removed un-used tests.
Version 0.25.0#
Enhancements
Added parametric constraints in balancing.
Bug fix for the task
create_average_markets.Improved code readability.
Added
descriptionfield toNode.Improved monetary SUT workflow.
Added agent instructions.
Improved functionality of
Connector.post.Security update.
Backward Incompatible Changes
Removed un-used files in documentation.
Version 0.24.4#
Enhancements
Added a single task for building domestic mix.
Refactored load PPF tasks for batch ingestion.
Integrated gapfilling into the workflow.
Added trade of services.
Improved documentation of PPF integration.
Backward Incompatible Changes
Deprecated domestic mix for each product.
Version 0.24.3#
Enhancements
Fixed integration of coke in the waste account.
Renamed
asses_waste_from_stocktocalc_waste_stock_variation.Added all accounts for monetary supply and use tables.
Fixed task dependencies for MSUT-related tasks.
Minor fix for PPF integration documentation.
Added
load_ppf_emissionas a task.Renamed coke related tasks to ppf tasks.
Backward Incompatible Changes
Deprecated a few utility functions.
Depreacted a few un-used functions in the
agriculturemodule.
Version 0.24.2#
Enhancements
Fixed national mix use of coke.
Used emission account after balance for footprint.
Excluded EXIOBASE monetary trade.
Fixed correspondence for cattle meat from Concito.
Fixed aluminum recycling by-product.
Backward Incompatible Changes
Deprecated task
distribute_remaining_use_with_monet_keys.Bugfix for integrating supply of coke PPF.
Deprecated un-used utilities.
Version 0.24.1#
Enhancements
Fixed monetary use distribution key.
Fixed location mapping from EUROSTAT to BONSAI.
Refactored integration of PPF supply.
Other bugfix and readability update.
Version 0.24.0#
Enhancements
Added internal Monetary SUT.
Improved workflow dependency.
Separated Leontif inverse and footprint calculation.
Fixed task for footprint in monetary unit.
Other bugfixes and code structure optimization.
Backward Incompatible Changes
Deprecated footprint-related tasks.
Version 0.23.4#
Enhancements
Added production and final demand footprint for GTP20.
Refactored tasks related to FAOSTAT to align with LCI structure.
Fixed tasks related to ILUC.
Other documentation and code readability update.
Backward Incompatible Changes
Deprecated footprint-related tasks.
Version 0.23.3#
Enhancements
Added topological sorting for
Workflowto avoid duplicated execution of tasks.Fixed task dependency issue.
Fixed
ryp2optional package dependency issue.Refactored contribution analysis for product-by-product IOT.
Fixed workflow not stop when task fail.
Other documentation update
Backward Incompatible Changes
Deprecated
Task.is_ready().Deprecated
Task.visual_task_dependency().
Version 0.23.2#
Enhancements
Improved algorithm for by-production technology modelling.
Improved algorithm for reference product identification.
Integrated household disaggregation into workflow.
Improved use table validation.
Other bugfixes and documentation.
Backward Incompatible Changes
Deprecated
BasePathsclass in favor of a singlePathBuilder.Deprecated
generate_prices_for_hiot.
Version 0.23.1#
Enhancements
Added price constraints to the balance.
Used
dataio.resources.ResourceRepositoryinstead ofdataio.config.Configfor integration.Refactored energy SUT for better clarification between clean and load.
Bugfixes for coal-related activities.
Updated correspondence from EXIO3 code.
Other readability update.
Backward Incompatible Changes
Deprecated
merge_emissions_accountin favor ofmerge_all_emissions.Removed
DEBUGconfiguration.Removed
clean_locattribute ofConfig.
Version 0.23.0#
Enhancements
New UI for documentation.
Refactored the algorithm for final demand footprint/contribution to calculate per capita footprint/contribution.
Integrated the first Parametrized production function.
Other documentation and code update.
Version 0.22.1#
Enhancements
Enhanced the inverse algorithm for cupy-based inversion.
Bugfix for reference/by- product list.
Switched from
numpytoscipy.sparsefor the default matrix inverse algorithm.Tested compatibility of critical tasks with Python3.12.
Refactored
generate_fd_simaprotask and renamed it togenerate_fd_b2.
Version 0.22.0#
Enhancements
Refactored the algorithm for creating the Stone’s market.
Refactored the algorithm for squarizing the supply and use table.
Enhanced the algorithm for calculating footprint.
Enahced the algorithm for creating the b2 Version for HIOT.
Backward Incompatible Changes
Adjusted workflow and deprecated few tasks.
Version 0.21.0#
Enhancements
Refactored the routine for FAOSTAT data processing
Converted BigClimate data into LCI data format
Added USGS data cleaning
Enhanced algorithm for balancing.
Bugfix for Stone’s market.
Added
classificationspackage dependency.Documentation update.
Version 0.20.0#
Enhancements
Fixed sourcing of new version file when not available.
Refactored to use reference product for constraints in co-production.
Added
sut_resource_repositorytoConfig.Added task to extract energy efficiencies.
Enhanced the balance algorithm.
Fixed property update for nodes in graph.
Added
rdflibas a dependency.Added RDF graph implementation to
SUTGraph.Refactored task
create_stone_market.
Backward Incompatible Changes
Deprecated
task_statusinTask.runmethod.
Version 0.19.0#
Enhancements
Compatibility update for the
WorkflowandTaskclass.Bugfix for
allocate_FAO_feedandadd_by_products_to_market_feed.Disaggregated several activities to fix by-production.
Removed unused scripts.
Improved documentation on integration of parametrized production function.
Added notebook to do country emission comparison.
Version 0.18.6#
Enhancements
Enhanced balance algorithm.
Added task dependency and its network visualization function in task class.
Documentation update.
Version 0.18.5#
Enhancements
Enhanced balance algorithm.
Upgraded
ipoptsolver from3.11to3.14.Bugfix for task registration.
Documentation update.
Version 0.18.4#
Enhancements
Fixed
clean_fao_products_transfer_product_coeff.Associated versions with configuration date.
Moved version directory to
BONSAI_HOME.Improved documentation on integration of parametrized production function.
Refactored tasks reltaed to the emission account.
Added
calculate_output_proportionality_coefftask to estimate by-production proportion.Other documentation update.
Version 0.18.3#
Enhancements
Excluded
C_MOTOandC_OTREfrom balance.Fixed cyclic task dependency among prices, hybrid SUT, and transport. #365
Fixed correspondence issue with
distribute_agri_products_used_as_seed. #364Fixed an issue with
replace_activities_with_markets.Added deprecation warnings for some utility functions.
Other code and documentation update.
Backward Incompatible Changes
Deprecated
creates_initial_use_accounts.Removed
exiogen_data_for_distrib_coeffs.py.
Version 0.18.2#
Enhancements
Bugfixs for tasks.
Removed global market in SUTs.
Added tonnes (service) as a property layer for waste treatment service.
Updated documentation on methodology and PPF integration
Bugfix for feed use estimate.
Adjusted gap-filling procedure for price.
Added waste stock estimate.
Version 0.18.1#
Enhancements
Updated
build_hybrid_sutto new workflow and other simplifications.Fixed an issue in monetary SUT build.
Updated
Task.infoand overideTask.__repr__to useTask.info.Other bugfix and code readability improvement.
Updated documentation.
Version 0.18.0#
Enhancements
Added task dependencies for all tasks.
Upgraded dependency on the transport module to use
Transport.distance.Used https connection to fetch the
transportpackage.Finalized the market account and created the first draft for supply and use table before balancing.
Added new algorithms to gapfill prices.
Added a version folder for the version file.
Refactored algorithms related to trade for readability.
Version 0.17.3#
Enhancements
Fixed the
aggregate_faostat_accountstask.Updated task sequence related to the B2 version.
Added
to_databaseattribute to theConfigclass.Fixed a correspondence error in
estimate_ferts_supply_n_property.Fixed a schema error in
calculate_ferts_markets.Added automatic identification of
task_namewith.get_dataframe_with_taskinCSVResourceRepository.Added the
collect_fao_exchange_ratetask.Fixed path error for
clean_exio_3.
Backward Incompatible Changes
Deprecated
log_levelandlog_handlerinstance attributes ofConfig.
Version 0.17.2#
Enhancements
Added
list_enginesmethod forMatrix.Added dependency for
scikit-learn.Fixed error in
clean_land_use.Bugfix and other documentation updates.
Backward Incompatible Changes
Deprecated
ut.report_taskin favor ofTask.log.Deprecated
auto_apifor documentation.
Version 0.17.1#
Enhancements
Added
parallelargument to allow parallelization of route searching.Added dependency to
rpy2for R scripts integration.Fixed an issue in freight market estimation.
Modified the method to derive freight rate and inventory cost.
Version 0.17.0#
Enhancements
Fixed wrong mapping in price estimation of market products.
Added
Routeto interact withtransportpackage.Added
FreightTranportwith logit Choice model to estimate transport modal share.Renamed
calc_freight_transport_usetocalc_freight_use.Added
merge_freight_use.Added package use and trade estimate.
Refactored market account estimation.
Version 0.16.2#
Enhancements
Fixed token setting with paginated results.
Uploaded forestry product correspondence to API.
Added passenger transport from OECD.
Added gapfill tasks for freight transport.
Cleaned UN production data.
Version 0.16.1#
Enhancements
Removed task related fuel use by transport due to duplication.
Added freight transport API fetch from OECD.
Estimated freight and passenger transport supply.
Deprecated few
PathBuilderinstance attributes.Added estimate of package supply.
Added estimate of treatment activity.
Other bug fixes.
Version 0.16.0#
Enhancements
Added dependency on the
transportpackage.Fixed token fetch error in
DataReader.Modified a validation check in mapping.
Added the transport account.
Fixed API request error with no-token access.
Version 0.15.1#
Enhancements
Added package and residual agricultural product use.
Added package waste supply and use.
Added example code for classification disaggregation.
Updated documentation.
Version 0.15.0#
Enhancements
Added
token_useconfiguration to avoid duplicated token-use prompt. #322Moved token setting related methods from
ConnectortoConnectorFactory.Created a
SingletonMetaclass forConfigto avoid duplicated initiation of configuration.Removed rough code from
src/.
Version 0.14.3#
Enhancements
Splitted monetary SUT data into distinct accounts.
Improved use of classifications.
Removed unused task related to monetary distribution coefficients.
Removed
trade_routemodule.Added
transportmodule.
Version 0.14.2#
Enhancements
Fixed bugs related to
PathBuilder.Added tasks to estimate package use and package waste.
Added task to aggregate BONSAI back to EXIOBASE.
Backward Incompatible Changes
Deprecated few path attributes of
PathBuilder.
Version 0.14.1#
Enhancements
Automated env var
BONSAI_TOKENsetting through user input. #318Added token caching.
Added token creating API endpoint into
APIEndpointenum.Deleted deps on
frictionless.Fixed
Task.runby giving default parameters.Fixed several path instances.
Version 0.14.0#
Enhancements
Separated
import_MSUTs_n_generates_distr_coeffsintoclean_monetary_supplyandclean_monetary_use_n_fd.Modified the behavior of
PathBuilder.composeso thataccount_nameis no longer mandatory.Added a task to convert BONSAI classification to EXIOBASE classification.
Added OS platform specific marker for
pypardiso.Added
cupyas an optional engine for matrix inverse.Added the
Matrixclass.Set Python image as 3.11 in CI pipeline.
Version 0.13.1#
Enhancements
Replaced several correspondence files with correspondence API.
Added draft code to automatically disaggregate package classification.
Version 0.13.0#
Enhancements
Started to use APIs for classifications update.
Started to use APIs for correspondence mapping.
Created an example of interacting with APIs.
Added a new API endpoint for property values.
Fixed
collect_trade_matrixwith parquet file streaming.Created a
validatemodule to aggregate all the data validation utilities.
Backward Incompatible Changes
Deprecated
DataPackagein favor ofResource.
Version 0.12.6#
Enhancements
Code readability update.
Documentation update.
Version 0.12.5#
Enhancements
Modified the schema of the product property account.
Replaced csv-based location correspondence with the location correspondence API.
Added
putmethod forConnectorto update records in APIs.Replaced csv-based activity classification with the activity classification API.
Replaced csv-based product unit classifiction with the product classification API.
Updated documentation.
Backward Incompatible Changes
Deprecated
exio_unitin favor ofPropertyEnum.Depreacted the use of
unit_for_residual_products.xlsx.
Version 0.12.4#
Enhancements
Fixed errors in the estimation of global market supply and use.
Created a merged product property account.
Excluded the item count layer from balance.
Added energy content estimation for market products. #312
Added fertilizer LCI and nitrogen aborption estimation.
Version 0.12.3#
Enhancements
Fixed task dependencies of
balance_sut.Added ore, fuel, and extraction and CO2 absorption into the balancing model.
Added energy layer into the balancing model.
Rename
property_of_productstomerge_property_of_products.Added resource heat values and calculated energy supplies of resources.
Added the squared difference method for objective function setting.
Backward Incompatible Changes
Deprecated
IndexNames.RESOURCE_NAMEin favor ofIndexNames.RESOURCE.
Version 0.12.2#
Enhancements
Renamed
build_sut_for_balancingtobuild_hybrid_sut.Added
convert_sut_to_graphas a seperate task.Added
build_monetary_sutas a task to create supply and use tables in monetary units.Added price-derived monetary supply and use table in the balance model.
Added resource extensions to the balance. #302
Other code readability improvement.
Version 0.12.1#
Enhancements
Added emission flows into graph structure.
Added emission flows into balancing.
Fixed a duplication error in adding
.inflowsand.outflowstoNode.Added
calc_prices_market_productsandestimate_prices_other_productsto fill missing price information.
Version 0.12.0#
Enhancements
Refactored the
build_sut_for_balancingtask.Fixed the
merge_emission_accountstask.Improved the performance of
validate_graph_balancemethod ofSUTGraph.Used graph as the data structure required by the balance model.
Used uuid for node indexing to avoid index collision.
Used
PathBuilder.composefor balance files.
Version 0.11.5#
Enhancements
Fixed the
create_one_supplytask.Fixed an unit conversion error in waste treatment price. #292
Fixed double units for
M_eggslandM_eggplfor the supply table. #293Fixed an error in reading the correspondence of waste market to waste fraction.
Added
C_CHARinother_prod_v3_vs_v4.csvcorrespondence to fix a correspondence error in distrubuting product use.Fixed a correspondence error that causes missing fertilizer supply from China. #299
Backward Incompatible Changes
Deprecated
PathBuilder.baci_clean.
Version 0.11.4#
Enhancements
Added balance constraints for activities
Splitted out each layer for balance validation in the
validate_node_balancemethod.Renamed the
determine_heat_markets_cons_electask toseparate_heat_n_elec_consumption.Added task dependencies for the energy module and the LCI module.
Fixed the
clean_IEA_datatask.
Backward Incompatible Changes
Deprecated
PathBuilder.iea_source_data.
Version 0.11.3#
Enhancements
Added methodology documentation for by-product modelling, marginal electricity mix and capital endogenization.
Added related tasks to methodology sections.
Removed duplicated tasks in task registry.
Version 0.11.2#
Enhancements
Introduced property layer in the balance problem formulation.
Added tasks for packaging coefficient clean, and packing waste calculation.
Renamed
clean_eurostat_wastetoclean_eurostat_waste_treatment.Added tasks to disaggregate residential waste into industrial waste and municipality waste.
Added
export_graphmethod toBalanceModel.Added constraints for activity balance but not used because of not able to find an optimum.
Backward Incompatible Changes
Deprecated
export_resultsmethod ofBalanceModel.
Version 0.11.1#
Enhancements
Added
validate_balanceto theSUTGraphclass for graph-level balance validation.Renamed node-level balance from
validate_balancetovalidate_balance_node.Fixed missing supply in balancing procedure.
Refactored
validate_balancemethod to validate balance on multiple properties layers.
Backward Incompatible Changes
Deprecated the
validate_graph_balanceutility function.Deprecated the
balance_nodemethod inSUTGraph.
Version 0.11.0#
Enhancements
Added the first working balance model.
Added closest match suggestion for
Workflow.get_task.Finished product balance model and consolidated the workflow for balance.
Added a script to analysze balance results.
Version 0.10.5#
Enhancements
Added gitlab url for documentations.
Fixed documentation errors and warnings from
sphinx.Added contribution guideline for
Documentation.Added favicon for the docs.
Refactored product supply and use balance validation and optimization.
Version 0.10.4#
Enhancements
Added BONSAI color scheme for documentation website
Version 0.10.3#
Enhancements
Added documentation on land use accounting.
Added CI pipeline for automatic documentation creating. #278
Added
__version__.pyto fix version in documentation.Switched to
autoapifor automatic API documentation.Fixed cross reference errors in readme.
Version 0.10.2#
Enhancements
Added
.logmethod in theTaskclass.Started to deprecate
report_taskfunction.Removed the use of
ut.report_taskandut.write_a_report.Added task dependencies for packaging related tasks.
Improved docstring for
PathBuilder.compose.
Version 0.10.1#
Enhancements
Modified the triggering conditions of tasks related to basic price footprint calculation.
Cleaned up hiot code related to footprint hybrid and footprint basic price.
Moved LCI clean data into clean directory and modified the
paths.lci_cleanedattribute of Paths.Moved account list into a persistent storage instead of in the repository to facilitate concurrent writing.
Added task dependency for food waste related tasks.
Version 0.10.0#
Enhancements
Cleaned up code related to HIOT manipulation.
Added deprecation warning to the
exio_unitclass.Added
generate_tidy_iointo the workflow.Miscenaneous code refactoring and documentation update.
Added Packaging account and tasks related to calculating package coefficients, and waste from packages.
Added human metabolism coefficient to calculate waste coefficient from final consumption.
Added a task determine_total_waste_of_products to aggregate waste supply account.
Added stock degradation function (waste lifetime).
Disaggregated waste into industrial waste and municipality waste.
Backward Incompatible Changes
Depreacted the
create_compact_iotask.Renamed
calc_hiot_n_footprinttocalc_footprint_b1.Renamed
utility_exiobase_3.pytoutil_others.py.
Version 0.9.3#
Enhancements
Introduced
pypardisoto solve A matrix inversion.Full matrix inversion for b1, iLUC, marginal electricity and capital endogenization version using
pypardiso.Improved the algorithm for updating HIOT with marginal electricity mix data.
Version 0.9.2#
Enhancements
Created a unified table for transfer coefficients.
Created a unified table for waste coefficients.
Created a unified table for emission coefficients.
Fixed an unit issue in capital endogenization.
Bugfix with the
import_lci_alcolic_beveragetask.Added byproduction of beverage into the Supply table.
Add byproduction of feed into the feed market.
Fixed an unit issue with the
clean_fao_forestrytask.Added
PropertyEnumto standardize the use of units across the repository.Downgraded account not found infomation in
VersionCollectionfromwarningtoinfo.Added direct activation of tasks within the
DEBUGmode.Upgraded
faostatapi to v1.1.1 because the service URL has changed.Added a first version of tidy IO implementation. (Not included in the workflow yet).
Backward Incompatible Changes
Moved default settings to the first level of support.
Renamed
config_data.pyasconfig.py. TheConfigclass will be used for configuration loading in the future.Replaced
exio_unitwithPropertyEnum.
Version 0.9.1#
Enhancements
Refactored waste price estimation and added into task registration.
Refactored electricity price estimation and added into task registration.
Added task dependencies for price related tasks.
Started to deprecate data packages.
Integrated BACI data collection into the workflow.
Other documentation updates.
Backward Incompatible Changes
Deprecated
lci_monet_genericattribute forPathBuilderbecuase it is same aslci_prod_generic.Modified the default behavoir of the
PathBuilder.compose. Now it defaults to get the latest version of an account (Before it isNone). To set a no-version path,version_datehas to be set asNoneexplicitly.
Version 0.9.0 (Renaming to BONSAI-IO)#
Version 0.8.3#
Enhancements
Bugfix for the
import_n_clean_IEA_datatask. #289Performance improvement for the
import_n_clean_IEA_datatask.Bugfix for the
import_n_convert_un_datatask.Consolidated workflow related to UN data.
Added a task
clean_prices_recyclingthat derives prices for product recycling. #290Added a task
clean_elec_pricesthat derives electricity prices from ComTrade.Added reference product to energy-related transfer coeffients. #291
Bugfix in the generate_market_of_heat task.
Bugfix for the clean_fao_forestry task.
Added a task calculate_by_production_of_beverage to calculate by-production of beverage and inserted into workflow.
Known issues
Missing activity correspondence between IEA and Base classifications causing error in the
clean_IEA_datatask.
Version 0.8.2#
Enhancements
Fixed a bug in testing zeros in the diagonal of
hiot_b2_extend.pkl. #285Converted supply use tables into a graph and do a node balance.
Fixed an issue in the
import_n_clean_IEA_datatask.
Version 0.8.1#
Enhancements
Fixed bugs related to unit and column name changes when integrating with FAOSTAT API with iLUC model.
Improved FAO clean task to accommodate multiple years.
Fixed a bug related to
PathBuilder.compose. Account source and version source not synchromized when an account is first created.Fixed bug for the
calc_tier1_contribtask and improved performance.Added the
aggr_tier1_contribtask to aggregate top contributions and post to the database.Added
chunk_sizeto thepostmethod ofConnectorfor lightweighted post.
Version 0.8.0#
Enhancements
Improved memory usage for the
generate_hiot_simaprotask.Fixed a bug in
PathBuilder.compose.Added
is_downstream_taskmethod for theTaskclass.Added the
stoparugment forWorkflow.execute.Fixed the
collect_trade_matrixtask for FAOSTAT.
Backward Incompatible Changes
Renamed the
start_fromargument of theWorkflow.executemethod tostart.Deprecated
Config.exnames.
Version 0.7.2#
Added
collect_comtrade_tradetask. (Known issue: quota exceeding error)Added
concat_footprintandcalc_tier1_contribinto the workflow.Fixed a bug in
PathBuilder.compose.Refactored the contribution analysis for speed.
Improved ReadMe document.
Version 0.7.1#
Renamed
determine_total_demand_of_manuretoclean_concito_manure_total.Added sorting for listed groups and tasks in
Workflow().list_tasks().Added
clean_baci_priceinto the workflow.Added
collect_baciandcollect_baci_unziptasks. (Still not working with clean tasks)Added scripts related to PV life cycle inventories.
Fixed bug in fertiliser market availability.
Version 0.7.0#
Fixed a bug in the
combine_trade_flowtask after integrating withfaostatAPI.Refactored distribution of monetary flows from exio3 into the use table.
Fixed a bug in merging LCI.
Moved calculation of available physical flow from final use table to inital use table.
Fixed a bug in generating FAOSTAT clean accounts that generate unintended
nanvalues.Refactored food distribution for the use table.
Refactored seed distribution for the use table.
Added extensions (Natural resource and value added) to the SimaPro version.
Refactored marginal electricity market insertion logic for SimaPro
Added
AccountandAccountRepositoryclasses for accounts data access.Added
VersionRepositoryinterface andTXTVersionRepositoryandAPIVersionRepositoryclass to manage version data access logic.Refactored
PathBuilder().createmethod to.composeso that it can compose a path with a given pattern ->/<stage>/<account>/<version_date>/Added a test for
Workflowinit.
Version 0.6.0#
Fixed a bug in url parse in the
Resourceclass.Fixed a bug in the
clean_fao_forestrytask.Added dependency to the
faostatpackage.Added
colleact_faostatrelated tasks.
Version 0.5.5#
Renamed
import_baci_for_exiobasetoclean_baci_trade.Added
clean_baci_w_trade.pyin thetrademodule to bridge the gap between collect and clean BACI data.Added the
aggregate_bacitask into task graph.Used
schema_enumsfor thecombine_trade_flowstask.Added waste and production related tasks into the task graph.
Added test for hiot market balance.
Version 0.5.4#
Upgraded dependecy to
Pandasfrom2.0.0to2.0.3to resolve redundant warnings.Renamed
elaborate_faostattask toaggregate_faostat_accountsand added upstream task dependencies for it.Renamed
fao_foresty_datatoclean_fao_forestryand added task dependencies for it.Improved the speed of the
clean_fao_fisherytask.Miscellaneous code refactor for readability improvement.
Version 0.5.3#
Fixed a location parse error in
Resource.Modularized the construction of use table for easier decomposition.
Added
clean_AU_waste,clean_eurostat_wasteandclean_waste_exio3tasks.
Version 0.5.2#
Fixed a
FileNotFoundbug in taskelaborate_faostat.Fixed a bug in task
land_use_extensions.Fixed a query error bug in
ResourceRepository.get_from_dataframemethod.Fixed an error in FAOSTAT country correspondence in task
elaborate_faostat.
Version 0.5.1#
Added
.upstream_tasksand.downstream_tasksmethod in theTaskclass to create task dependency.Added
TaskStatusto track the status of tasks in workflow.Workflow().execute()works now.Added tasks dependencies in task registration.
Added task
.is_ready()check to check the status of a task.BONSAI_HOMEcan now be set as/path/to/bonsai/_bonsai/as well.Updated ReadMe docs.
Version 0.5.0#
Added
ResourceandResourceRepositoryclasses for data resource management.Added
CSVResourceRepositoryandSQLiteResourceRepositoryfor different implementations of a resource repository.Added
.resource_repositoryproperty forConfig.Deprecated
._set_bonsai_rootmethod in PathBuilder. Now the environmental variableBONSAI_HOMEis the only way to initiate the workflow.Improved performance for the
clean_sua_crop_livestask.Fixed bugs in the
trade_routemodule.Updated docs on data access and quick examples.
Version 0.4.3#
Added
distribute_IEA_final_consumption_to_activitiestask to allocate energy across final consumption activities.Optimized sparse data representation to decrease the size of exported datasets.
Fixed mapping of IEA heat markets and base activities classification.
Fixed an issue in MSUT unit labelling, changing from “euro” to “Meuro”.
Miscellaneous bug fix and docs update.
Version 0.4.2#
Deprecated
exnamesin favor ofschema_enums.Register all tasks in
workflow_main.pyto task_registry.Improved documentation for
Task.Added
.run_tasks()method to run several tasks.Renamed the
workflow_mainmodule totask_registrationUpdated documentation on setting up environmental variable.
Wrapped up all tasks into task_registry.
Version 0.4.1#
Updated dependence to
pandas==2.0and related code refactoring.Fixed bugs in clean FAOSTAT data.
Deprecated
paths_exioproperty forConfig.Added deprecation warning to
exnamesproperty.Added
schema_enumsproperty to replaceexnamesin theConfigclass.Added format for
Workflow.list_tasks()method for better usability.Fixed a bug in ferlizer cleaning.
Added
.get_task_info()method for theWorkflowclass.
Version 0.4.0#
Finished first version of the
Workflowclass and theTaskclass.Created a new way to register tasks to workflow.
Added templates for contributing.
Other bug fixs and documentation update.
Bumped BONSAI version to
1.1.0
Version 0.3.3#
Fixed path error to
b2_simapro_version.Miscellaneous code clean up.
Version 0.3.2#
Inserted revised LCI data for fertilisers
Removed unexpected input of fertilisers into energy/electricity processes
Corrected null margins for outputs from multi-functional activities
Renamed the
exio_namesmodule asschema_enumsand decoupled from tasksAdded a database level versioning variable
DB_VERSION
Version 0.3.1#
Added
.list_path_attributesmethod toPathBuilder.Cleaned up utilities from exiobase3.
Updated documentation on installation and quick start in
Readme.md.Renames
capital_invest_mat_rev2.pyascapital_invest_mat.py.Added a logging utility:
deprecateddecorator.Added deprecation warning to
Config.paths_exio, ready to replace.paths_exiowith.path_repository.Moved
report_change_in_versionsfunction tologgings.pyfor better logging management.Created
methodology.mdand moved detailed methodology descriptions.
Version 0.3.0#
The
ExioPathsclass is renamed asPathBuilderfor generalization of naming.._path_exioproperty of theConfigclass is renamed as_path.version_fileargument is deprecated in thePathManagerclass..list_parameters()method is added for theConfigclass for better exploration of the configuration by users.Added
taskdecorator to register tasks to a global register for workflow to find.Added
list_tasksanddiscover_tasksto theWorkflowclass.Incorporated path creating logic into
PathBuilder.
Version 0.2.1#
Added a task to aggregate footprint in different units.
Version 0.2.0#
This release introduces significant architectural improvements to the project, focusing on enhancing the workflow execution and configuration management. Key developments include the introduction of a Workflow class for streamlined workflow management and a Config class for centralized configuration handling.
Created
Workflowclass to to orchestrate the execution of tasks, making the workflow process more intuitive and manageable.Restructured the project hierarchy, moving
ConfigandWorkflowclasses to the first level of import for easier access and better modularity.Other bug fixes.
Version 0.1.0#
Packaged the code for the generation of exiobase 2016 tables.