Skip to content

Packaging#9

Open
JuxhinoKavaja wants to merge 8 commits intodkouzoup:mainfrom
JuxhinoKavaja:packaging
Open

Packaging#9
JuxhinoKavaja wants to merge 8 commits intodkouzoup:mainfrom
JuxhinoKavaja:packaging

Conversation

@JuxhinoKavaja
Copy link
Collaborator

Improved project structure

zanellia and others added 8 commits February 9, 2024 16:57
Copy link
Owner

@dkouzoup dkouzoup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the packaging! I just requested a few small changes and we can merge. Please also make sure that all simulations run with the latest version.

- Activate the virtual environment: `.\.env\Scripts\activate`

- Install dependencies with: `pip install -r requirements.txt`
- Install dependencies with: `pip install -e .`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not "dependencies" any more. I would say "Install package" (please also double-check that we indicate the right directory to run the command from).

@@ -0,0 +1,31 @@
from mseetc.train import Train
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this change and place this code back in ocp.py, as this re-structuring is not relevant for the PR.

import casadi as ca

from train import *
from ..train import *
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would - for now - undo the nested ms folder and update the imports (from .track instead of from ..track)

from track import Track
from utils import latexify, show, saveFig, postProcessDataFrame
from efficiency import totalLossesFunction
from mseetc.ms.ocp import casadiSolver
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from mseetc.ocp (many occurances)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants