pyVLMP 1.0.74__tar.gz → 1.0.76__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 (135) hide show
  1. {pyvlmp-1.0.74/pyVLMP.egg-info → pyvlmp-1.0.76}/PKG-INFO +1 -1
  2. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/AFM.py +23 -1
  3. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/experiments/HighThroughputAFM.py +23 -2
  4. {pyvlmp-1.0.74 → pyvlmp-1.0.76/pyVLMP.egg-info}/PKG-INFO +1 -1
  5. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyproject.toml +1 -1
  6. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/LICENSE +0 -0
  7. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/MANIFEST.in +0 -0
  8. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/README.md +0 -0
  9. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/VLMP.py +0 -0
  10. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/__init__.py +0 -0
  11. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/__main__.py +0 -0
  12. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/__init__.py +0 -0
  13. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/ensembles/NVT.py +0 -0
  14. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/ensembles/NVTlambda.py +0 -0
  15. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/ensembles/__init__.py +0 -0
  16. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/BBK.py +0 -0
  17. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/EulerMaruyama.py +0 -0
  18. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/EulerMaruyamaRigidBody.py +0 -0
  19. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/EulerMaruyamaRigidBodyPatchesState.py +0 -0
  20. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/GJF.py +0 -0
  21. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/MagneticBrownian.py +0 -0
  22. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/NVE.py +0 -0
  23. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/__init__.py +0 -0
  24. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/ACMagneticField.py +0 -0
  25. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/LennardJones.py +0 -0
  26. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/WCA.py +0 -0
  27. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/__init__.py +0 -0
  28. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/absortionSurface.py +0 -0
  29. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/addBond.py +0 -0
  30. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantForce.py +0 -0
  31. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantForceBetweenCentersOfMass.py +0 -0
  32. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantForceOverCenterOfMass.py +0 -0
  33. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantTorqueBetweenCentersOfMass.py +0 -0
  34. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantTorqueOverCenterOfMass.py +0 -0
  35. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintCenterOfMassPosition.py +0 -0
  36. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintParticlesListPositionLambda.py +0 -0
  37. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintParticlesPosition.py +0 -0
  38. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintParticlesPositionLambda.py +0 -0
  39. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/harmonicBondBetweenCentersOfMass.py +0 -0
  40. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/helixBoundaries.py +0 -0
  41. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/plates.py +0 -0
  42. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/sphericalShell.py +0 -0
  43. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/steric.py +0 -0
  44. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/surface.py +0 -0
  45. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/surfaceMaxForce.py +0 -0
  46. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/uniformField.py +0 -0
  47. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/__init__.py +0 -0
  48. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/alignInertiaMomentAlongVector.py +0 -0
  49. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/distributeRandomly.py +0 -0
  50. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/rotation.py +0 -0
  51. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setCenterOfMassPosition.py +0 -0
  52. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setContactDistance.py +0 -0
  53. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setParticleLowestPosition.py +0 -0
  54. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setParticlePositions.py +0 -0
  55. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setParticleXYPosition.py +0 -0
  56. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/AdaptiveCG.py +0 -0
  57. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/CORONAVIRUS.py +0 -0
  58. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/ENM.py +0 -0
  59. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/FILE.py +0 -0
  60. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/HELIX.py +0 -0
  61. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/ICOSPHERE.py +0 -0
  62. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/IDP.py +0 -0
  63. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/KB.py +0 -0
  64. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/MADna.py +0 -0
  65. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/MAGNETICNP.py +0 -0
  66. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/MEMBRANE.py +0 -0
  67. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/PARTICLE.py +0 -0
  68. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/PROTEIN_IDP_PROTEIN.py +0 -0
  69. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/SBCG.py +0 -0
  70. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/SIMULATION.py +0 -0
  71. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/SOP.py +0 -0
  72. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/SPHEREMULTIBLOB.py +0 -0
  73. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/STERIC_LAMBDA_SOLVATION.py +0 -0
  74. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/WLC.py +0 -0
  75. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/__init__.py +0 -0
  76. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/data/CORONAVIRUS.json +0 -0
  77. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/data/ICOSPHERE.json +0 -0
  78. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/data/MADna.json +0 -0
  79. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/AFMMaxForce.py +0 -0
  80. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/__init__.py +0 -0
  81. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/afmMeasurement.py +0 -0
  82. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/anglesMeasurement.py +0 -0
  83. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/centerOfMassMeasurement.py +0 -0
  84. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/forceBetweenSetsMeasurement.py +0 -0
  85. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/gyrationRadius.py +0 -0
  86. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/heightMeasurement.py +0 -0
  87. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/info.py +0 -0
  88. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/lambdaActivation.py +0 -0
  89. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/lambdaCycle.py +0 -0
  90. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/meanMagnetizationMeasurement.py +0 -0
  91. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/meanRadius.py +0 -0
  92. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/meanSquareDisplacement.py +0 -0
  93. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/nativeContactsMeasurement.py +0 -0
  94. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/oscillatoryForceMeasurment.py +0 -0
  95. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/pairwiseForces.py +0 -0
  96. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/patchPolymersMeasurement.py +0 -0
  97. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/potentialEnergyMeasurement.py +0 -0
  98. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/potentialMeasurement.py +0 -0
  99. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/savePatchyParticlesState.py +0 -0
  100. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/saveState.py +0 -0
  101. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/stressMeasurement.py +0 -0
  102. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/thermodynamicIntegration.py +0 -0
  103. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/thermodynamicMeasurement.py +0 -0
  104. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/vqcmMeasurement.py +0 -0
  105. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/vqcmMobilityMeasurement.py +0 -0
  106. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/systems/__init__.py +0 -0
  107. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/systems/backup.py +0 -0
  108. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/systems/seed.py +0 -0
  109. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/systems/simulationName.py +0 -0
  110. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/types/__init__.py +0 -0
  111. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/types/basic.py +0 -0
  112. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/types/none.py +0 -0
  113. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/units/KcalMol_A.py +0 -0
  114. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/units/__init__.py +0 -0
  115. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/units/none.py +0 -0
  116. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/experiments/SurfaceUmbrellaSampling.py +0 -0
  117. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/experiments/__init__.py +0 -0
  118. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/__init__.py +0 -0
  119. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/__init__.py +0 -0
  120. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/bounds.py +0 -0
  121. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/objects/__init__.py +0 -0
  122. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/objects/helix.py +0 -0
  123. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/particlesDistribution.py +0 -0
  124. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/input/__init__.py +0 -0
  125. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/input/stringUtils.py +0 -0
  126. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/launcher/__init__.py +0 -0
  127. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/selections/__init__.py +0 -0
  128. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/selections/commonSelections.py +0 -0
  129. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/units/__init__.py +0 -0
  130. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyVLMP.egg-info/SOURCES.txt +0 -0
  131. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyVLMP.egg-info/dependency_links.txt +0 -0
  132. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyVLMP.egg-info/requires.txt +0 -0
  133. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyVLMP.egg-info/top_level.txt +0 -0
  134. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/setup.cfg +0 -0
  135. {pyvlmp-1.0.74 → pyvlmp-1.0.76}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyVLMP
