Skip to content

Commit a18b190

Browse files
committed
Re-export the SimpleComposition name
1 parent 50f0483 commit a18b190

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

brainpy/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
from .composition import parse_formula, PyComposition
1111

1212

13+
SimpleComposition = PyComposition
14+
15+
1316
def get_include():
1417
"""Retrieve the path to compiled C extensions' source files to make linking simple.
1518
@@ -40,7 +43,7 @@ def get_include():
4043
"max_variants", "calculate_mass", "neutral_mass", "mass_charge_ratio",
4144
"PROTON", "_has_c", "Peak",
4245

43-
"parse_formula", "PyComposition",
46+
"parse_formula", "PyComposition", "SimpleComposition",
4447

4548
"_IsotopicDistribution",
4649

brainpy/composition.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,6 @@ def parse_formula(formula):
132132
except ImportError as e:
133133
print(e)
134134
_has_c = False
135+
136+
137+
SimpleComposition = PyComposition

0 commit comments

Comments
 (0)