Skip to content
Snippets Groups Projects
Commit 08b760cc authored by Ronald Jäpel's avatar Ronald Jäpel
Browse files

prepare for Pip

parent 9fc2ed76
No related branches found
No related tags found
No related merge requests found
from .utils import *
from .utils import GitRepo, initialize_git_repo
from .conda_env_utils import prepare_conda_env
File moved
import os
import json
import matplotlib.pyplot as plt
import numpy as np
from datetime import datetime
import random
try:
import git
......@@ -258,6 +256,9 @@ def initialize_git_repo(path_to_repo, output_repo_name="output", gitignore: list
def example_generate_results_data(seed=None):
import matplotlib.pyplot as plt
import numpy as np
if seed is not None:
np.random.seed(seed)
......@@ -282,7 +283,7 @@ def example_usage():
project_repo = GitRepo(".")
# Add changes to the project code
random_number = np.random.randint(256)
random_number = random.randint(0, 265)
with open("random_number.txt", "a") as file:
file.write(str(random_number))
......@@ -303,4 +304,3 @@ def example_usage():
# Go back to data
project_repo.reload_recent_results()
[metadata]
name = modsimdata
version = 0.0.1
author = Ronald Jäpel
author_email = r.jaepel@fz-juelich.de
description = A solution for research data management
long_description = file: README.md
long_description_content_type = text/markdown
url = https://jugit.fz-juelich.de/IBG-1/ModSim/cadet/ModsimDataTool
project_urls =
Bug Tracker = https://jugit.fz-juelich.de/IBG-1/ModSim/cadet/ModsimDataTool/Issues
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Operating System :: OS Independent
[options]
packages = find:
python_requires = >=3.8
install_requires =
gitpython
[options.extras_require]
testing =
setuptools
certifi # tries to prevent certificate problems on windows
pre-commit # system tests run pre-commit
flake8 # system tests run flake8
matplotlib
numpy
[flake8]
max_line_length = 88
exclude =
build
dist
.eggs
docs/conf.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment