Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Droplet Deformation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AVT-FVT
public
Droplet Deformation
Commits
42e7fd5a
Commit
42e7fd5a
authored
2 months ago
by
ssibirtsev
Browse files
Options
Downloads
Patches
Plain Diff
Replace DropDeform_bo.py
parent
5750d664
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
script/DropDeform_bo.py
+1
-4
1 addition, 4 deletions
script/DropDeform_bo.py
with
1 addition
and
4 deletions
script/DropDeform_bo.py
+
1
−
4
View file @
42e7fd5a
...
...
@@ -266,8 +266,6 @@ def sample_data(config, M_deform, cor_bo, ish):
data_x_new
=
np
.
log
(
data_x_new
)
# Combine x_data and y_data into a DataFrame for easy manipulation
data
=
pd
.
DataFrame
({
'
x
'
:
data_x_new
,
'
y
'
:
data_y_new
})
# Exclude data points where y == 0
data
=
data
[
data
[
'
y
'
]
!=
0
]
# Bin x into equally spaced bins
data
[
'
x_bin
'
]
=
pd
.
cut
(
data
[
'
x
'
],
bins
=
config
.
n_bins
,
labels
=
False
)
# Calculate the minimum number of points in any bin
...
...
@@ -286,8 +284,7 @@ def sample_data(config, M_deform, cor_bo, ish):
# Define x samples for fitting
x_sampled
=
balanced_sample
[
'
x
'
].
values
# Transfer back into non logarithmic scale
if
cor_bo
==
0
:
x_sampled
=
np
.
exp
(
x_sampled
)
x_sampled
=
np
.
exp
(
x_sampled
)
# Define y samples for fitting
y_sampled
=
balanced_sample
[
'
y
'
].
values
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment