4545 "to_lines" ,
4646 removal_version ,
4747)
48+ titleLines_deprecation_msg = build_deprecation_message (
49+ base ,
50+ "titleLines" ,
51+ "title_lines" ,
52+ removal_version ,
53+ )
54+ cryst1Lines_deprecation_msg = build_deprecation_message (
55+ base ,
56+ "cryst1Lines" ,
57+ "cryst1_lines" ,
58+ removal_version ,
59+ )
60+ atomLines_deprecation_msg = build_deprecation_message (
61+ base ,
62+ "atomLines" ,
63+ "atom_lines" ,
64+ removal_version ,
65+ )
4866
4967
5068class P_pdb (StructureParser ):
@@ -269,7 +287,12 @@ def parse_lines(self, lines):
269287 raise e .with_traceback (exc_traceback )
270288 return stru
271289
290+ @deprecated (titleLines_deprecation_msg )
272291 def titleLines (self , stru ):
292+ """Build lines corresponding to `TITLE` record."""
293+ return self .title_lines (stru )
294+
295+ def title_lines (self , stru ):
273296 """Build lines corresponding to `TITLE` record."""
274297 lines = []
275298 title = stru .title
@@ -288,7 +311,12 @@ def titleLines(self, stru):
288311 title = title [stop :]
289312 return lines
290313
314+ @deprecated (cryst1Lines_deprecation_msg )
291315 def cryst1Lines (self , stru ):
316+ """Build lines corresponding to `CRYST1` record."""
317+ return self .cryst1_lines (stru )
318+
319+ def cryst1_lines (self , stru ):
292320 """Build lines corresponding to `CRYST1` record."""
293321 lines = []
294322 latpar = (
@@ -304,7 +332,13 @@ def cryst1Lines(self, stru):
304332 lines .append ("%-80s" % line )
305333 return lines
306334
335+ @deprecated (atomLines_deprecation_msg )
307336 def atomLines (self , stru , idx ):
337+ """Build `ATOM` records and possibly `SIGATM`, `ANISOU` or
338+ `SIGUIJ` records for `structure` stru `atom` number aidx."""
339+ return self .atom_lines (stru , idx )
340+
341+ def atom_lines (self , stru , idx ):
308342 """Build `ATOM` records and possibly `SIGATM`, `ANISOU` or
309343 `SIGUIJ` records for `structure` stru `atom` number aidx."""
310344 lines = []
@@ -425,10 +459,10 @@ def to_lines(self, stru):
425459 List of lines in PDB format.
426460 """
427461 lines = []
428- lines .extend (self .titleLines (stru ))
429- lines .extend (self .cryst1Lines (stru ))
462+ lines .extend (self .title_lines (stru ))
463+ lines .extend (self .cryst1_lines (stru ))
430464 for idx in range (len (stru )):
431- lines .extend (self .atomLines (stru , idx ))
465+ lines .extend (self .atom_lines (stru , idx ))
432466 line = (
433467 "TER " # 1-6
434468 + "%(serial)5i " # 7-11, 12-17
0 commit comments