Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GenericIO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Michael Buehlmann
GenericIO
Commits
f32ed386
Commit
f32ed386
authored
4 years ago
by
Andre Grosset
Browse files
Options
Downloads
Patches
Plain Diff
some python updates
parent
00ee2492
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
python/cookbook/largestHalo.py
+3
-3
3 additions, 3 deletions
python/cookbook/largestHalo.py
with
3 additions
and
3 deletions
python/cookbook/largestHalo.py
+
3
−
3
View file @
f32ed386
import
sys
import
sys
import
argparse
import
argparse
import
matplotlib
#
import matplotlib
import
numpy
as
np
import
numpy
as
np
import
pandas
as
pd
import
pandas
as
pd
import
dask.dataframe
as
dd
#
import dask.dataframe as dd
def
create_dataframe
(
file_name
,
var_names
,
ranks
=
[]):
def
create_dataframe
(
file_name
,
var_names
,
ranks
=
[]):
...
@@ -50,4 +50,4 @@ halo_df = create_dataframe(halo_file_name, halo_selected_scalars)
...
@@ -50,4 +50,4 @@ halo_df = create_dataframe(halo_file_name, halo_selected_scalars)
filtered_halo_df
=
halo_df
[(
halo_df
[
'
fof_halo_count
'
]
>
int
(
value
))]
filtered_halo_df
=
halo_df
[(
halo_df
[
'
fof_halo_count
'
]
>
int
(
value
))]
print
(
filtered_halo_df
)
print
(
filtered_halo_df
)
# python cookbook/largesthalo.py /home/pascal/projects/genericio/python /bigData/b0168/m001-499.fofproperties 500000
# python cookbook/largesthalo.py /home/pascal/projects/genericio/python /bigData/b0168/m001-499.fofproperties 500000
\ No newline at end of file
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