labmate 0.10.3__tar.gz → 0.10.4__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.
Files changed (79) hide show
  1. {labmate-0.10.3/labmate.egg-info → labmate-0.10.4}/PKG-INFO +1 -1
  2. {labmate-0.10.3 → labmate-0.10.4}/labmate/__config__.py +1 -1
  3. {labmate-0.10.3 → labmate-0.10.4}/labmate/parsing/parsed_value.py +21 -5
  4. {labmate-0.10.3 → labmate-0.10.4}/labmate/utils/lint.py +2 -1
  5. {labmate-0.10.3 → labmate-0.10.4/labmate.egg-info}/PKG-INFO +1 -1
  6. {labmate-0.10.3 → labmate-0.10.4}/LICENCE +0 -0
  7. {labmate-0.10.3 → labmate-0.10.4}/MANIFEST.in +0 -0
  8. {labmate-0.10.3 → labmate-0.10.4}/README.md +0 -0
  9. {labmate-0.10.3 → labmate-0.10.4}/docs/about.md +0 -0
  10. {labmate-0.10.3 → labmate-0.10.4}/docs/acquisition_notebook.md +0 -0
  11. {labmate-0.10.3 → labmate-0.10.4}/docs/code/acquisition_loop.md +0 -0
  12. {labmate-0.10.3 → labmate-0.10.4}/docs/code/acquisition_manager.md +0 -0
  13. {labmate-0.10.3 → labmate-0.10.4}/docs/code/acquisition_notebook_manager.md +0 -0
  14. {labmate-0.10.3 → labmate-0.10.4}/docs/code/analysis_data.md +0 -0
  15. {labmate-0.10.3 → labmate-0.10.4}/docs/code/linting.md +0 -0
  16. {labmate-0.10.3 → labmate-0.10.4}/docs/code/parsing_config.md +0 -0
  17. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/acquisition_and_analysis_notebook.ipynb +0 -0
  18. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/aqm_simple_example.ipynb +0 -0
  19. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/files/cfg.py +0 -0
  20. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/files/dummy_config1.txt +0 -0
  21. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/files/dummy_config2.txt +0 -0
  22. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/files/dummy_config3.py +0 -0
  23. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/files/init_analyse.py +0 -0
  24. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/more/acquisition_and_analysis_notebook_with_magic.ipynb +0 -0
  25. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/more/h5nparray.ipynb +0 -0
  26. {labmate-0.10.3 → labmate-0.10.4}/docs/examples/more/loop_example.ipynb +0 -0
  27. {labmate-0.10.3 → labmate-0.10.4}/docs/h5nparray.md +0 -0
  28. {labmate-0.10.3 → labmate-0.10.4}/docs/index.md +0 -0
  29. {labmate-0.10.3 → labmate-0.10.4}/docs/releases/0.4.0.md +0 -0
  30. {labmate-0.10.3 → labmate-0.10.4}/docs/releases/0.5.0.md +0 -0
  31. {labmate-0.10.3 → labmate-0.10.4}/docs/releases/0.6.0.md +0 -0
  32. {labmate-0.10.3 → labmate-0.10.4}/docs/releases/0.6.1.md +0 -0
  33. {labmate-0.10.3 → labmate-0.10.4}/docs/releases/0.7.0.md +0 -0
  34. {labmate-0.10.3 → labmate-0.10.4}/docs/releases/0.8.0.md +0 -0
  35. {labmate-0.10.3 → labmate-0.10.4}/docs/releases/index.md +0 -0
  36. {labmate-0.10.3 → labmate-0.10.4}/docs/starting_guide/advanced_examples.md +0 -0
  37. {labmate-0.10.3 → labmate-0.10.4}/docs/starting_guide/fine_tune.md +0 -0
  38. {labmate-0.10.3 → labmate-0.10.4}/docs/starting_guide/first_steps.md +0 -0
  39. {labmate-0.10.3 → labmate-0.10.4}/docs/starting_guide/install.md +0 -0
  40. {labmate-0.10.3 → labmate-0.10.4}/labmate/__init__.py +0 -0
  41. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition/__init__.py +0 -0
  42. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition/acquisition_data.py +0 -0
  43. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition/acquisition_loop.py +0 -0
  44. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition/acquisition_manager.py +0 -0
  45. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition/analysis_data.py +0 -0
  46. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition/analysis_loop.py +0 -0
  47. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition/config_file.py +0 -0
  48. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition/custom_lint.py +0 -0
  49. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition_notebook/__init__.py +0 -0
  50. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition_notebook/acquisition_analysis_manager.py +0 -0
  51. {labmate-0.10.3 → labmate-0.10.4}/labmate/acquisition_notebook/display_widget.py +0 -0
  52. {labmate-0.10.3 → labmate-0.10.4}/labmate/attrdict/__init__.py +0 -0
  53. {labmate-0.10.3 → labmate-0.10.4}/labmate/attrdict/attrdict_class.py +0 -0
  54. {labmate-0.10.3 → labmate-0.10.4}/labmate/display/__init__.py +0 -0
  55. {labmate-0.10.3 → labmate-0.10.4}/labmate/display/buttons.py +0 -0
  56. {labmate-0.10.3 → labmate-0.10.4}/labmate/display/html_output.py +0 -0
  57. {labmate-0.10.3 → labmate-0.10.4}/labmate/display/links.py +0 -0
  58. {labmate-0.10.3 → labmate-0.10.4}/labmate/display/main.py +0 -0
  59. {labmate-0.10.3 → labmate-0.10.4}/labmate/display/platform_utils/__init__.py +0 -0
  60. {labmate-0.10.3 → labmate-0.10.4}/labmate/display/platform_utils/windows_utils.py +0 -0
  61. {labmate-0.10.3 → labmate-0.10.4}/labmate/logger/__init__.py +0 -0
  62. {labmate-0.10.3 → labmate-0.10.4}/labmate/parsing/__init__.py +0 -0
  63. {labmate-0.10.3 → labmate-0.10.4}/labmate/parsing/brackets_score.py +0 -0
  64. {labmate-0.10.3 → labmate-0.10.4}/labmate/parsing/saving.py +0 -0
  65. {labmate-0.10.3 → labmate-0.10.4}/labmate/utils/__init__.py +0 -0
  66. {labmate-0.10.3 → labmate-0.10.4}/labmate/utils/async_utils.py +0 -0
  67. {labmate-0.10.3 → labmate-0.10.4}/labmate/utils/autoreload.py +0 -0
  68. {labmate-0.10.3 → labmate-0.10.4}/labmate/utils/errors.py +0 -0
  69. {labmate-0.10.3 → labmate-0.10.4}/labmate/utils/file_read.py +0 -0
  70. {labmate-0.10.3 → labmate-0.10.4}/labmate/utils/random_utils.py +0 -0
  71. {labmate-0.10.3 → labmate-0.10.4}/labmate/utils/title_parsing.py +0 -0
  72. {labmate-0.10.3 → labmate-0.10.4}/labmate.egg-info/SOURCES.txt +0 -0
  73. {labmate-0.10.3 → labmate-0.10.4}/labmate.egg-info/dependency_links.txt +0 -0
  74. {labmate-0.10.3 → labmate-0.10.4}/labmate.egg-info/requires.txt +0 -0
  75. {labmate-0.10.3 → labmate-0.10.4}/labmate.egg-info/top_level.txt +0 -0
  76. {labmate-0.10.3 → labmate-0.10.4}/requirements-docs.txt +0 -0
  77. {labmate-0.10.3 → labmate-0.10.4}/requirements.txt +0 -0
  78. {labmate-0.10.3 → labmate-0.10.4}/setup.cfg +0 -0
  79. {labmate-0.10.3 → labmate-0.10.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: labmate
3
- Version: 0.10.3
3
+ Version: 0.10.4
4
4
  Summary: Data management library to save data and plots to hdf5 files
5
5
  Home-page: https://github.com/kyrylo-gr/labmate
6
6
  Author: kyrylo.gr | LKB-OMQ
@@ -1,3 +1,3 @@
1
1
  """This file contains all package constants."""
2
2
 
3
- __version__ = "0.10.3"
3
+ __version__ = "0.10.4"
@@ -115,45 +115,61 @@ class ParsedValue:
115
115
  other = self._convert_other(other)
116
116
  return self.value / other # type: ignore
117
117
 
118
+ def __rtruediv__(self, other):
119
+ other = self._convert_other(other)
120
+ return other / self.value # type: ignore
121
+
118
122
  def __floordiv__(self, other):
119
123
  other = self._convert_other(other)
120
124
  return self.value // other # type: ignore
121
125
 
126
+ def __rfloordiv__(self, other):
127
+ other = self._convert_other(other)
128
+ return other // self.value # type: ignore
129
+
122
130
  def __mod__(self, other):
123
131
  other = self._convert_other(other)
124
132
  return self.value % other
125
133
 
134
+ def __rmod__(self, other):
135
+ other = self._convert_other(other)
136
+ return other % self.value
137
+
126
138
  def __pow__(self, other):
127
139
  other = self._convert_other(other)
128
140
  return self.value**other
129
141
 
142
+ def __rpow__(self, other):
143
+ other = self._convert_other(other)
144
+ return other**self.value
145
+
130
146
  def __lt__(self, other):
131
147
  other = self._convert_other(other)
132
148
  if isinstance(self.value, complex):
133
149
  raise TypeError("Cannot compare complex values")
134
- return self.value.__lt__(other)
150
+ return self.value < other
135
151
 
136
152
  def __gt__(self, other):
137
153
  other = self._convert_other(other)
138
154
  if isinstance(self.value, complex):
139
155
  raise TypeError("Cannot compare complex values")
140
- return self.value.__gt__(other)
156
+ return self.value > other
141
157
 
142
158
  def __le__(self, other):
143
159
  other = self._convert_other(other)
144
160
  if isinstance(self.value, complex):
145
161
  raise TypeError("Cannot compare complex values")
146
- return self.value.__le__(other)
162
+ return self.value <= other
147
163
 
148
164
  def __ge__(self, other):
149
165
  other = self._convert_other(other)
150
166
  if isinstance(self.value, complex):
151
167
  raise TypeError("Cannot compare complex values")
152
- return self.value.__ge__(other)
168
+ return self.value >= other
153
169
 
154
170
  def __ne__(self, other):
155
171
  other = self._convert_other(other)
156
- return self.value.__ne__(other)
172
+ return self.value != other
157
173
 
158
174
  @property
159
175
  def is_complex(self):
@@ -137,6 +137,7 @@ class NameVisitor(ast.NodeVisitor):
137
137
 
138
138
  if isinstance(node, ast.FunctionDef):
139
139
  variables = get_all_args_from_def(node.args)
140
+ self.local_vars.add(node.name)
140
141
  node.dont_parse = variables # type: ignore
141
142
 
142
143
  if isinstance(node, ast.Lambda):
@@ -241,7 +242,7 @@ def find_variables_from_code(
241
242
  set(),
242
243
  [
243
244
  "Syntax error is found during linting. Probably because #noqa is used. "
244
- "#noqa removes line from the analisys, so don't use it with line breaks.\n"
245
+ "#noqa removes line from the analysis, so don't use it with line breaks.\n"
245
246
  f"Error at line {exception.lineno} in {exception.text}"
246
247
  ],
247
248
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: labmate
3
- Version: 0.10.3
3
+ Version: 0.10.4
4
4
  Summary: Data management library to save data and plots to hdf5 files
5
5
  Home-page: https://github.com/kyrylo-gr/labmate
6
6
  Author: kyrylo.gr | LKB-OMQ
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