forked from s_ranjbar/city_retrofit
error detected in usage parsing
This commit is contained in:
parent
a71443ef23
commit
27b4fb6e8e
13
.idea/inspectionProfiles/Project_Default.xml
Normal file
13
.idea/inspectionProfiles/Project_Default.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||
<option name="ignoredErrors">
|
||||
<list>
|
||||
<option value="E111" />
|
||||
<option value="E114" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
8
.idea/libs.iml
Normal file
8
.idea/libs.iml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/libs.iml" filepath="$PROJECT_DIR$/.idea/libs.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
19
helpers/geometry.py
Normal file
19
helpers/geometry.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
import math
|
||||
import numpy as np
|
||||
|
||||
|
||||
class Geometry:
|
||||
def __init__(self, delta=0.5):
|
||||
self._delta = delta
|
||||
|
||||
def almost_equal(self, v1, v2):
|
||||
delta = math.sqrt(pow((v1[0]-v2[0]), 2) + pow((v1[1]-v2[1]), 2) + pow((v1[2]-v2[2]), 2))
|
||||
return delta <= self._delta
|
||||
|
||||
@staticmethod
|
||||
def to_points_matrix(points, remove_last=False):
|
||||
rows = points.size//3
|
||||
points = points.reshape(rows, 3)
|
||||
if remove_last:
|
||||
points = np.delete(points, rows-1, 0)
|
||||
return points
|
|
@ -1,5 +1,5 @@
|
|||
from physics.physics_feeders.us_base_physics_parameters import UsBasePhysicsParameters
|
||||
from physics.physics_feeders.helpers.us_pluto_to_function import PlutoToFunction as Pf
|
||||
from physics.physics_feeders.helpers.us_pluto_to_function import UsPlutoToFunction as Pf
|
||||
|
||||
|
||||
class UsNewYorkCityPhysicsParameters(UsBasePhysicsParameters):
|
||||
|
|
Loading…
Reference in New Issue
Block a user