labmate 0.10.0__tar.gz → 0.10.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {labmate-0.10.0/labmate.egg-info → labmate-0.10.2}/PKG-INFO +1 -1
- labmate-0.10.2/docs/examples/files/cfg.py +8 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/__config__.py +1 -1
- {labmate-0.10.0 → labmate-0.10.2}/labmate/parsing/parsed_value.py +1 -1
- {labmate-0.10.0 → labmate-0.10.2}/labmate/utils/file_read.py +10 -1
- {labmate-0.10.0 → labmate-0.10.2/labmate.egg-info}/PKG-INFO +1 -1
- labmate-0.10.0/docs/examples/files/cfg.py +0 -4
- {labmate-0.10.0 → labmate-0.10.2}/LICENCE +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/MANIFEST.in +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/README.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/about.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/acquisition_notebook.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/code/acquisition_loop.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/code/acquisition_manager.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/code/acquisition_notebook_manager.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/code/analysis_data.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/code/linting.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/code/parsing_config.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/examples/acquisition_and_analysis_notebook.ipynb +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/examples/aqm_simple_example.ipynb +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/examples/files/dummy_config1.txt +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/examples/files/dummy_config2.txt +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/examples/files/dummy_config3.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/examples/files/init_analyse.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/examples/more/acquisition_and_analysis_notebook_with_magic.ipynb +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/examples/more/h5nparray.ipynb +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/examples/more/loop_example.ipynb +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/h5nparray.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/index.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/releases/0.4.0.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/releases/0.5.0.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/releases/0.6.0.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/releases/0.6.1.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/releases/0.7.0.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/releases/0.8.0.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/releases/index.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/starting_guide/advanced_examples.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/starting_guide/fine_tune.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/starting_guide/first_steps.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/docs/starting_guide/install.md +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/__init__.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition/__init__.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition/acquisition_data.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition/acquisition_loop.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition/acquisition_manager.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition/analysis_data.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition/analysis_loop.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition/config_file.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition/custom_lint.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition_notebook/__init__.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition_notebook/acquisition_analysis_manager.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition_notebook/display_widget.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/attrdict/__init__.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/attrdict/attrdict_class.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/display/__init__.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/display/buttons.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/display/html_output.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/display/links.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/display/main.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/display/platform_utils/__init__.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/display/platform_utils/windows_utils.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/logger/__init__.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/parsing/__init__.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/parsing/brackets_score.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/parsing/saving.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/utils/__init__.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/utils/async_utils.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/utils/autoreload.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/utils/errors.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/utils/lint.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/utils/random_utils.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate/utils/title_parsing.py +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate.egg-info/SOURCES.txt +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate.egg-info/dependency_links.txt +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate.egg-info/requires.txt +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/labmate.egg-info/top_level.txt +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/requirements-docs.txt +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/requirements.txt +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/setup.cfg +0 -0
- {labmate-0.10.0 → labmate-0.10.2}/setup.py +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
4
|
import os
|
|
5
|
+
import re
|
|
5
6
|
from typing import Any, Dict, List, Optional
|
|
6
7
|
|
|
7
8
|
from ..parsing.brackets_score import BracketsScore
|
|
@@ -76,12 +77,20 @@ def update_file_variable(file, params: Dict[str, Any]):
|
|
|
76
77
|
if param in params:
|
|
77
78
|
current_param = param
|
|
78
79
|
start_line = lines.index(line)
|
|
80
|
+
|
|
79
81
|
brackets.update_from_str(line)
|
|
80
82
|
if brackets.is_zero() and current_param is not None:
|
|
81
83
|
end_line = lines.index(line)
|
|
82
|
-
end_comment = line.split("#")[
|
|
84
|
+
end_comment = "#".join(line.split("#")[1:]).strip() if "#" in line else None
|
|
83
85
|
del lines[start_line : end_line + 1]
|
|
84
86
|
value_str = json.JSONEncoder().encode(params[current_param])
|
|
87
|
+
|
|
88
|
+
print("value_str", value_str)
|
|
89
|
+
if re.match(
|
|
90
|
+
r"^['\"]?[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?['\"]?$", value_str
|
|
91
|
+
):
|
|
92
|
+
value_str = value_str.replace('"', "")
|
|
93
|
+
|
|
85
94
|
lines.insert(
|
|
86
95
|
start_line,
|
|
87
96
|
(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{labmate-0.10.0 → labmate-0.10.2}/labmate/acquisition_notebook/acquisition_analysis_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|