Skip to content

Commit eef5741

Browse files
committed
setCalculationRange
1 parent 64ba047 commit eef5741

15 files changed

Lines changed: 104 additions & 45 deletions

docs/examples/coreshellnp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def makeRecipe(stru1, stru2, datname):
4545
parser = PDFParser()
4646
parser.parseFile(datname)
4747
profile.load_parsed_data(parser)
48-
profile.setCalculationRange(xmin=1.5, xmax=45, dx=0.1)
48+
profile.set_calculation_range(xmin=1.5, xmax=45, dx=0.1)
4949

5050
# The ProfileGenerator
5151
# In order to fit the core and shell phases simultaneously, we must use two

docs/examples/crystalpdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def makeRecipe(ciffile, datname):
5656
parser = PDFParser()
5757
parser.parseFile(datname)
5858
profile.load_parsed_data(parser)
59-
profile.setCalculationRange(xmax=20)
59+
profile.set_calculation_range(xmax=20)
6060

6161
# The ProfileGenerator
6262
# The PDFGenerator is for configuring and calculating a PDF profile. Here,

docs/examples/crystalpdfall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def makeProfile(datafile):
4040
parser = PDFParser()
4141
parser.parseFile(datafile)
4242
profile.load_parsed_data(parser)
43-
profile.setCalculationRange(xmax=20)
43+
profile.set_calculation_range(xmax=20)
4444
return profile
4545

4646

docs/examples/crystalpdfobjcryst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def makeRecipe(ciffile, datname):
4949
parser = PDFParser()
5050
parser.parseFile(datname)
5151
profile.load_parsed_data(parser)
52-
profile.setCalculationRange(xmax=20)
52+
profile.set_calculation_range(xmax=20)
5353

5454
# The ProfileGenerator
5555
# This time we use the CreateCrystalFromCIF method of pyobjcryst.crystal to

docs/examples/crystalpdftwodata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ def makeRecipe(ciffile, xdatname, ndatname):
4949
parser = PDFParser()
5050
parser.parseFile(xdatname)
5151
xprofile.load_parsed_data(parser)
52-
xprofile.setCalculationRange(xmax=20)
52+
xprofile.set_calculation_range(xmax=20)
5353

5454
parser = PDFParser()
5555
parser.parseFile(ndatname)
5656
nprofile.load_parsed_data(parser)
57-
nprofile.setCalculationRange(xmax=20)
57+
nprofile.set_calculation_range(xmax=20)
5858

5959
# The ProfileGenerators
6060
# We need one of these for the x-ray data.

docs/examples/crystalpdftwophase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def makeRecipe(niciffile, siciffile, datname):
4646
parser = PDFParser()
4747
parser.parseFile(datname)
4848
profile.load_parsed_data(parser)
49-
profile.setCalculationRange(xmax=20)
49+
profile.set_calculation_range(xmax=20)
5050

5151
# The ProfileGenerator
5252
# In order to fit two phases simultaneously, we must use two PDFGenerators.

docs/examples/debyemodelII.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def makeRecipeII():
7777
# Change the fit ranges of the Profiles embedded within the
7878
# FitContributions. We want to fit one of the contributions at low
7979
# temperature, and one at high.
80-
lowT.profile.setCalculationRange(0, 150)
81-
highT.profile.setCalculationRange(400, 500)
80+
lowT.profile.set_calculation_range(0, 150)
81+
highT.profile.set_calculation_range(400, 500)
8282

8383
# Vary the offset from each FitContribution separately, while keeping the
8484
# Debye temperatures the same. We give each offset variable a different
@@ -102,8 +102,8 @@ def plotResults(recipe):
102102

103103
# We want to extend the fitting range to its full extent so we can get a
104104
# nice full plot.
105-
recipe.lowT.profile.setCalculationRange(xmin="obs", xmax="obs")
106-
recipe.highT.profile.setCalculationRange(xmin="obs", xmax="obs")
105+
recipe.lowT.profile.set_calculation_range(xmin="obs", xmax="obs")
106+
recipe.highT.profile.set_calculation_range(xmin="obs", xmax="obs")
107107
T = recipe.lowT.profile.x
108108
U = recipe.lowT.profile.y
109109
# We can use a FitContribution's 'evaluateEquation' method to evaluate

docs/examples/nppdfcrystal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def makeRecipe(ciffile, grdata):
4545
pdfparser = PDFParser()
4646
pdfparser.parseFile(grdata)
4747
pdfprofile.load_parsed_data(pdfparser)
48-
pdfprofile.setCalculationRange(xmin=0.1, xmax=20)
48+
pdfprofile.set_calculation_range(xmin=0.1, xmax=20)
4949

5050
pdfcontribution = FitContribution("pdf")
5151
pdfcontribution.set_profile(pdfprofile, xname="r")

docs/examples/nppdfobjcryst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def makeRecipe(molecule, datname):
4040

4141
# Load data and add it to the profile
4242
profile.loadtxt(datname)
43-
profile.setCalculationRange(xmin=1.2, xmax=8)
43+
profile.set_calculation_range(xmin=1.2, xmax=8)
4444

4545
# The ProfileGenerator
4646
# Create a DebyePDFGenerator named "G".

docs/examples/nppdfsas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def makeRecipe(ciffile, grdata, iqdata):
4949
pdfparser = PDFParser()
5050
pdfparser.parseFile(grdata)
5151
pdfprofile.load_parsed_data(pdfparser)
52-
pdfprofile.setCalculationRange(xmin=0.1, xmax=20)
52+
pdfprofile.set_calculation_range(xmin=0.1, xmax=20)
5353

5454
pdfcontribution = FitContribution("pdf")
5555
pdfcontribution.set_profile(pdfprofile, xname="r")

0 commit comments

Comments
 (0)