GithubHelp home page GithubHelp logo

rlc2v07 / paper-supplement-nanoparticle-sensing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fangohr/paper-supplement-nanoparticle-sensing

0.0 2.0 0.0 2.6 MB

Supplementary material for the paper "Frequency-based nanoparticle sensing over large field ranges using the ferromagnetic resonances of a magnetic nanodisc"

License: MIT License

Makefile 0.02% Jupyter Notebook 99.87% Python 0.11%

paper-supplement-nanoparticle-sensing's Introduction

Frequency-based nanoparticle sensing over large field ranges using the ferromagnetic resonances of a magnetic nanodisc: supplementary material

MIT license Binder

This repository accompanies the paper "Frequency-based nanoparticle sensing over large field ranges using the ferromagnetic resonances of a magnetic nanodisc". It provides the data underlying the figures in the paper as well as Jupyter notebooks to reproduce those figures. The latest version of this repository can be found at https://github.com/maxalbert/paper-supplement-nanoparticle-sensing


Authors: Maximilian Albert, Marijan Beg, Dmitri Chernyshenko, Marc-Antonio Bisotti, Rebecca L. Carey, Hans Fangohr and Peter Metaxas.

Contents

The directory notebooks/ contains Jupyter notebooks for the relevant figures in the paper. On Github you can view them directly in the browser:

The raw data is available in the file data/eigenmode_info_data_frame.csv, which is a CSV (= comma-separated values) file containing the simulation parameters and computed resonant frequencies for all performed simulations. All notebooks use this data to generate the figures. The data format is explained in the notebook Explanation of the data format.

Executing the notebooks

Using a cloud Jupyter server via Binder (no installation required)

The easiest way to execute the notebooks without installing anything is to launch a cloud Jupyter server using Binder. You can access it here:

http://mybinder.org/repo/maxalbert/paper-supplement-nanoparticle-sensing

Running the notebooks locally on your machine

In order to run the notebooks on your own computer, follow the steps below.

  1. Clone this repository and change into the newly created directory:

    git clone https://github.com/maxalbert/paper-supplement-nanoparticle-sensing.git
    cd paper-supplement-nanoparticle-sensing
    
  2. Make sure that you have all required dependencies installed (see below; we recommend the installation using conda if possible).

  3. Start a notebook server:

    jupyter notebook
    

    This will open a browser window with a dashboard showing the contents of this repository.

  4. Navigate to the notebooks/ folder and open any of the .ipynb files. You can reproduce the associated figure by selecting the menu item Cell -> Run All.

Required dependencies

In order to execute the notebooks, the following dependencies are required.

  • python
  • ipython
  • jupyter
  • matplotlib (>= 1.5)
  • numexpr
  • pandas (>= 0.18)
  • statsmodels

You can install them using pip as follows:

pip install ipython jupyter matplotlib numexpr pandas statsmodels

However, be aware that this may potentially take a long time (and you may need to install additional dependencies via your distribution's package manager).

Alternatively, if you have conda installed (which comes with the Anaconda distribution or can be installed via Miniconda) then the recommended (and much faster) way to install these dependencies is by running the following command from the toplevel of this repository:

conda env create -f environment.yml

This will create a conda environment called particle-sensing which contains all the required dependencies. Don't forget to activate the new environment before running the notebooks:

source activate particle-sensing  # on Linux/Unix
activate particle-sensing         # on Windows

paper-supplement-nanoparticle-sensing's People

Contributors

maxalbert avatar fangohr avatar

Watchers

James Cloos avatar  avatar

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.