Skip to content

Commit e48dc0f

Browse files
committed
Add CacheDirectory to Abins-1 doctest
Abins2D will still break. I'm not really happy with this "fix" because there _should_ be a default argument.
1 parent 6981fcb commit e48dc0f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/source/algorithms/Abins-v1.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Usage
6161
.. testcode:: AbinsCastepSimple
6262

6363
benzene_wrk = Abins(AbInitioProgram="CASTEP", VibrationalOrPhononFile="benzene.phonon",
64-
QuantumOrderEventsNumber="1")
64+
QuantumOrderEventsNumber="1", CacheDirectory="/dev/null")
6565

6666

6767
for name in benzene_wrk.getNames():
@@ -85,7 +85,7 @@ Output:
8585

8686
.. testcode:: AbinsCrystalSimple
8787

88-
wrk=Abins(AbInitioProgram="CRYSTAL", VibrationalOrPhononFile="b3lyp.out", QuantumOrderEventsNumber="1")
88+
wrk=Abins(AbInitioProgram="CRYSTAL", VibrationalOrPhononFile="b3lyp.out", QuantumOrderEventsNumber="1", CacheDirectory="/dev/null")
8989

9090
for name in wrk.getNames():
9191
print(name)
@@ -117,7 +117,8 @@ Output:
117117
wrk_verbose=Abins(AbInitioProgram="CASTEP", VibrationalOrPhononFile="benzene.phonon",
118118
ExperimentalFile="benzene_experimental.dat",
119119
TemperatureInKelvin=10, BinWidthInWavenumber=1.0, SampleForm="Powder", Instrument="TOSCA",
120-
Atoms="H, atom1, atom2", SumContributions=True, QuantumOrderEventsNumber="1", ScaleByCrossSection="Incoherent")
120+
Atoms="H, atom1, atom2", SumContributions=True, QuantumOrderEventsNumber="1", ScaleByCrossSection="Incoherent",
121+
CacheDirectory="/dev/null")
121122

122123
for name in wrk_verbose.getNames():
123124
print(name)

0 commit comments

Comments
 (0)