Skip to content

Commit ff18b3d

Browse files
committed
examples: updated outp paths
1 parent e0c270d commit ff18b3d

9 files changed

Lines changed: 11 additions & 10 deletions

docs/source/examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ To read tally data, we read in the output file. This creates a data
9696
frame that tells us how many tallies are available. We can then load
9797
the data of a specific one and easily plot it.
9898

99-
file = "data/output_files/F1F8.o"
99+
file = "examples/data/outp/F1F8.o"
100100
out = pymcnp.outp.ReadOutput(file)
101101
print(out.get_runtime())
102102

@@ -126,7 +126,7 @@ Creates the following image:
126126

127127
### Energy and time
128128

129-
file = "data/output_files/png_e.o"
129+
file = "examples/data/outp/png_e.o"
130130
out = pymcnp.outp.ReadOutput(file)
131131

132132
# information about tallies found

examples/example_read_F1F8out.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pymcnp
77
import matplotlib.pyplot as plt
88

9-
file = 'data/output_files/F1F8.o'
9+
file = 'examples/data/outp/F1F8.o'
1010
out = pymcnp.outp.ReadOutput(file)
1111
print(out.get_runtime())
1212

examples/example_read_energy_and_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pymcnp
66
import matplotlib.pyplot as plt
77

8-
file = 'data/output_files/png_e.o'
8+
file = 'examples/data/outp/png_e.o'
99
out = pymcnp.outp.ReadOutput(file)
1010

1111
# information about tallies found

examples/example_read_fmesh-time-energy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pymcnp
66

7-
file = 'data/output_files/meshtal-te'
7+
file = 'examples/data/outp/meshtal-te'
88
out = pymcnp.outp.output.ReadFmesh(file)
99
df_info = out.df_info
1010
# all times, only 14 MeV

examples/example_read_fmesh-time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pymcnp
66
import matplotlib.pyplot as plt
77

8-
file = 'data/output_files/meshtal-t'
8+
file = 'examples/data/outp/meshtal-t'
99
out = pymcnp.outp.output.ReadFmesh(file)
1010
df_info = out.df_info
1111
# read and plot time series data

examples/example_read_fmesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pymcnp
66
import matplotlib.pyplot as plt
77

8-
file = 'data/output_files/meshtal'
8+
file = 'examples/data/outp/meshtal'
99
out = pymcnp.outp.output.ReadFmesh(file)
1010
df_info = out.df_info
1111

examples/example_read_meshtal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pymcnp
66
import matplotlib.pyplot as plt
77

8-
file_fmesh = 'data/output_files/meshtal'
8+
file_fmesh = 'examples/data/outp/meshtal'
99
df = pymcnp.outp.output.read_fmesh(file_fmesh)
1010
dfz = df[(df.Z > -1) & (df.Z < 1)] # central slice
1111
xx, mat = pymcnp.outp.output.griddata(dfz.X, dfz.Y, dfz.Result, nbins=100)

examples/example_read_outp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import pymcnp
88
import matplotlib.pyplot as plt
99

10-
fileF1 = 'data/output_files/F1.o'
10+
11+
fileF1 = 'examples/data/outp/F1.o'
1112
out1 = pymcnp.outp.ReadOutput(fileF1)
1213

1314
# information about tallies found

examples/example_read_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pymcnp
66
import matplotlib.pyplot as plt
77

8-
file = 'data/output_files/png.o'
8+
file = 'examples/data/outp/png.o'
99
out = pymcnp.outp.ReadOutput(file)
1010

1111
# information about tallies found

0 commit comments

Comments
 (0)