Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicts in electrodes.py #108

Closed
kmu opened this issue Aug 26, 2019 · 1 comment
Closed

Conflicts in electrodes.py #108

kmu opened this issue Aug 26, 2019 · 1 comment

Comments

@kmu
Copy link
Contributor

kmu commented Aug 26, 2019

<<<<<<< HEAD
docs = [] # results
=======
docs = [] # results
>>>>>>> master

<<<<<<< HEAD
group_sbx = list(
filter(
lambda ent: (isbx in ent.data["_sbxn"])
or (ent.data["_sbxn"] == ["core"]),
group,
)
)
self.logger.debug(
f"Grouped entries in sandbox {', '.join([en.name for en in group_sbx])}"
)
=======
group_sbx = list(filter(lambda ent : (isbx in ent.data['_sbxn']) or (ent.data['_sbxn']==['core']), group))
self.logger.debug(f"Grouped entries in sandbox {isbx} -- {', '.join([en.name for en in group_sbx])}")
>>>>>>> master

<<<<<<< HEAD
d["battid"] = lowest_id + "_" + self.working_ion
# Only allow one sandbox value for each electrode
if isbx != "core":
d["_sbxn"] = isbx
=======
if isbx == 'core':
d['battid'] = lowest_id+'_'+self.working_ion
else:
d['battid'] = lowest_id+'_'+self.working_ion+'_'+isbx
# Only allow one sandbox value for each electrode
d['_sbxn'] = [isbx]
>>>>>>> master

<<<<<<< HEAD
self.electro.update(docs=items, key="battid")
=======
self.electro.update(docs=items, key=['battid'])
>>>>>>> master

<<<<<<< HEAD
struct = Structure.from_dict(d["structure"])
en = ComputedStructureEntry(
structure=struct,
energy=d["thermo"]["energy"],
parameters=d["calc_settings"],
entry_id=d["task_id"],
)
if "_sbxn" in d:
en.data["_sbxn"] = d["_sbxn"]
else:
en.data["_sbxn"] = ["core"]
=======
struct = Structure.from_dict(d['structure'])
en = ComputedStructureEntry(structure=struct,
energy=d['thermo']['energy'],
parameters=d['calc_settings'],
entry_id=d['task_id'],
)
en.data['_sbxn'] = d['_sbxn']
>>>>>>> master

@shyamd
Copy link
Contributor

shyamd commented Aug 27, 2019

Thanks! Fixed in d6e7f03

@shyamd shyamd closed this as completed Aug 27, 2019
utf referenced this issue in utf/emmet May 8, 2021
…k-3.19.0

Bump mongomock from 3.18.0 to 3.19.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants