Coder Social home page Coder Social logo

dtu-package's Introduction

Welcome

pip install git+https://github.com/FredslundMagnus/dtu-package.git

or

C:/path/to/python.exe -m pip install --upgrade --force-reinstall git+https://github.com/FredslundMagnus/dtu-package.git

Setup

Run this on your pc and it will show you commands you should use on the server:

from dtu import setup

setup(github_link="https://github.com/FredslundMagnus/Systems-Optimization.git", python="3.10.7", packages=["numpy", "pandas", "numba", "matplotlib"])

If this is your second project set

first_time: bool = True

Server

Example of main.py

from dtu import Parameters, dtu

@dtu
class Defaults(Parameters):
    name: str = "local"
    instances: int = 1
    GPU: bool = False
    time: int = 3600

    b: float = 2.0
    a: int = 1
    d: str = "fd"

    def run(self, b: float, d: str, a: int) -> None:
        print(b,d, self.time)


Defaults.start()

example of generate.py

from main import Defaults

Defaults("Test1", b=4, d="dsf")

It will check types

Create own package

https://packaging.python.org/en/latest/tutorials/packaging-projects/

dtu-package's People

Contributors

fredslundmagnus avatar

Stargazers

Michał Kossakowski avatar Karol Jędrzejewski avatar Chunxue LI avatar Meta Learn avatar  avatar

Watchers

 avatar

dtu-package's Issues

.profile not formatted correctly

.profile file issue
I have encountered and issue after moving to PyCharm from VSCode. I now get these "errors" in the output file:

/zhome/e1/0/174432/.profile: line 1: insert: command not found
/zhome/e1/0/174432/.profile: line 2: syntax error near unexpected token `('
/zhome/e1/0/174432/.profile: line 2: `PATH=$PATH:$HOME/bin:. (Change to this)'

I did not change the '.profile' file itself.

Is this a bug?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.