Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark-Elektron committed Aug 14, 2024
1 parent 6874156 commit 9069b8a
Show file tree
Hide file tree
Showing 5 changed files with 270 additions and 445 deletions.
1 change: 0 additions & 1 deletion cavsim2d/analysis/wakefield/abci_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class ABCIGeometry(Geometry):
def __init__(self):
super().__init__()

# create node_editor folder on initialisation
self.L_all = None
self.abci = None

Expand Down
8 changes: 0 additions & 8 deletions cavsim2d/analysis/wakefield/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ def set_geom_parameters_flattop(self, n_cells, mid_cells_par=None, l_end_cell_pa
# def write_cst_paramters(self, fid):
# print("Writing parameters to file")
# cwd = os.getcwd()
# if self.ui.cb_Code.currentText() == 'SLANS':
# path = os.path.join(cwd, "node_editor\SLANS\Cavity{}\cst_parameters.txt".format(fid))
# else:
# path = os.path.join(cwd, "node_editor\ABCI\Cavity{}\cst_parameters.txt".format(fid))
#
# print(path)
# with open(path, 'w') as f:
Expand All @@ -194,10 +190,6 @@ def set_geom_parameters_flattop(self, n_cells, mid_cells_par=None, l_end_cell_pa
# print("Writing parameters to file")
# cwd = os.getcwd()
# print(cwd)
# if self.ui.cb_Code.currentText() == 'SLANS':
# path = os.path.join(cwd, "node_editor\SLANS\Cavity{}\cst_parameters_mid.txt".format(fid))
# else:
# path = os.path.join(cwd, "node_editor\ABCI\Cavity{}\cst_parameters_mid.txt".format(fid))
#
# print(path)
# with open(path, 'w') as f:
Expand Down
Loading

0 comments on commit 9069b8a

Please sign in to comment.