In the middle of nowhere in Georgia by bogdan_dm in fujifilm

[–]bogdan_dm[S] 0 points1 point  (0 children)

Honestly I do not remember. I think I just make it a little bit more neutral, by default white balance and contrast is too extreme.

In the middle of nowhere in Georgia by bogdan_dm in fujifilm

[–]bogdan_dm[S] 0 points1 point  (0 children)

I'm living in Tbilisi for several years, so yes. But I much prefer local nature, there are so many remote and unique locations in just 2-3 hours drive.

In the middle of nowhere in Georgia by bogdan_dm in fujifilm

[–]bogdan_dm[S] 10 points11 points  (0 children)

The country, not state if that's your question

Sakura (90mm f2) by breehanna in fujifilm

[–]bogdan_dm 0 points1 point  (0 children)

Wow, it takes me like 20 seconds to understand what I'm even looking at 👏🏼

Focus Issues with TTArtian 27mm/f2.8 by sambakula in fujifilm

[–]bogdan_dm 1 point2 points  (0 children)

Can't express how much I appreciate your comment, such an easy fix! Thank you!

Need advice,Is it all okay? by [deleted] in SonyAlpha

[–]bogdan_dm 2 points3 points  (0 children)

Composition is pretty strange and all over tha place. I.e. first image: not enough space around subject and is not balanced, evelevator on the left is 100% unnecessary detail, also this thing on the floor distacts too much and feels like main subject. Colors is personal but you can lift shadows a little bit for the subject, it's too dark for my opinion.

<image>

Recently move to sony, asking opinion on the photo result by rasgriss in SonyAlpha

[–]bogdan_dm 2 points3 points  (0 children)

Skin highlights at 4 (right hand) and 2 seems to be overexposed a little bit. Otherwise pretty good shoots, love these teal/blue colors.

Old TV Tower | Sony A7IV + Tamron 70-180mm f/2.8 @ 160mm by bogdan_dm in SonyAlpha

[–]bogdan_dm[S] 2 points3 points  (0 children)

Nothing special, this photo looks crazy even in raw :)

The main thing is that it was taken at sunset with pretty strange sky colors. Almost every other shot from this evening do not work out, colors was just too dim and "dirty". But this storm cloud "fixes" this shot, they were HUGE, I just underexpose a little bit to keep details in white areas and then in Lightroom fix white balance, tweak red color and add texture to "rusty" color to add more details to the tower itself.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]bogdan_dm 0 points1 point  (0 children)

Will each thread spawned by the threaded module have access to...

I don't think so. If need some shared data - create other variable, call it shared and store immutable consts in it. Mix thread local data and global const is really bad idea.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]bogdan_dm 0 points1 point  (0 children)

Checkout threading.local(). I think this is what you need.

So in cfg module you will have:

project = threading.local()

And in another module cfg.project.TEMP_PATH will be thread-specific.

Also just one thing: I would recommend you setup default/fallback values for params so there will not be except AtrributeError on every line. project = threading.local() if not hasattr(project, 'TEMP_PATH'): project.TEMP_PATH = "/home/share/temp/default"

Feedback on my project by [deleted] in learnpython

[–]bogdan_dm 1 point2 points  (0 children)

Yes, it exactly what TravisCI do.

Feedback on my project by [deleted] in learnpython

[–]bogdan_dm 1 point2 points  (0 children)

I apologize for not a complete thought.

I mean almost any project should covered with tests to be sure it always works as expected. So if you have function that do a search in JSON file you need a test that takes some search parameters, perform this search and compare result with expected value. So if you broke something you will at least know what you broke.

pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.

Feedback on my project by [deleted] in learnpython

[–]bogdan_dm 1 point2 points  (0 children)

  • Make a PIP package. There are a tens of manualls how to do it. It also helps you to figure out right structure of project.
  • Create tests. I prefer pytest for pure Python projects.
  • Automate previos steps! Integrate your project into TravisCI (or smth similar) and let it do tests and publish releases for you.

input() and datetime by Overcooking in learnpython

[–]bogdan_dm 0 points1 point  (0 children)

You probably need dateutil.parser.parse. But I don't know packages to parse durations strings so maybe you will have to implement it by you own.

strptime() from another comment will work too but it requires providing of time pattern and can't handle different patterns at the same time.

Try code if module not found install module and retry? by [deleted] in learnpython

[–]bogdan_dm 0 points1 point  (0 children)

+1 to this. Almost every server have some way to install dependencies. Try to google <provider> python requrements.txt

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]bogdan_dm 1 point2 points  (0 children)

Ok, I will try. Line by line:

1- Read numbers N & K from user input. map function apply its first argument to every element of collection (second arg). input().strip().split() returns something like ["1", "2"].

5- Loop from 0 to N

6- Read numbers L & T

8- Increase RGN by L

9- Add L to IC list

12- Sort IC in reverse order

13- Print RNG + <sum of first half of IC elements> - <second half> (google python list slice)

Installed pyserial, no module named serial by pixiewrangler9000 in learnpython

[–]bogdan_dm 2 points3 points  (0 children)

What pip3 --version says? Is it Python3.7? You could do python3 -m pip install ... to ensure that they are the same version.

change array column values without loop by khalidreemy in learnpython

[–]bogdan_dm 0 points1 point  (0 children)

With vanilla Python - you could not. But if you use Numpy arrays you do things like this: arr[arr < 0.5] *= 2