Giter VIP home page Giter VIP logo

recast-frontend's Introduction

The RECAST front-end

This is the Drupal code for the RECAST front-end and RESTful API currently hosted at http://recast.perimeterinstitute.ca

As RECAST is a community project, we are moving to GitHub for collaborative development. RECAST packages (eg. API wrappers, back-end implementations etc.) should be in repositories named recast-<package>

recast-frontend's People

Contributors

cranmer avatar

Stargazers

Ryan Reece avatar Dustin Windibank avatar Lukas avatar

Watchers

James Cloos avatar Lukas avatar  avatar Dustin Windibank avatar

Forkers

dwindibank

recast-frontend's Issues

API not following audience parameter

I discovered another issue with the API. I'm trying to create a request using a selective audience. Take this example:
curl --data "username=lheinric&reason-for-request=bla reas&model-type=bla model&analysis-uuid=1f3dbc55-5100-9284-4519-aac16f60988d&activate=1&subscribers=backend-rivet&title=z3&predefined-model=bla pre&audience=selectivexxx" http://recast.perimeterinstitute.ca/dev/api/recast-request.json

as you can see the audience is set to 'selective' but unfortunately it always ends up as 'all' on the PI side. Editing on the web interface works though.

the corresponding line in PHP seems to do the correct thing, so I'm not sure what is going on

$node->field_recast_audience[$node->language][0]['value'] = $data['audience'];

associate reference metadata to request

Hello,

it would be great if we could add references (doi,eprint, journal, inspire) to requests the same way we do that for analyses. The reason is that semantically, the request is associated to a theorist's work (maybe a paper) while the analysis is associated to an experimental result/paper. Adding this functionality will help correctly attibuting the RECAST request to the underlying papers.

Cheers,
Lukas

Add mathjax support

   <script type="text/x-mathjax-config">
      MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
    </script>
    <script type="text/javascript"
      src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
    </script>

    <script type="text/javascript">
        MathJax.Hub.Config({
          TeX: {
            Macros: {
              TeV: "\\mathrm{TeV}",
              pT: "p_\\mathrm{T}",
            }
          }
        });
    </script>

Remove restrictions related to file types

File Types

There are some restrictions on the files. Still need to know what can be uploaded. Just need a comma separated list of file extensions.

recast-response->result-file (ROOT file with TH1) is currently: lhe, zip
recast-response->result-text-file (Multiple Parameter Response) is currently: txt

Also for the LHE point files:
request->parameter-points->run-condition->lhe-file is currently: lhe, zip, txt, jpg

File Size

Currently files are restricted to 512 MB ... seems small.

File Location

recast-response->result-text-file (i.e. field_result_text_file) needs to have it's directory set. Could just be the same directory (recast_results) as the other field

Add associated DOIs to response

Hi,

more ideas :)

We are in the process of integrating with services that will associated DOIs. We would like to be able to associate a DOI at two places:

  1. at request creation/update:
    a DOI will be minted for the request made by the "theorist" and will be associated to the original paper that motivated the request. probably the right place to add this is in the "Update a Request/Create a Request" API endpoints. In the end a request should have a new property, perhaps called 'recast-request-doi' (to differentiate it with a possible doi for its reference

  2. when uploading a response

a response should likewise have a 'recast-response-doi' which will be minted as a supplement to the underlying analysis

Thanks,
Lukas

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.