Skip to content

Commit

Permalink
Update all jsons in test_data
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Jun 24, 2023
1 parent 7da4ac1 commit afc1842
Show file tree
Hide file tree
Showing 16 changed files with 165,829 additions and 151,375 deletions.
9 changes: 9 additions & 0 deletions ducktrack/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,15 @@ def track(self, p):


class DipoleEdge(Element):

@classmethod
def from_dict(cls, dct):
dct = dct.copy()
for kk in list(dct.keys()):
if kk.startswith("_"):
dct[kk[1:]] = dct[kk]
return super(DipoleEdge, cls).from_dict(dct)

_description = [
("h", "1/m", "Curvature", 0),
("e1", "rad", "Face angle", 0),
Expand Down
2 changes: 1 addition & 1 deletion test_data/clic_dr/line.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test_data/clic_dr/line_for_taper.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit afc1842

Please sign in to comment.