Skip to content

Commit b85cedd

Browse files
Kate NoskovaKate Noskova
authored andcommitted
Fix code style and small bugs
1 parent 6a240b1 commit b85cedd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gadma/cli/settings_storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def _get_variable(cls, par_label, domain, engine="dadi"):
7070
"""
7171
Returns correct variable from its label.
7272
If engine is `dadi` or `moments` then variable will be in `genetic` units
73-
by default if othervise is not stated. If engine is something else (`momi2`)
74-
then units are `physical` by default.
73+
by default if othervise is not stated. If engine is something else
74+
(`momi2`) then units are `physical` by default.
7575
7676
If parameter label has `_phys` or `_gen` at the end then it is mark about
7777
the units. For example, engine is `dadi` but label is `nu_phys` that

gadma/code_generator/momi_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def print_data_reading(engine):
165165
ret_str = f"import gadma\n"
166166
ret_str += "data_holder = gadma.SFSDataHolder("
167167
ret_str += f"'{engine.data_holder.filename}')\n"
168-
ret_str += "data = gadma.get_engine('momi')"\
168+
ret_str += "data = gadma.get_engine('momi2')"\
169169
".read_data(data_holder)\n"
170170

171171
if isinstance(engine.data_holder, VCFDataHolder):

tests/test_dem_model_structure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def build_model(init_struct, final_struct):
422422
def test_transform(self):
423423
for structure in BASE_TEST_STRUCTURES:
424424
for base_migs, base_sels, base_dom, base_dyns, base_symms, base_fracs, base_inbr in\
425-
list(itertools.product([False, True],repeat=6)):
425+
list(itertools.product([False, True],repeat=7)):
426426
base_mig_masks = [None, self._generate_mig_mask(structure,
427427
base_symms)]
428428
if len(structure) == 1 or not base_migs:
@@ -438,7 +438,7 @@ def test_transform(self):
438438
frac_split=base_fracs,
439439
has_inbr=base_inbr)
440440
for new_migs, new_sels, new_dom, new_dyns, new_symms, new_fracs, new_inbr in\
441-
list(itertools.product([False, True],repeat=6)):
441+
list(itertools.product([False, True],repeat=7)):
442442
new_mig_masks = [None, self._generate_mig_mask(
443443
structure, new_symms)]
444444
if len(structure) == 1 or not new_migs:

0 commit comments

Comments
 (0)