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