-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from zfit/flake8
style: enforce flake8 and prettier
- Loading branch information
Showing
16 changed files
with
114 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,27 +8,14 @@ | |
|
||
import os | ||
import sys | ||
from timeit import default_timer | ||
|
||
import tensorflow as tf | ||
|
||
from phasespace import phasespace | ||
|
||
sys.path.append(os.path.dirname(__file__)) | ||
|
||
# from .monitoring import Timer | ||
|
||
# !/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# ============================================================================= | ||
# @file monitoring.py | ||
# @author Albert Puig ([email protected]) | ||
# @date 14.02.2017 | ||
# ============================================================================= | ||
"""Various code monitoring utilities.""" | ||
|
||
import os | ||
from timeit import default_timer | ||
|
||
|
||
def memory_usage(): | ||
"""Get memory usage of current process in MiB. | ||
|
@@ -99,8 +86,12 @@ def __exit__(self, *args): | |
|
||
# to play around with optimization, no big effect though | ||
NUM_PARALLEL_EXEC_UNITS = 1 | ||
# config = tf.ConfigProto(intra_op_parallelism_threads=NUM_PARALLEL_EXEC_UNITS, inter_op_parallelism_threads=1, | ||
# allow_soft_placement=True, device_count={'CPU': NUM_PARALLEL_EXEC_UNITS}) | ||
# config = tf.ConfigProto( | ||
# intra_op_parallelism_threads=NUM_PARALLEL_EXEC_UNITS, | ||
# inter_op_parallelism_threads=1, | ||
# allow_soft_placement=True, | ||
# device_count={"CPU": NUM_PARALLEL_EXEC_UNITS}, | ||
# ) | ||
|
||
B_MASS = 5279.0 | ||
B_AT_REST = tf.stack((0.0, 0.0, 0.0, B_MASS), axis=-1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.