@@ -610,6 +610,7 class ParamWriter(Operation): | |||
|
610 | 610 | def setup(self, dataOut, **kwargs): |
|
611 | 611 | |
|
612 | 612 | self.path = kwargs['path'] |
|
613 | self.setType = kwargs.get('setType', None) | |
|
613 | 614 | |
|
614 | 615 | if kwargs.has_key('blocksPerFile'): |
|
615 | 616 | self.blocksPerFile = kwargs['blocksPerFile'] |
@@ -770,13 +771,20 class ParamWriter(Operation): | |||
|
770 | 771 | else: |
|
771 | 772 | setFile = -1 #inicializo mi contador de seteo |
|
772 | 773 | |
|
773 | setFile += 1 | |
|
774 | ||
|
775 |
file = '%s%4.4d%3.3d% |
|
|
776 | timeTuple.tm_year, | |
|
777 | timeTuple.tm_yday, | |
|
778 | setFile, | |
|
779 | ext ) | |
|
774 | if self.setType is None: | |
|
775 | setFile += 1 | |
|
776 | file = '%s%4.4d%3.3d%03d%s' % (self.metaoptchar, | |
|
777 | timeTuple.tm_year, | |
|
778 | timeTuple.tm_yday, | |
|
779 | setFile, | |
|
780 | ext ) | |
|
781 | else: | |
|
782 | setFile = timeTuple.tm_hour*60+timeTuple.tm_min | |
|
783 | file = '%s%4.4d%3.3d%04d%s' % (self.metaoptchar, | |
|
784 | timeTuple.tm_year, | |
|
785 | timeTuple.tm_yday, | |
|
786 | setFile, | |
|
787 | ext ) | |
|
780 | 788 | |
|
781 | 789 | filename = os.path.join( path, subfolder, file ) |
|
782 | 790 | self.metaFile = file |
@@ -849,13 +857,20 class ParamWriter(Operation): | |||
|
849 | 857 | os.makedirs(fullpath) |
|
850 | 858 | setFile = -1 #inicializo mi contador de seteo |
|
851 | 859 | |
|
852 | setFile += 1 | |
|
853 | ||
|
854 |
file = '%s%4.4d%3.3d% |
|
|
855 | timeTuple.tm_year, | |
|
856 | timeTuple.tm_yday, | |
|
857 | setFile, | |
|
858 | ext ) | |
|
860 | if self.setType is None: | |
|
861 | setFile += 1 | |
|
862 | file = '%s%4.4d%3.3d%03d%s' % (self.metaoptchar, | |
|
863 | timeTuple.tm_year, | |
|
864 | timeTuple.tm_yday, | |
|
865 | setFile, | |
|
866 | ext ) | |
|
867 | else: | |
|
868 | setFile = timeTuple.tm_hour*60+timeTuple.tm_min | |
|
869 | file = '%s%4.4d%3.3d%04d%s' % (self.metaoptchar, | |
|
870 | timeTuple.tm_year, | |
|
871 | timeTuple.tm_yday, | |
|
872 | setFile, | |
|
873 | ext ) | |
|
859 | 874 | |
|
860 | 875 | filename = os.path.join( path, subfolder, file ) |
|
861 | 876 |
General Comments 0
You need to be logged in to leave comments.
Login now