syned 1.0.47__tar.gz → 1.0.48__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.
- {syned-1.0.47/syned.egg-info → syned-1.0.48}/PKG-INFO +1 -2
- {syned-1.0.47 → syned-1.0.48}/setup.py +1 -8
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/multilayers/multilayer.py +0 -2
- {syned-1.0.47 → syned-1.0.48}/syned/syned_object.py +11 -0
- {syned-1.0.47 → syned-1.0.48/syned.egg-info}/PKG-INFO +1 -2
- {syned-1.0.47 → syned-1.0.48}/LICENSE +0 -0
- {syned-1.0.47 → syned-1.0.48}/MANIFEST.in +0 -0
- {syned-1.0.47 → syned-1.0.48}/README.rst +0 -0
- {syned-1.0.47 → syned-1.0.48}/setup.cfg +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/__test/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/__test/test.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/beamline.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/beamline_element.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/element_coordinates.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_element.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_element_with_surface_shape.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/absorbers/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/absorbers/absorber.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/absorbers/beam_stopper.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/absorbers/filter.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/absorbers/holed_filter.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/absorbers/slit.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/crystals/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/crystals/crystal.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/gratings/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/gratings/grating.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/ideal_elements/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/ideal_elements/ideal_element.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/ideal_elements/ideal_fzp.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/ideal_elements/ideal_lens.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/ideal_elements/screen.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/mirrors/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/mirrors/mirror.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/multilayers/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/refractors/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/refractors/crl.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/refractors/interface.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/refractors/lens.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/beamline/shape.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/electron_beam.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/empty_light_source.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/light_source.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/magnetic_structure.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/magnetic_structures/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/magnetic_structures/bending_magnet.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/magnetic_structures/insertion_device.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/magnetic_structures/undulator.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/storage_ring/magnetic_structures/wiggler.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/util/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/util/json_tools.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/widget/__init__.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned/widget/widget_decorator.py +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned.egg-info/SOURCES.txt +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned.egg-info/dependency_links.txt +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned.egg-info/not-zip-safe +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned.egg-info/requires.txt +0 -0
- {syned-1.0.47 → syned-1.0.48}/syned.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: syned
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.48
|
|
4
4
|
Summary: SYNED (SYNchrotron Elements Dictionary) kernel library
|
|
5
5
|
Home-page: https://github.com/oasys-kit/syned
|
|
6
6
|
Download-URL: https://github.com/oasys-kit/syned
|
|
@@ -14,7 +14,6 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
14
14
|
Classifier: Environment :: Console
|
|
15
15
|
Classifier: Environment :: Plugins
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
18
17
|
Classifier: Operating System :: POSIX
|
|
19
18
|
Classifier: Operating System :: Microsoft :: Windows
|
|
20
19
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
@@ -9,7 +9,7 @@ except AttributeError:
|
|
|
9
9
|
|
|
10
10
|
NAME = 'syned'
|
|
11
11
|
|
|
12
|
-
VERSION = '1.0.
|
|
12
|
+
VERSION = '1.0.48'
|
|
13
13
|
ISRELEASED = True
|
|
14
14
|
|
|
15
15
|
DESCRIPTION = 'SYNED (SYNchrotron Elements Dictionary) kernel library'
|
|
@@ -35,8 +35,6 @@ CLASSIFIERS = [
|
|
|
35
35
|
'Environment :: Console',
|
|
36
36
|
'Environment :: Plugins',
|
|
37
37
|
'Programming Language :: Python :: 3',
|
|
38
|
-
'License :: OSI Approved :: '
|
|
39
|
-
'GNU General Public License v3 or later (GPLv3+)',
|
|
40
38
|
'Operating System :: POSIX',
|
|
41
39
|
'Operating System :: Microsoft :: Windows',
|
|
42
40
|
'Topic :: Scientific/Engineering :: Visualization',
|
|
@@ -52,10 +50,6 @@ INSTALL_REQUIRES = (
|
|
|
52
50
|
'scipy',
|
|
53
51
|
)
|
|
54
52
|
|
|
55
|
-
SETUP_REQUIRES = (
|
|
56
|
-
'setuptools',
|
|
57
|
-
)
|
|
58
|
-
|
|
59
53
|
PACKAGES = [
|
|
60
54
|
"syned",
|
|
61
55
|
"syned.beamline",
|
|
@@ -99,7 +93,6 @@ def setup_package():
|
|
|
99
93
|
zip_safe=False, # the package can run out of an .egg file
|
|
100
94
|
include_package_data=True,
|
|
101
95
|
install_requires=INSTALL_REQUIRES,
|
|
102
|
-
setup_requires=SETUP_REQUIRES,
|
|
103
96
|
)
|
|
104
97
|
|
|
105
98
|
if __name__ == '__main__':
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import copy
|
|
2
2
|
from collections import OrderedDict
|
|
3
|
+
import pickle
|
|
3
4
|
try:
|
|
4
5
|
import json_tricks as json # to save numpy arrays
|
|
5
6
|
except:
|
|
@@ -34,6 +35,8 @@ class SynedObject(object):
|
|
|
34
35
|
* to_dictionary()
|
|
35
36
|
* to_full_dictionary()
|
|
36
37
|
* to_json()
|
|
38
|
+
* to_hex_tring()
|
|
39
|
+
* from_hex_tring()
|
|
37
40
|
* info()
|
|
38
41
|
* set_value_from_key_name()
|
|
39
42
|
* get_value_from_key_name()
|
|
@@ -163,6 +166,14 @@ class SynedObject(object):
|
|
|
163
166
|
print("File written to disk: %s"%(file_name))
|
|
164
167
|
return jsn1
|
|
165
168
|
|
|
169
|
+
def to_hex_tring(self):
|
|
170
|
+
return pickle.dumps(self).hex()
|
|
171
|
+
|
|
172
|
+
@classmethod
|
|
173
|
+
def from_hex_tring(cls, hex_string):
|
|
174
|
+
return pickle.loads(bytes.fromhex(hex_string))
|
|
175
|
+
|
|
176
|
+
|
|
166
177
|
def info_recurrent(self, fd, prefix=" "):
|
|
167
178
|
"""
|
|
168
179
|
Get text info of recurrent SYNED objects.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: syned
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.48
|
|
4
4
|
Summary: SYNED (SYNchrotron Elements Dictionary) kernel library
|
|
5
5
|
Home-page: https://github.com/oasys-kit/syned
|
|
6
6
|
Download-URL: https://github.com/oasys-kit/syned
|
|
@@ -14,7 +14,6 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
14
14
|
Classifier: Environment :: Console
|
|
15
15
|
Classifier: Environment :: Plugins
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
18
17
|
Classifier: Operating System :: POSIX
|
|
19
18
|
Classifier: Operating System :: Microsoft :: Windows
|
|
20
19
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
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
|
{syned-1.0.47 → syned-1.0.48}/syned/beamline/optical_elements/ideal_elements/ideal_element.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
|
|
File without changes
|