Code Monkey home page Code Monkey logo

mlxtk's Introduction

mlxtk

PyPI PyPI - Python Version PyPI - License

Toolkit to design, run and analyze ML-MCTDH(X) simulations

Description

mlxtk gives the user a simple interface to setup physical systems and provides common simulation tasks to be used as building blocks to set up rather complex simulations. Data is automatically stored in efficient formats (i.e. HDF5 and gzipped files).

Simulations can also be used in the context of parameter scans where each simulation is executed for each specified parameter combination. Submission of simulation jobs to computing clusters is easily achieved from the command line.

Furthermore, analysis and plotting tools are provided to interpret the simulation outcome.

mlxtk's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar f-koehler avatar pre-commit-ci[bot] avatar pyup-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

mlxtk's Issues

Enable HDF5 Creation for Incomplete Datasets

This would be very helpful, if you are still waiting for one last simulation but already want to look into the data.
One could even add this information as meta data to the HDF5 file.

Add non-persistent operators

When using large grids, the operators take up a lot of disk space. In some scenarios, e.g. when only computing one-body spectra which do not actually require the operator in file form one might save space by keeping the operator in memory only.

Specify which QDTK executables to use

A more sophisticated way of locating the correct executables is needed to test new features that should not be used in production.

  • Use QDTK_PREFIX environment variable (look for ${QDTK_PREFIX}/bin/qdtk_*.x)
  • override executable path

Potential dependency conflicts between mlxtk and numpy

Hi, as shown in the following full dependency graph of mlxtk, mlxtk requires numpy >=1.18,<1.19, mlxtk requires matplotlib >=3.2,<3.3 (matplotlib 3.2.1 will be installed, i.e., the newest version satisfying the version constraint), and directed dependency matplotlib 3.2.1 transitively introduces numpy >=1.11.

Obviously, there are multiple version constraints set for numpy in this project. However, according to pip's “first found wins” installation strategy, numpy 1.18.4 (i.e., the newest version satisfying constraint >=1.18,<1.19) is the actually installed version.

Although the first found package version numpy 1.18.4 just satisfies the later dependency constraint (numpy >=1.18,<1.19), such installed version is very close to the upper bound of the version constraint of numpy specified by matplotlib 3.2.1.

Once matplotlib upgrades,its newest version will be installed. Therefore, it will easily cause a dependency conflict (build failure), if the upgraded matplotlib version introduces a higher version of numpy, violating its another version constraint >=1.18,<1.19.

According to the release history of matplotlib, it habitually upgrates Numpy in its recent releases. For instance, matplotlib #15645 upgrated Numpy’s constraint from >=1.11 to >=1.12, and matplotlib #15698 upgrated Numpy’s constraint from >=1.12 to >=1.15.

As such, it is a warm warning of a potential dependency conflict issue for mlxtk.

Dependency tree

