Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
parser-quasi-harmonic-properties
Commits
ede50e20
Commit
ede50e20
authored
Jul 06, 2017
by
Simoes Brambila, Danilo (brambila)
Browse files
correcting the openning and closing of calc_to_calc_ref
parent
740146a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/parser-quasi-harmonic-properties/qhp.py
View file @
ede50e20
...
...
@@ -19,16 +19,19 @@ metaInfoEnv, warns = loadJsonFile(filePath=metaInfoPath,
uri
=
None
)
def
prep_ref
(
ref_listP
,
ref_listS
,
Emit
,
kindP
,
kindS
):
sCalc
=
Emit
.
openSection
(
"section_calculation_to_calculation_refs"
)
#
sCalc = Emit.openSection("section_calculation_to_calculation_refs")
for
ref
in
ref_listP
:
sCalc
=
Emit
.
openSection
(
"section_calculation_to_calculation_refs"
)
Emit
.
addValue
(
"calculation_to_calculation_kind"
,
kindP
)
Emit
.
addValue
(
"calculation_to_calculation_external_url"
,
ref
)
Emit
.
closeSection
(
"section_calculation_to_calculation_refs"
,
sCalc
)
Emit
.
closeSection
(
"section_calculation_to_calculation_refs"
,
sCalc
)
sCalc
=
Emit
.
openSection
(
"section_calculation_to_calculation_refs"
)
for
ref
in
ref_listS
:
sCalc
=
Emit
.
openSection
(
"section_calculation_to_calculation_refs"
)
Emit
.
addValue
(
"calculation_to_calculation_kind"
,
kindS
)
Emit
.
addValue
(
"calculation_to_calculation_external_url"
,
ref
)
Emit
.
closeSection
(
"section_calculation_to_calculation_refs"
,
sCalc
)
Emit
.
closeSection
(
"section_calculation_to_calculation_refs"
,
sCalc
)
def
parse
(
name
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment