Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4ae830a
Add more control for logging
cmutel Nov 7, 2025
186b14c
Note that synonyms shouldn't overlap in README
cmutel Nov 7, 2025
4e782ba
Move to `src` layout
cmutel Nov 7, 2025
f7f5aa1
Complete move to absolute imports
cmutel Nov 7, 2025
82a5af0
Remove loguru
cmutel Nov 7, 2025
f4a5fa1
Add additional tests for missing code paths
cmutel Nov 7, 2025
9f17313
Bump minimum Python version
cmutel Nov 7, 2025
ac7b5d1
Allow match functions to see all source and target flows
cmutel Nov 7, 2025
01ee4cd
Add fixes for required randonneur fields
cmutel Nov 7, 2025
860ee1b
Improve test reporting and edge cases
cmutel Nov 7, 2025
00a3b0a
Additional test fixes
cmutel Nov 7, 2025
1c7d383
Allow profiling of matching
cmutel Nov 7, 2025
f22e61d
Patch broken tests for now
cmutel Nov 7, 2025
14d27e7
Avoid running tests twice if they error out
cmutel Nov 7, 2025
0a13345
Reduce profiler interval for smaller result file sizes
cmutel Nov 8, 2025
1f514cc
Start refactoring to version flows
cmutel Nov 8, 2025
b4950ba
Add new field for oxidation state
cmutel Nov 8, 2025
d6a6348
Redo unit field
cmutel Nov 8, 2025
c891725
Change to `cas_number`
cmutel Nov 8, 2025
91d2d20
Redo CAS field
cmutel Nov 8, 2025
aa767ca
Remove StringList
cmutel Nov 8, 2025
1abd0e2
Add remove_unit_slash
cmutel Nov 8, 2025
c101918
Test split_location_suffix
cmutel Nov 8, 2025
8f691aa
Update StringField
cmutel Nov 8, 2025
e213341
Update ContextField
cmutel Nov 8, 2025
9c7a818
Big progress on refactoring
cmutel Nov 11, 2025
86ac29f
Add equality operator for CASField
cmutel Nov 12, 2025
380344d
Add reset_current and update_current to NormalizedFlow
cmutel Nov 12, 2025
ad9e05b
Add is_resource to ContextField
cmutel Nov 12, 2025
eaae8c1
Fix exporting of results
cmutel Nov 14, 2025
301429e
Add context manager for temporarily changing normalized flows
cmutel Nov 14, 2025
6ed9096
Fix matching for more functions
cmutel Nov 17, 2025
7a5cbb1
Refactor layout
cmutel Nov 20, 2025
2a0ccf2
Put SimaPro functions in their own file
cmutel Nov 20, 2025
c0369f1
Last bit
cmutel Nov 21, 2025
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,4 @@ dmypy.json

# Pyre type checker
.pyre/
pyrightconfig.json
619 changes: 619 additions & 0 deletions Generate ecoinvent transitive mapping.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ontology that `flowmapper` uses:
* context: tuple[str], a hierarchical organization into environmental compartments, e.g. `("air", "urban air close to ground")`
* unit: str, or complex type with a string representation, e.g. "kg"
* sector-specific labels: str, or complex type with a string representation, a set of additional fields which can help identify or further specify a flow, e.g. CAS number 000110-63-4
* synonyms: list[str], a list of alternative unique names for a substance, e.g. `["Butylene glycol", "butane-1,4-diol"]`
* synonyms: list[str], a list of alternative unique names for a substance, e.g. `["Butylene glycol", "butane-1,4-diol"]`. Synonyms should not overlap.

Flowmapper **assumes that the source and target lists are given in this format**; it comes with or plays well with conversion software for data formats like ecospold, FEDEFL, and SimaPro CSV.

Expand Down
Loading