Changeset 631ba13 in flex_extract.git for source/python/classes/ControlFile.py


Ignore:
Timestamp:
Nov 29, 2018, 10:49:59 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
45c6337
Parents:
38e83ba
Message:

refactoring large function get_mars_data into several smaller functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/classes/ControlFile.py

    rff2a11c r631ba13  
    547547        return sorted(l)
    548548
     549    def check_ppid(self, ppid):
     550        '''Sets the current PPID.
     551
     552        Parameters
     553        ----------
     554        ppid : :obj:`int` or :obj:`None`
     555            Contains the ppid number provided by the command line parameter
     556            of is None otherwise.
     557
     558        Return
     559        ------
     560
     561        '''
     562
     563        if not ppid:
     564            self.ppid = str(os.getppid())
     565        else:
     566            self.ppid = ppid
     567
     568        return
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG