Skip to content
Snippets Groups Projects
Commit 36f3822d authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

fixed documentation for ess.TraceWin.project

parent 9fcd9190
No related branches found
No related tags found
No related merge requests found
...@@ -185,6 +185,7 @@ class dst: ...@@ -185,6 +185,7 @@ class dst:
Create a subplot histogram similar to TraceWin. Create a subplot histogram similar to TraceWin.
Example:: Example::
import numpy as np import numpy as np
from ess import TraceWin from ess import TraceWin
from matplotlib import pyplot as plt from matplotlib import pyplot as plt
...@@ -1288,6 +1289,7 @@ class envelope: ...@@ -1288,6 +1289,7 @@ class envelope:
to ascii to ascii
Example:: Example::
from ess import TraceWin from ess import TraceWin
from matplotlib import pyplot as plt from matplotlib import pyplot as plt
data = TraceWin.envelope('envelope.txt') data = TraceWin.envelope('envelope.txt')
...@@ -1513,17 +1515,19 @@ class field_map: ...@@ -1513,17 +1515,19 @@ class field_map:
class project: class project:
def __init__(self, project_fname=None, settings_fname=None): """
""" Read and modify TraceWin project files
Read and modify project files
Example:: Example::
p = project('SPK.ini')
for diff in p.compare_to('MEBT.ini'): p = project('SPK.ini')
print(diff) for diff in p.compare_to('MEBT.ini'):
p.set('main:beam1_energy', 89e6) print(diff)
p.save() p.set('main:beam1_energy', 89e6)
""" p.save()
"""
def __init__(self, project_fname=None, settings_fname=None):
import json import json
import pkg_resources import pkg_resources
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment