barsukov 0.0.4__py3-none-any.whl → 1.0.8__py3-none-any.whl

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.

Potentially problematic release.


This version of barsukov might be problematic. Click here for more details.

barsukov/testpickle.py ADDED
@@ -0,0 +1,38 @@
1
+ import dill
2
+ import os
3
+ import barsukov
4
+
5
+
6
+ def save_object(obj, file_name, update=False, full_folder_path=None, script=None):
7
+ if script is None:
8
+ if full_folder_path is None:
9
+ full_folder_path = os.getcwd()
10
+ else:
11
+ full_folder_path = script.full_folder_path
12
+ full_file_path = os.path.join(full_folder_path, file_name)
13
+ if update:
14
+ with open(full_file_path, 'wb') as file:
15
+ dill.dump(obj, file)
16
+ print("{obj} object successfully saved.")
17
+ else:
18
+ try:
19
+ with open(full_file_path, 'xb') as file:
20
+ dill.dump(obj, file)
21
+ print("{obj} object has been successfully saved.")
22
+ except FileExistsError:
23
+ print(f'Object file already exists. If update, use save_obj(obj={obj}, update=true).')
24
+
25
+
26
+ def load_object(obj_file, full_folder_path=None, script=None):
27
+ ### obj in format objectname.pkl
28
+ if script is None:
29
+ if full_folder_path is None:
30
+ full_folder_path = os.getcwd()
31
+ else:
32
+ full_folder_path = script.full_folder_path
33
+ full_file_path = os.path.join(full_folder_path, obj_file)
34
+ with open(full_file_path, 'rb') as file:
35
+ instance = dill.load(file)
36
+ print(f'{obj_file} object successfully loaded.')
37
+ return instance
38
+
barsukov/time.py CHANGED
@@ -1,16 +1,16 @@
1
- ### BEGIN Dependencies ###
2
- import datetime
3
- from pytz import timezone
4
- ### END Dependencies ###
5
-
6
- TIMEZONE = timezone('America/Los_Angeles')
7
-
8
- def time_stamp(): # YYYY-MM-DD_HH-MM-SSS, last digit is 1/10th of the second
9
- now = datetime.datetime.now(TIMEZONE)
10
- formatted_datetime = now.strftime(f"%Y-%m-%d_%H-%M-%S") + str(int( now.microsecond / 100000 ))
11
- return formatted_datetime
12
-
13
- def date(): # YYYY-MM-DD
14
- now = datetime.datetime.now(TIMEZONE)
15
- formatted_datetime = now.strftime(f"%Y-%m-%d")
16
- return formatted_datetime
1
+ ### BEGIN Dependencies ###
2
+ import datetime
3
+ from pytz import timezone
4
+ ### END Dependencies ###
5
+
6
+ TIMEZONE = timezone('America/Los_Angeles')
7
+
8
+ def time_stamp(): # YYYY-MM-DD_HH-MM-SSS, last digit is 1/10th of the second
9
+ now = datetime.datetime.now(TIMEZONE)
10
+ formatted_datetime = now.strftime(f"%Y-%m-%d_%H-%M-%S") + str(int( now.microsecond / 100000 ))
11
+ return formatted_datetime
12
+
13
+ def date(): # YYYY-MM-DD
14
+ now = datetime.datetime.now(TIMEZONE)
15
+ formatted_datetime = now.strftime(f"%Y-%m-%d")
16
+ return formatted_datetime
@@ -1,48 +1,47 @@
1
- Metadata-Version: 2.2
2
- Name: barsukov
3
- Version: 0.0.4
4
- Summary: Experiment Automation Package
5
- Author-email: Igor Barsukov <igorb@ucr.edu>
6
- Maintainer-email: Steven Castaneda <scast206@ucr.edu>
7
- Project-URL: Homepage, https://barsukov.ucr.edu
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.8
11
- Description-Content-Type: text/markdown
12
- Requires-Dist: pytz>=2014.10
13
- Requires-Dist: numpy>=1.20.0
14
- Requires-Dist: scipy>=1.15.1
15
-
16
- # Barsukov
17
-
18
- Barsukov is a Python library for experiment automation.
19
-
20
- ## Installation
21
-
22
- Use the package manager [pip](https://pip.pypa.io/en/stable/) to install barsukov.
23
-
24
- ```bash
25
- pip install barsukov
26
- ```
27
-
28
- ## Usage
29
-
30
- ```python
31
- #
32
- #
33
- #
34
- #
35
- #
36
- #
37
- #
38
- ```
39
-
40
- ## Contributing
41
-
42
- -
43
- -
44
- -
45
-
46
- ## License
47
-
48
- [MIT](https://choosealicense.com/licenses/mit/)
1
+ Metadata-Version: 2.2
2
+ Name: barsukov
3
+ Version: 1.0.8
4
+ Summary: Experiment Automation Package
5
+ Author-email: Igor Barsukov <igorb@ucr.edu>, Steven Castaneda <scast206@ucr.edu>
6
+ Project-URL: Homepage, https://barsukov.ucr.edu
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: pytz>=2014.10
12
+ Requires-Dist: numpy>=1.0.0
13
+ Requires-Dist: scipy>=0.9.0
14
+
15
+ # Barsukov
16
+
17
+ Barsukov is a Python library for experiment automation.
18
+
19
+ ## Installation
20
+
21
+ Use the package manager [pip](https://pip.pypa.io/en/stable/) to install barsukov.
22
+
23
+ ```bash
24
+ pip install barsukov
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ ```python
30
+ #
31
+ #
32
+ #
33
+ #
34
+ #
35
+ #
36
+ #
37
+ ```
38
+
39
+ ## Contributing
40
+
41
+ -
42
+ -
43
+ -
44
+
45
+ ## License
46
+
47
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1,17 @@
1
+ 2025-01-24_No Stn_Anon_No Sample_No Description/mw.dill,sha256=BXy7-09ZNue15mhWvyXR-0agQTFDwOdSi6E30sLQJNE,2
2
+ 2025-01-24_No Stn_Anon_No Sample_No Description/mw.pkl,sha256=BXy7-09ZNue15mhWvyXR-0agQTFDwOdSi6E30sLQJNE,2
3
+ barsukov/__init__.py,sha256=1i5yUENPC45RrQ2VXwSlzMRTWmjr_fmkJmmZonUjLIQ,269
4
+ barsukov/logger.py,sha256=i8S-EyO9vZmp-PgHnv4asTvJsS6KjFduO7t78K5CRQ4,5259
5
+ barsukov/obj2file.py,sha256=8BQOkCPnkq1doeIR7SjUeWRka6QwJ4W2pB8GQYhiSUA,3739
6
+ barsukov/script.py,sha256=W5Rx2VJrty0LFEtznX09ubY6Vwx9HDHFAj-rzsQmh38,3766
7
+ barsukov/testpickle.py,sha256=ay3ddGpbdQ2828VE1PdoMzArulPjXw5gtuPvzIjKobM,1320
8
+ barsukov/time.py,sha256=f88VRzAb84og7Bc4V67fg5ZmxnldTZ8vUnzwUVUnuA8,536
9
+ barsukov/data/__init__.py,sha256=IMnOEliXsRMPWeCTprPSddRKg9kwfV-neQiwUwHdpqs,19
10
+ barsukov/data/fft.py,sha256=f9aPLeusVpWiWmXO5n4XwkfQ9xJQhZVFdyhFoT9DB2A,4365
11
+ barsukov/exp/__init__.py,sha256=urLfGpap40kN9ULi53JB0NT-iMsZDSFdBmdSq3ckB0E,19
12
+ barsukov/exp/exp_utils.py,sha256=KwHBcDvV60zVB2GunpEfqbc6WwHOISWpsG24XBO3EkQ,4797
13
+ barsukov/exp/mwHP.py,sha256=ECzEXsTSe14-ZbvV1zmbbgV-11gOIjMUQfceDS2XfLU,8504
14
+ barsukov-1.0.8.dist-info/METADATA,sha256=RN-KBNilCAY9Xdf2GJkHN_lGYf-I6xImfZ6AU_Y7K0A,791
15
+ barsukov-1.0.8.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
16
+ barsukov-1.0.8.dist-info/top_level.txt,sha256=IJTKH4emvt-jqLNdlXcYs-YSbyt0P_wruWi-2Dosux8,57
17
+ barsukov-1.0.8.dist-info/RECORD,,
@@ -0,0 +1,2 @@
1
+ 2025-01-24_No Stn_Anon_No Sample_No Description
2
+ barsukov
@@ -1,14 +0,0 @@
1
- barsukov/__init__.py,sha256=5m-RSzmBVqzfuBuo2Eqj-DCiKgOfKhqvGr9E5mPTdl4,257
2
- barsukov/logger.py,sha256=kWSiJJSjI4EtCxW5fyAww-6BQAFnCk-Gv8OIdtXH5pg,5275
3
- barsukov/obj2file.py,sha256=kNEDM7wcAUbeg7qbztZrKsxcOQEi2JmB-qQzaOO50Cc,3879
4
- barsukov/script.py,sha256=R-8ai8LMO3m4quoHrKXBgoLTlDGX7AeRj6XbVZEunbA,3383
5
- barsukov/time.py,sha256=6YVvay-ISO5VpyHG8WGUelGfaN1N18ktRrP37MVbdyU,552
6
- barsukov/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- barsukov/data/fft.py,sha256=VwY1h0ZB8xy_mxoI8zPESRLM7nk5NbiGi3wC6vg6T-k,4452
8
- barsukov/exp/__init__.py,sha256=urLfGpap40kN9ULi53JB0NT-iMsZDSFdBmdSq3ckB0E,19
9
- barsukov/exp/exp_utils.py,sha256=jpmSt-4XGwK4QWR8SEi1s0JPwUavO8Smmc4y6bO0giU,4091
10
- barsukov/exp/mwHP.py,sha256=auZmIgxtbZyzS_x0jk5uhNHioAuJKnAUHeB-fJoSF3w,19023
11
- barsukov-0.0.4.dist-info/METADATA,sha256=Jucp4OIoGh73CgWV-ulKWwM4B-gmrUfA_df9lHKiF0A,858
12
- barsukov-0.0.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
13
- barsukov-0.0.4.dist-info/top_level.txt,sha256=Js5sHbNjP0UNMB9O5HtCHZqlfHabuNS8nTsHbg-1DDQ,9
14
- barsukov-0.0.4.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- barsukov