Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions virtaccl/site/SNS_IDmp/va_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"IDmp_Mag:DCH01": {
"PyORBIT_Name": "HCorrector1",
"Power_Supply": "IDmp_Mag:PS_DCH01",
"Polarity": 1
"Polarity": -1
},
"IDmp_Mag:DCV01": {
"PyORBIT_Name": "VCorrector1",
Expand All @@ -25,7 +25,7 @@
"IDmp_Mag:DCH02": {
"PyORBIT_Name": "HCorrector2",
"Power_Supply": "IDmp_Mag:PS_DCH02",
"Polarity": 1
"Polarity": -1
},
"IDmp_Mag:DCV02": {
"PyORBIT_Name": "VCorrector2",
Expand Down
1 change: 0 additions & 1 deletion virtaccl/site/SNS_Linac/virtual_SNS_linac.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def build_sns(**kwargs):

debug = kwargs['debug']
save_bunch = kwargs['save_bunch']
physics_nodes = kwargs['physics_nodes']

config_file = Path(kwargs['config_file'])
with open(config_file, "r") as json_file:
Expand Down
3 changes: 1 addition & 2 deletions virtaccl/virtual_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ def __init__(self, model: ModelType, beam_line: BeamLine, server: ServerType, **
print(key)
sys.exit()

self.debug = kwargs['debug']
self.sync_time = kwargs['sync_time']
self.update_period = 1 / kwargs['refresh_rate']

Expand All @@ -175,7 +174,7 @@ def __init__(self, model: ModelType, beam_line: BeamLine, server: ServerType, **
server.add_parameters(sever_parameters)
beam_line.reset_devices()

if self.debug:
if kwargs['debug']:
print(server)

self.track()
Expand Down
Loading