Mercurial > repos > rv43 > chess_tomo
comparison workflow/run_tomo.py @ 9:1dbb29320ce8 draft
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
| author | rv43 |
|---|---|
| date | Mon, 20 Mar 2023 19:26:17 +0000 |
| parents | c99fc6a32869 |
| children | 9c48ef48c604 |
comparison
equal
deleted
inserted
replaced
| 8:c99fc6a32869 | 9:1dbb29320ce8 |
|---|---|
| 162 logger.warning(f'num_core = {self.num_core} is larger than the number of available ' | 162 logger.warning(f'num_core = {self.num_core} is larger than the number of available ' |
| 163 f'processors and reduced to {cpu_count()}') | 163 f'processors and reduced to {cpu_count()}') |
| 164 self.num_core= cpu_count() | 164 self.num_core= cpu_count() |
| 165 | 165 |
| 166 def read(self, filename): | 166 def read(self, filename): |
| 167 print(f'looking for {filename}') | 167 logger.info(f'looking for {filename}') |
| 168 extension = os_path.splitext(filename)[1] | 168 extension = os_path.splitext(filename)[1] |
| 169 if extension == '.yml' or extension == '.yaml' or self.galaxy_flag and extension == '.dat': | 169 if extension == '.yml' or extension == '.yaml' or self.galaxy_flag and extension == '.dat': |
| 170 with open(filename, 'r') as f: | 170 with open(filename, 'r') as f: |
| 171 config = safe_load(f) | 171 config = safe_load(f) |
| 172 # if len(config) > 1: | 172 # if len(config) > 1: |
