mvdbeek 1a43ef5b83 Work around (temporarily) wrong getsize() output
I'm not sure how/why this happens, but this can be reproduced by copying a file to a location in one process, while checking the size in another process:

Run this to copy a file indefinitely:

```
import os
import shutil

open('test').write("foo")
while True:
    shutil.copy('test', 'test.file')
    os.remove('test.file')
```

In the same directory run this

```
import os

count = 0
wrong_size = False
while True:
    try:
        size = os.path.getsize('test.file')
        if size == 0:
            wrong_size = True
            wrong_count = count
        elif wrong_size and os.path.getsize('test.file') != 0:
            # We have seen the wrong size being reported, but now it's correct again
            print("Got wrong file size at %dnd try, was fixed in %dnd try" % (wrong_count, count))
            break
    except Exception:
        pass
    count += 1
```

It'll (probably) fail like this:

```
Got wrong file size at 0nd try, was fixed in 1nd try
```
or more often:
```
Got wrong file size at 31nd try, was fixed in 32nd try
```

This seems to be fixed when running os.path.getsize() another time,
so we simply do that here.
2018-01-19 08:23:50 +01:00
2017-12-01 11:09:57 +00:00
2017-11-10 11:44:31 -05:00
2017-12-13 10:42:45 -08:00
2018-01-10 11:31:51 -05:00
2017-04-07 17:13:56 +02:00
2018-01-17 16:26:56 +00:00
2017-09-25 12:24:46 +01:00
2017-05-16 18:56:50 +00:00
2017-05-22 10:04:31 -04:00
2017-11-09 12:02:06 -05:00
2017-05-16 21:51:37 +00:00
2017-10-24 11:29:09 +01:00
2017-12-15 17:33:40 +00:00

.. figure:: https://galaxyproject.org/images/galaxy-logos/galaxy_project_logo.jpg
   :alt: Galaxy Logo

The latest information about Galaxy is available via `https://galaxyproject.org/ <https://galaxyproject.org/>`__

.. image:: https://img.shields.io/badge/questions-galaxy%20biostar-blue.svg
    :target: https://biostar.usegalaxy.org
    :alt: Ask a question

.. image:: https://img.shields.io/badge/chat-irc.freenode.net%23galaxyproject-blue.svg
    :target: https://webchat.freenode.net/?channels=galaxyproject
    :alt: Chat on irc

.. image:: https://img.shields.io/badge/chat-gitter-blue.svg
    :target: https://gitter.im/galaxyproject/Lobby
    :alt: Chat on gitter

.. image:: https://img.shields.io/badge/release-documentation-blue.svg
    :target: https://docs.galaxyproject.org/en/master/
    :alt: Release Documentation

.. image:: https://travis-ci.org/galaxyproject/galaxy.svg?branch=dev
    :target: https://travis-ci.org/galaxyproject/galaxy
    :alt: Inspect the test results

Galaxy Quickstart
=================

Galaxy requires Python 2.7 To check your python version, run:

.. code:: console

    $ python -V
    Python 2.7.3

Start Galaxy:

.. code:: console

    $ sh run.sh

Once Galaxy completes startup, you should be able to view Galaxy in your
browser at:

http://localhost:8080

Configuration & Tools
=====================

You may wish to make changes from the default configuration. This can be
done in the ``config/galaxy.ini`` file.

Tools can be either installed from the Tool Shed or added manually.
 For details please see the `tutorial <https://galaxyproject.org/admin/tools/add-tool-from-toolshed-tutorial/>`__.
Note that not all dependencies for the tools provided in the
``tool_conf.xml.sample`` are included. To install them please visit
"Manage dependencies" in the admin interface.

Issues and Galaxy Development
=============================

Please see `CONTRIBUTING.md <CONTRIBUTING.md>`_ .

Roadmap
=============================

Interested in the next steps for Galaxy? Take a look at the `roadmap <https://github.com/galaxyproject/galaxy/issues/1928>`__.
Languages
Python 64.3%
TypeScript 14.5%
Vue 12.4%
JavaScript 3.7%
Jupyter Notebook 2.4%
Other 2.5%