@@ -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,9 +771,16 class ParamWriter(Operation): | |||
|
770 | 771 | else: |
|
771 | 772 | setFile = -1 #inicializo mi contador de seteo |
|
772 | 773 | |
|
774 | if self.setType is None: | |
|
773 | 775 | setFile += 1 |
|
774 | ||
|
775 | file = '%s%4.4d%3.3d%3.3d%s' % (self.metaoptchar, | |
|
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, | |
|
776 | 784 | timeTuple.tm_year, |
|
777 | 785 | timeTuple.tm_yday, |
|
778 | 786 | setFile, |
@@ -849,9 +857,16 class ParamWriter(Operation): | |||
|
849 | 857 | os.makedirs(fullpath) |
|
850 | 858 | setFile = -1 #inicializo mi contador de seteo |
|
851 | 859 | |
|
860 | if self.setType is None: | |
|
852 | 861 | setFile += 1 |
|
853 | ||
|
854 | file = '%s%4.4d%3.3d%3.3d%s' % (self.optchar, | |
|
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, | |
|
855 | 870 | timeTuple.tm_year, |
|
856 | 871 | timeTuple.tm_yday, |
|
857 | 872 | setFile, |
General Comments 0
You need to be logged in to leave comments.
Login now