mlxtk - 0.8.2
| +- colorama(install version:0.4.3 version range:>=0.4,<0.5)
| +- doit(install version:0.32.0 version range:>=0.32,<0.33)
| | +- cloudpickle(install version:1.3.0 version range:*)
| +- future(install version:0.18.2 version range:>=0.18,<0.19)
| +- h5py(install version:2.10.0 version range:>=2.10,<3.0)
| +- jinja2(install version:2.11.2 version range:>=2.10,<3.0)
| | +- MarkupSafe(install version:2.0.0a1 version range:>=0.23)
| +- matplotlib(install version:3.2.1 version range:>=3.2,<3.3)
| | +- cycler(install version:0.10.0 version range:>=0.10)
| | | +- six(install version:1.14.0 version range:*)
| | +- kiwisolver(install version:1.2.0 version range:>=1.0.1)
| | +- numpy(install version:1.18.4 version range:>=1.11)
| | +- pyparsing(install version:3.0.0a1 version range:>=2.0.1)
| | +- python-dateutil(install version:2.8.1 version range:>=2.1)
| +- numpy(install version:1.18.4 version range:>=1.18,<1.19)
| +- numpy-stl(install version:2.11.2 version range:>=2.11,<2.12)
| +- pandas(install version:0.25.3 version range:>=0.25,<0.26)
| +- pathos(install version:0.2.5 version range:>=0.2,<0.3)
| +- prompt-toolkit(install version:3.0.5 version range:>=3.0.0,<4.0.0)
| | +- wcwidth(install version:0.1.9 version range:*)
| +- pyside2(install version:5.14.2.1 version range:>=5.14,<6.0)
| +- pyyaml(install version:5.3.1 version range:>=5.1,<6.0)
| +- scipy(install version:1.4.1 version range:>=1.3,<2.0)
| +- sympy(install version:1.6rc1 version range:>=1.4,<2.0)
| +- tabulate(install version:0.8.7 version range:>=0.8,<0.9)
| +- tqdm(install version:4.46.0 version range:>=4.39,<5.0)```


Thanks for your help.
Best,
Neolith

One body spectrum

Implement the computation of a one body spectrum as a task to make use of all the nice mlxtk when dealing with single particle problems.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

poetry
pyproject.toml
  • colorama ^0.4.3
  • doit ^0.33.1
  • future ^0.18.2
  • h5py ^3.0
  • jinja2 >=2.11.2,<4.0.0
  • matplotlib ^3.3.2
  • numpy ^1.19.2
  • numpy-stl ^3.0.0
  • pandas ^2.0.0
  • pathos ^0.3.0
  • prompt-toolkit ^3.0.7
  • pyside2 ^5.15.1
  • python >=3.12,<3.13
  • pyyaml >=5.3.1,<7.0.0
  • scipy ^1.5.2
  • sympy ^1.6.2
  • tabulate ^0.9.0
  • tqdm ^4.50.0
  • bandit ^1.6.2
  • black ^23.1
  • flake8 ^6.0.0
  • isort ^5.5.4
  • jedi ^0.19.0
  • mypy ^1.0
  • pylint ^3.0.0
  • pytest ^7.0.0
  • rope ^1.0.0
  • pre-commit ^3.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Unavailability of QDTK

I'm very interested in ML-MCTDH-X simulations and I tried to install this toolkit. The problem is: it depends on the QDTK package, but I couldn't find QDTK anywhere on the web. Where can I find and install QDTK?

Sync scan directories

Use rsync and sshpass to synchronize running simulations. Normally the data is synced using the AFS only after the job terminated.

  • composition of sshpass/rsync command (407d28f)
  • tool to accept the server keys of all nodes (4b2e093)
  • store job ids when submitting (to look up the correct nodes) (e2d25a4, 3908f5e, 7da13e2)
  • actual synchronization

Dry run feature

Due to my recent fails where for some reason some parts of parameter scans where rerun (which cost me a lot of data and forced me to rerun two complete scans) it would be nice to perform a dry run first to see what work will be performed

Compute variances

Given <O> and <O²>, compute the variance <(O-<O>)²>=<O²>-<O>². Just implement a new task type for this purpose.

Dependabot can't resolve your Python dependency files

Dependabot can't resolve your Python dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Updating dependencies
Resolving dependencies...
                                                                                
[SolverProblemError]                                             
Because mlxtk depends on doit-graph (^0.4) which doesn't match any versions,  
 version solving failed.                                                      
                                                                                
update [--no-dev] [--dry-run] [--lock] [--] [<packages>]...


If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Handle SIGTERM

Handle SIGTERM and pass it to subprocesses, even though the qdtk_*.x executables do not handle it at the moment.

Plotting tool for expvals

  • expval I/O
  • basic plotting program
  • each expval as a tab (commit 7165c19)
  • embed into scan_view (commit 7165c19)
  • controls to toggle real/imaginary part (commit 8474aa9)
  • add the usual matploblib controls to each tab (commit f7131e8)
  • only show tabs if more than one expval is available (commit a63226a)

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Interpolation in gpop_diff script

Use scipy.interpolate.griddata to interpolate if times/grid differ. This will be useful especially when comparing different grids.

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.