3
- Version: 1.0.74
3
+ Version: 1.0.76
4
4
  Summary: Virtual Lab Modeling Platform
5
5
  Home-page: https://github.com/PabloIbannez/pyGrained
6
6
  Author-email: Pablo Ibáñez-Freire <p.ibanez.fre@gmail.com>
@@ -8,10 +8,12 @@ class AFM(modelExtensionBase):
8
8
  This extension add an interaction between a particle (the tip) and other set of
9
9
  particles (the sample). The interaction between the tip and the sample is modeled
10
10
  as a Lennard-Jones potential. The tip is modeled as a spherical particle with a
11
- spring attached to it.",
11
+ spring attached to it. Optionally, the tip is a cone that ends in that sphere.",
12
12
  "parameters": {
13
13
  "K": {"description": "Spring constant for the AFM cantilever", "type": "float", "default": null},
14
14
  "Kxy": {"description": "Lateral spring constant", "type": "float", "default": null},
15
+ "tipShape": {"description": "Shape of the tip, spherical or sphericallyBluntedConic", "type": "str", "default": "spherical"},
16
+ "tipAngle": {"description": "Half-angle of the cone in radians, only for sphericallyBluntedConic", "type": "float", "default": null},
15
17
  "epsilon": {"description": "Energy parameter for tip-sample interaction", "type": "float", "default": null},
16
18
  "sigma": {"description": "Distance parameter for tip-sample interaction", "type": "float", "default": null},
17
19
  "tipVelocity": {"description": "Velocity of the AFM tip", "type": "float", "default": null},
@@ -42,6 +44,7 @@ class AFM(modelExtensionBase):
42
44
  availableParameters = {"epsilon",
43
45
  "sigma",
44
46
  "K","Kxy",
47
+ "tipShape","tipAngle",
45
48
  "tipVelocity",
46
49
  "indentationStartStep",
47
50
  "indentationBackwardStep"}
@@ -67,6 +70,18 @@ class AFM(modelExtensionBase):
67
70
  K = params["K"]
68
71
  Kxy = params["Kxy"]
69
72
 
73
+ tipShape = params.get("tipShape","spherical")
74
+ tipAngle = params.get("tipAngle",None)
75
+
76
+ if tipShape not in ["spherical","sphericallyBluntedConic"]:
77
+ self.logger.error(f"AFM model extension, tip shape {tipShape} not available, "
78
+ "available shapes are: spherical, sphericallyBluntedConic")
79
+ raise Exception("Tip shape not available")
80
+
81
+ if (tipShape == "sphericallyBluntedConic") != (tipAngle is not None):
82
+ self.logger.error("AFM model extension, tipAngle must be given for the sphericallyBluntedConic tip, and only for it")
83
+ raise Exception("Tip shape and tip angle not compatible")
84
+
70
85
  tipVelocity = params["tipVelocity"]
71
86
 
72
87
  indentationStartStep = params.get("indentationStartStep",0)
@@ -97,6 +112,13 @@ class AFM(modelExtensionBase):
97
112
  extension[name]["labels"] = ["idSet_i","idSet_j","epsilon","sigma","K","Kxy","tipVelocity","startChipPosition","indentationStartStep","indentationBackwardStep"]
98
113
  extension[name]["data"] = [[tipIds,sampleIds,epsilon,sigma,K,Kxy,tipVelocity,startChipPosition,indentationStartStep,indentationBackwardStep]]
99
114
 
115
+ if tipShape == "sphericallyBluntedConic":
116
+ extension[name]["type"] = ["AFM","SphericallyBluntedConicTip"]
117
+ #After K and Kxy
118
+ index = extension[name]["labels"].index("Kxy")+1
119
+ extension[name]["labels"].insert(index,"tipAngle")
120
+ extension[name]["data"][0].insert(index,tipAngle)
121
+
100
122
  ############################################################
101
123
 
102
124
  self.setExtension(extension)
@@ -43,6 +43,10 @@ class HighThroughputAFM(VLMP.VLMP):
43
43
  self.K = parameters["AFM"]["K"]
44
44
  self.Kxy = parameters["AFM"]["Kxy"]
45
45
 
46
+ #The shape is common to all the samples, different shapes can not be in the same batch
47
+ self.tipShape = parameters["AFM"].get("tipShape","spherical")
48
+ self.tipAngle = parameters["AFM"].get("tipAngle",None)
49
+
46
50
  self.epsilon = parameters["AFM"]["epsilon"]
47
51
  self.sigma = parameters["AFM"]["sigma"]
48
52
 
@@ -209,6 +213,7 @@ class HighThroughputAFM(VLMP.VLMP):
209
213
 
210
214
 
211
215
  allParameters = ["K", "Kxy",
216
+ "tipAngle",
212
217
  "epsilon",
213
218
  "sigma",
214
219
  "tipVelocity",
@@ -269,6 +274,8 @@ class HighThroughputAFM(VLMP.VLMP):
269
274
  K_smp = self.K[index]
270
275
  Kxy_smp = self.Kxy[index]
271
276
 
277
+ tipAngle_smp = self.tipAngle[index]
278
+
272
279
  epsilon_smp = self.epsilon[index]
273
280
  sigma_smp = self.sigma[index]
274
281
 
@@ -346,6 +353,8 @@ class HighThroughputAFM(VLMP.VLMP):
346
353
  #Add AFM
347
354
 
348
355
  sim["modelExtensions"].append({"type":"AFM","parameters":{"K":K_smp,"Kxy":Kxy_smp,
356
+ "tipShape":self.tipShape,
357
+ "tipAngle":tipAngle_smp,
349
358
  "epsilon":epsilon_smp,
350
359
  "sigma":sigma_smp,
351
360
  "tipVelocity":tipVelocity_smp,
@@ -437,11 +446,16 @@ class AnalysisAFM:
437
446
  def __init__(self,
438
447
  VLMPsessionFilePath,
439
448
  outputUnits,
449
+ outputType,
440
450
  maxForce = None,
441
451
  plotTime = False):
442
452
 
443
453
  self.logger = logging.getLogger("VLMP")
444
454
 
455
+ if outputType not in ["window","file"]:
456
+ self.logger.error("[AnalysisAFM] Output type %s not available, available types are: window, file" % outputType)
457
+ raise Exception("Output type not available")
458
+
445
459
  ########################################################
446
460
 
447
461
  self.VLMPsessionFilePath = VLMPsessionFilePath
@@ -450,6 +464,7 @@ class AnalysisAFM:
450
464
  self.VLMPsession = json.load(f)
451
465
 
452
466
  self.outputUnits = outputUnits
467
+ self.outputType = outputType
453
468
  self.maxForce = maxForce
454
469
  self.plotTime = plotTime
455
470
 
@@ -502,11 +517,16 @@ class AnalysisAFM:
502
517
  if self.plotTime:
503
518
  ax2 = ax.twinx()
504
519
  ax2.plot(X,T,"--",color="red")
505
- f.show()
506
520
 
507
521
  if self.maxForce is not None:
508
522
  ax.set_ylim([np.min(F),self.maxForce])
509
523
 
524
+ if self.outputType == "window":
525
+ f.show()
526
+ else:
527
+ f.savefig("/".join(self.VLMPsessionFilePath.split("/")[:-1]) + "/results/" + name + "/afm.png")
528
+ plt.close(f)
529
+
510
530
  indentationProcessedFilePath = "/".join(self.VLMPsessionFilePath.split("/")[:-1]) + "/results/" + name + "/afm_processed.dat"
511
531
  with open(indentationProcessedFilePath,"w") as f:
512
532
  f.write("# {} {}\n".format(Xunits,Funits))
@@ -514,4 +534,5 @@ class AnalysisAFM:
514
534
  f.write("{} {}\n".format(X[i],F[i]))
515
535
 
516
536
  #Wait for plots to be closed
517
- input("Press enter to continue...")
537
+ if self.outputType == "window":
538
+ input("Press enter to continue...")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyVLMP
3
- Version: 1.0.74
3
+ Version: 1.0.76
4
4
  Summary: Virtual Lab Modeling Platform
5
5
  Home-page: https://github.com/PabloIbannez/pyGrained
6
6
  Author-email: Pablo Ibáñez-Freire <p.ibanez.fre@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name="pyVLMP"
3
- version="1.0.74"
3
+ version="1.0.76"
4
4
  authors = [
5
5
  {name = "Pablo Ibáñez-Freire", email = "p.ibanez.fre@gmail.com"},
6
6
  ]
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