Skip to content

Commit 6c04a87

Browse files
committed
Bump to version 0.2
1 parent de406d2 commit 6c04a87

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

labrat/project/projectmanager.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def _load_templates(self):
7777

7878
return default_templates
7979

80-
8180
def _save_templates(self):
8281
"""
8382
Save the current project templates to the .labrat file.
@@ -269,10 +268,11 @@ def list_projects(self):
269268
try:
270269
with self.labrat_file.open("r") as f:
271270
data = json.load(f)
272-
logger.debug(f"Retrieved {len(data.get('projects', []))} projects from .labrat file.")
271+
logger.debug("Retrieved %d projects from .labrat file.",
272+
len(data.get('projects', [])))
273273
return data.get("projects", [])
274274
except Exception as e:
275-
logger.error(f"Failed to read .labrat file: {e}")
275+
logger.error("Failed to read .labrat file: %s", e)
276276
logger.warning("No projects found in .labrat file.")
277277
return []
278278

@@ -288,7 +288,7 @@ def update_project(self, project_path):
288288
if project["path"] == str(Path(project_path).resolve()):
289289
project["last_modified"] = datetime.now().isoformat()
290290
self._update_labrat_file(project)
291-
logger.info(f"Updated project '{project['name']}' last modified timestamp.")
291+
logger.info("Updated project '%s' last modified timestamp.", project['name'])
292292
return
293293

294294
logger.warning(f"No project found at path: {project_path}")
@@ -343,7 +343,7 @@ def archive_project(self, project_path, archive_base_dir):
343343

344344
logger.info(f"Archive completed for project '{project_name}'.")
345345
return str(archive_dir)
346-
346+
347347
def add_template(self, name, url):
348348
"""
349349
Add a new project template.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def readme():
2424
author='Shaurita Hutchins',
2525
author_email='sdhutchins@outlook.com',
2626
description="A package of helpful guis and functions to improve reproducibility for genetics/psychiatry related labs.",
27-
version='0.1',
27+
version='0.2',
2828
long_description=readme(),
2929
url='https://github.com/sdhutchins/labrat',
3030
license='MIT',

0 commit comments

Comments
 (0)